配置mod_fcgid+php
引用:http://www.byywee.com/page/M0/S728/728162.html[*]安装Apache Windows Binary:http://httpd.apache.org/download.cgi#apache22
[*]安装PHPhttp://windows.php.net/download/
[*]因为是fastcgi体式格式,所以选择nts的版本下载安装
[*]安装领导中,务必选择“other CGI”;安装时,选择上所有组件
[*]安装mod_fcgid,http://www.apachelounge.com/
[*]下载mod_fcgid-2.3.7-win32.zip
[*]解压后将mod_fcgid.so放置在apache的modules下
[*]按照mod_fcgid的ReadMe.txt,下载响应的VC++ redistribute 进行安装
[*]Apache设备
[*]httpd.conf增长以下设备
[*]<IfModule mod_fcgid.c>
AddHandler fcgid-script .fcgi .php
#php.ini的存放目次
FcgidInitialEnv PHPRC “d:/php”
# 设置PHP_FCGI_MAX_REQUESTS大于或便是FcgidMaxRequestsPerProcess,防止php-cgi过程在处理惩罚完所有恳求前退出
FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 1000
#php-cgi每个过程的最大恳求数
FcgidMaxRequestsPerProcess 1000
#php-cgi最大的过程数
FcgidMaxProcesses 5
#最大履行时候
FcgidIOTimeout 120
FcgidIdleTimeout 120
#php-cgi的路径
FcgidWrapper “d:/php/php-cgi.exe” .php
AddType application/x-httpd-php .php
</IfModule>
Alias /phpapp/ “<php_deploy>”
<Location /phpapp/>
AddHandler fcgid-script .php
Options +CGI
FcgidWrapper “d:/php/php-cgi.exe” .php
# Customize the next two directives for your requirements.
Order allow,deny
Allow all
</Location>
页:
[1]