实战案例:CentOS 7 利用yum安装基于PHP-FPM模式的LAMP
#安装httpd和php-fpm包
[root@centos7 ~]#yum install httpd php-fpm
#查看Httpd mod_fcgi模块是否加载
httpd -M | grep fcgi
proxy_fcgi_module (shared)
#添加FCGI的配置文件
DirectoryIndex index.php
ProxyRequests off //是否开启正向代理
ProxyPassMatch ^/(.*/.php)fcgi://127.0.0.1:9000/var/www/html/1
[root@centos7 ~]#systemctl start httpd php-fpm
本文链接:http://www.yunweipai.com/36101.html
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/52446.html