C7yum deployed PHP7.3.6 manner through a socket connection apache

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

Guess you like

Origin blog.51cto.com/9447803/2415119