Premise environment-2.4.39 has been installed the Apache
1. install php-fpm
rpm -qa|grep php
yum remove *php* -y
yum install php73-php-fpm -y
2. Start php-fpm
systemctl start php73-php-fpm
ss -tnl|grep 9000
LISTEN 0 511 127.0.0.1:9000 *:*
3. Modify the httpd configuration file, add the following:
<FilesMatch \.php$>
SetHandler "proxy:fcgi://127.0.0.1:9000"
</FilesMatch>
Php-fpm manner with better in terms of performance, it is recommended to use a socket connected