Apache httpd : Use PHP Scripts2019/10/18 |
Configure httpd to use PHP scripts.
|
|
[1] | |
[2] |
After installing PHP, Restart httpd, it's OK to do it only.
On RHEL 8/CentOS 8, [mod_php] has been Deprecated and PHP-FPM (FPM : FastCGI Process Manager) is configured by default.
When [httpd] starts, [php-fpm] also starts for dependency by setting file [/usr/lib/systemd/system/httpd.service.d/php-fpm.conf].
|
[root@www ~]#
systemctl restart httpd # create PHPInfo test page [root@www ~]# echo '<?php phpinfo(); ?>' > /var/www/html/info.php |
[3] | Verify to access to PHPInfo test page from any client computer. |
Sponsored Link |