windows 2003 iis + php + fastcgi 配置

windows 2003 iis + php + fastcgi 配置

环境
a.iis 6
b.php 5.3 ( Microsoft 2008 C++ Runtime (x86) 需要安装运行是环境)
c.fastcgi 默认(提示安装 .net framework 2.0)
d.网站程序(dede需要php5.3之前的版本才支持,否则无法正常运行)
e.mysql 5.0+

问题:
php5.3以后是不支持phpisapi.dll配置方式,只支持fastcgi

具体配置:
C:\app\php5.3.27

php.ini 设置
extension_dir = "C:\app\php5.3.27\ext"
log_errors = On
error_log = C:\app\log\php\error-log
fastcgi.impersonate = 1
fastcgi.logging = 0
cgi.fix_pathinfo=1
cgi.force_redirect = 0


cmd 运行
cscript %windir%\system32\inetsrv\fcgiconfig.js -add -section:"PHP" -extension:php -path:"C:\app\php5.3.27\php-cgi.exe"
cscript %windir%\system32\inetsrv\fcgiconfig.js -set -section:"PHP" -InstanceMaxRequests:10000
cscript %windir%\system32\inetsrv\fcgiconfig.js -set -section:"PHP" -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000
cscript %windir%\system32\inetsrv\fcgiconfig.js -set -section:"PHP" -ActivityTimeout:90
cscript %windir%\system32\inetsrv\fcgiconfig.js -set -section:"PHP" -RequestTimeout:90

1.新建网站程序
2.权限设置
3.环境变量设置(可选,方便调试)


接下来就是仔细配置IIS网站的权限问题和windows 2003 安全配置!!!

你可能感兴趣的:(windows 2003 iis + php + fastcgi 配置)