PHP Scripts Usage

Configure httpd to use PHP scripts.

[1] Install PHP.

[root@futurelinux ~]# dnf install php php-mbstring php-pear -y
[root@futurelinux ~]# vi /etc/php.ini

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

[root@futurelinux ~]# 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.

[root@futurelinux ~]# vi /var/www/html/index.php

   print "PHP Test Page";