PHP Scripts Usage

Configure httpd to use PHP scripts.

[1] Install PHP.

[[email protected] ~]# dnf install php php-mbstring php-pear -y
[[email protected] ~]# vi /etc/php.ini

# line 932: uncomment and add your timezone
date.timezone = "US/Eastern"

[[email protected] ~]# systemctl restart httpd

[2] Create a PHP test page and access to it from client PC with web browser. It's OK if following page is shown.

[[email protected] ~]# vi /var/www/html/index.php

   print "PHP Test Page";