SLES 12
Sponsored Link

Use PHP Scripts2015/11/28

 
Configure Apache2 to use PHP scripts.
[1]
[2] Install PHP.
www:~ #
zypper -n install php5 php-pear apache2-mod_php5
www:~ #
a2enmod php5

www:~ #
vi /etc/php5/apache2/php.ini
# line 913: set your timezone

date.timezone = '
Asia/Tokyo
'
www:~ #
systemctl restart apache2

[3] Create a PHP test page and access to it from client PC with web browser. It's OK if following page is shown.
www:~ #
vi /srv/www/htdocs/index.php
<html>
<body>
<div style="width: 100%; font-size: 40px; font-weight: bold; text-align:center;">
<?php
      print "PHP Test Page";
?>
</div>
</body>
</html>
Matched Content