#安装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



