Sponsored Link

Apache2 : Use PHP Scripts2019/01/25

Configure Apache2 to use PHP scripts.
[1] Install PHP.
# add extension module first

www:~ #
SUSEConnect -p sle-module-web-scripting/15/x86_64
www:~ #
zypper -n install php7 php7-pear php7-mbstring apache2-mod_php7
www:~ #
a2enmod php7

www:~ #
vi /etc/php7/apache2/php.ini
# line 939: 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