Use PHP Scripts2015/11/28 |
Configure Apache2 to use PHP scripts.
|
|
[1] | |
[2] | Install PHP. |
www:~ #
www:~ # zypper -n install php5 php-pear apache2-mod_php5 a2enmod php5
www:~ #
vi /etc/php5/apache2/php.ini # line 913: set your timezone date.timezone = ' Asia/Tokyo '
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> |
Sponsored Link |