Sponsored Link

Use PHP Scripts2015/11/28

Configure Apache2 to use PHP scripts.
[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 = '
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
<div style="width: 100%; font-size: 40px; font-weight: bold; text-align:center;">
      print "PHP Test Page";
Matched Content