Apache 使用fcgi 解析PHP
httpd.conf 檔案
<VirtualHost *:80>
#ServerAdmin webmaster@localhost
ServerName www.afei.com
DocumentRoot /data/www
#主要是這2個配置
ProxyRequests Off
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/data/www/$1
<Directory /data/www>
Options FollowSymlinks
DirectoryIndex index.php
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
conf/httpd.conf 中需要開啟的擴充套件
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
#LoadModule rewrite_module modules/mod_rewrite.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
相關文章
- PHP知識筆記:CGI,FastCGI,PHP-CGI,PHP-FPM,Spawn-FCGI區別PHP筆記AST
- 解析LAMP中Apache、php、mysql預設安裝路徑LAMPApachePHPMySql
- Apache + PHP配置ApachePHP
- Swoole 在 PHP-fpm/apache 中使用 task 功能PHPApache
- 讓apache支援phpApachePHP
- apache新增php模組ApachePHP
- Apache+PHP配置執行環境(getenv的使用)ApachePHP
- apache+mysql4+phpApacheMySqlPHP
- Apache目錄禁止解析Apache
- Apache HttpAsyncClient 原始碼解析ApacheHTTPclient原始碼
- CentOS 7下yum安裝Apache及不解析php問題的解決CentOSApachePHP
- 使用DOM解析來實現PHP模版引擎PHP
- Apache、PHP 隱藏版本資訊ApachePHP
- linux+mysql+apache+phpLinuxMySqlApachePHP
- linux_apache+php+dotprojectLinuxApachePHPProject
- 在php-fpm或apache中使用swoole提供的task功能PHPApache
- xml php 解析XMLPHP
- PHP安裝及與apache整合PHPApache
- Windows 配置 Apache2.4+php5.6WindowsApachePHP
- 安裝apache+php記錄ApachePHP
- apache+php組合測試ApachePHP
- nginx+LAMP(apache+php+mysql)NginxLAMPApachePHPMySql
- apache、php、mysql安裝過程ApachePHPMySql
- apache禁止執行php檔案ApachePHP
- 指令碼安裝apache+php指令碼ApachePHP
- php環境搭建(windowsphp+apache)PHPWindowsApache
- [php]apache虛擬主機配置PHPApache
- php和apache2的配置PHPApache
- aliyun install php apache mysql nginxPHPApacheMySqlNginx
- PHP+Apache+Windows的設定PHPApacheWindows
- Apache、php、mysql(最新安裝版)ApachePHPMySql
- mysql和apache不認識phpMySqlApachePHP
- LAMP全新安裝 Linux+Apache+MySQL+PHP+phpLAMPLinuxApacheMySqlPHP
- Apache-Flink深度解析-TableAPIApacheAPI
- Apache-Flink深度解析-概述Apache
- 使用rpm安裝PHP後,Apache還是不能處理PHP檔案,怎麼辦(轉)PHPApache
- Apache httpd和php的結合方式ApachehttpdPHP
- Windows下安裝 Apache PHP Mysql RedisWindowsApachePHPMySqlRedis