Rootop 服务器运维与web架构

iis6.0 FastCGI错误 The FastCGI Handler was unable to process the request.

| 暂无评论

今天在03下的iis6.0配置php-5.3.3 都知道此版本以不支持ISAPI方式,只能用FastCGI
环境基本配置好后,测试页,提示如下错误:
The FastCGI Handler was unable to process the request.
search后:
php-5.3.3-vc9是用vc2008编译的,缺少cv++运行库,下载安装即可:
PS:
解压包的前提要安装vc++2008运行库否则会出错,见blog
php.ini 配置:
fastcgi.impersonate = 1 把前面的;去掉
其它根普通配置一样
c:\windows\system32\inetsrv下有五个文件,其中有用的 是:fcgtext.dll(处理php映射),fcgitext.ini(FastCGI的配置文件)
打开FASTCGI配置文件fcgitext.ini,在最后[Types]修改为:
[Types]
php=PHP
[PHP]
exepath=c:\Php\php-cgi.exe
不配置fsgitext.ini出错信息:
FastCGI Error
The FastCGI Handler was unable to process the request.
——————————————————————————–
Error Details:
Could not find entry for “php” on site 66 in [Types] section.
Error Number: 1413 (0x80070585).
Error Description: 无效索引。
HTTP Error 500 – Server Error.
Internet Information Services (IIS)
重启iiscmd命令:iisreset
相关资料:
TS是线程安全(Thread Safe ),一般Apache模块、IIS的ISAPI需要使用。
NTS是无线程安全的(Non Thread Safe ),因为php-cgi不需要。
此外还分VC6和VC9,vc6是给Apache用的,vc9是给IIS用的。VC9需要安装c++2008运行库。
如果是使用ISAPI的方式来运行PHP就必须用Thread Safe(线程安全)的版本;而用FastCGI模式运行PHP的话就没有必要用线程安全检查了,用None Thread Safe(NTS,非线程安全)的版本能够更好的提高效率。

原创文章,转载请注明。本文链接地址: https://www.rootop.org/pages/49.html

作者:Venus

服务器运维与性能优化

发表回复