CentOS Stream 8
Sponsored Link

Apache httpd : Use PHP Scripts2021/03/15

 
Configure httpd to use PHP scripts.
[1]
[2]
After installing PHP, Restart httpd, it's OK to do it only.
On RHEL 8/CentOS Stream 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

[root@www ~]#
systemctl status php-fpm

*  php-fpm.service - The PHP FastCGI Process Manager
   Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; disabled; vendor pr>
   Active: active (running) since Fri 2021-03-12 00:21:27 CST; 8s ago
 Main PID: 2591 (php-fpm)
   Status: "Ready to handle connections"
    Tasks: 6 (limit: 23672)
   Memory: 9.7M
   CGroup: /system.slice/php-fpm.service
.....
.....

# 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.
Matched Content