解决出现The FastCGI Handler was unable to process the request: 258 (0x80070102)的问题 等问题
2011-01-23 13:15
796 查看
10-02-04 11:10
微软去年底发布了II6的FastCGI模块,今天将服务器上的PHP支持改成了FastCGI,目前运行稳定.FastCGI的IIS模块可以让
流行的应用框架在IIS上支持FastCGI协议以提供高性能和可用性的访问服务,FastCGI面向现有的网络服务器提供高性能的CGI替代标准。具体
PHP安装方法我记录下来,其中包括出现的一个错误.
环境:
操作系统:Windows 2003 Server
PHP
版本:PHP5.25
1.下载FastCGI For IIS6
http://www.microsoft.com/downloads/details.aspx?FamilyID=2d481579-9a7c-4632-b6e6-dee9097f9dc5&displaylang=en
下载之后,双击运行进行安装.
2.下载PHP5.25 Windows版
http://www.php.net
下载.zip格式的版本,下载后解压至D:/PHP目录,并给IIS启动帐户组或用户赋予读取和运行权限.
3.注册
PHP到FastCGI
在命令行下运行
cscript fcgiconfig.js -add -section:"PHP"
-extension:php -path:"D:/PHP/php-cgi.exe"
fcgiconfig.js
默认存放目录是:C:/WINDOWS/system32/inetsrv
4.设置
将D:/PHP/php.ini-
recommended重命名为为D:/PHP/php.ini
打开D:/PHP/php.ini,修改:
extension_dir
= "D:/PHP/ext"
fastcgi.impersonate = 1
cgi.fix_pathinfo=1
cgi.force_redirect
= 0
其它根据实际需要对php.ini进行设置修改
然后执行:
cscript fcgiconfig.js
-set -section:"PHP" -InstanceMaxRequests:500
cscript fcgiconfig.js
-set -section:"PHP" -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:1000
以上两项
设置最大池和响应连接数,可以根据运行机器的硬件配置、使用情况修改
一切完毕之后重启IIS,赶紧写一个测试页试一下吧.
我
第一次安装时,由于为了服务器的安全我删除了wsshell命令,导致在第3步时出现了如下错误:
Microsoft JScript
运行时错误: Automation 服务器不能创建对象
后通过重新注册命令:regsvr32 WSHom.ocx
问题解决
重
启IIS后,打开测试页出现如下提示:
FastCGI Error
The FastCGI Handler was
unable to process the request.
--------------------------------------------------------------------------------
Error Details:
Error Number: 5 (0x80070005).
Error
Description: 拒绝访问。
HTTP Error 500 - Server Error.
Internet
Information Services (IIS)
这个错误是由于在解压PHP之后,没有对IIS启动帐户赋予该目录的读取和运行
权限.修改文件夹安全属性,问题解决.
FastCGI Error
The FastCGI Handler was unable to process the
request.
--------------------------------------------------------------------------------
Error Details:
The FastCGI process exceeded configured activity timeout
Error
Number: 258 (0x80070102).
Error Description: ????????×÷???±??
HTTP
Error 500 - Server Error.
Internet Information Services (IIS)
解决方法:明显是FastCGI超时,打开C:/WINDOWS/system32/inetsrv/fcgiext.ini,添加或修改
以下内容
[Types]
php=PHP
[PHP]
ExePath=C:/PHP/php-cgi.exe
InstanceMaxRequests=10000
EnvironmentVars=PHP_FCGI_MAX_REQUESTS:10000
RequestTimeout=500
ActivityTimeout=900
如果还不成功,可能需要安装SQL Server 2008 SQL Server Native
Client。为什么访问2005要安装这个呢??不明白啊不明白啊。反正看了这个文件的说明,说是支持2005的访问的。下载地址:http://download.microsoft.com/download/A/5/F/A5F24C9B-8658-4356-B55B-CC333BF93928/sqlncli.msi
微软去年底发布了II6的FastCGI模块,今天将服务器上的PHP支持改成了FastCGI,目前运行稳定.FastCGI的IIS模块可以让
流行的应用框架在IIS上支持FastCGI协议以提供高性能和可用性的访问服务,FastCGI面向现有的网络服务器提供高性能的CGI替代标准。具体
PHP安装方法我记录下来,其中包括出现的一个错误.
环境:
操作系统:Windows 2003 Server
PHP
版本:PHP5.25
1.下载FastCGI For IIS6
http://www.microsoft.com/downloads/details.aspx?FamilyID=2d481579-9a7c-4632-b6e6-dee9097f9dc5&displaylang=en
下载之后,双击运行进行安装.
2.下载PHP5.25 Windows版
http://www.php.net
下载.zip格式的版本,下载后解压至D:/PHP目录,并给IIS启动帐户组或用户赋予读取和运行权限.
3.注册
PHP到FastCGI
在命令行下运行
cscript fcgiconfig.js -add -section:"PHP"
-extension:php -path:"D:/PHP/php-cgi.exe"
fcgiconfig.js
默认存放目录是:C:/WINDOWS/system32/inetsrv
4.设置
将D:/PHP/php.ini-
recommended重命名为为D:/PHP/php.ini
打开D:/PHP/php.ini,修改:
extension_dir
= "D:/PHP/ext"
fastcgi.impersonate = 1
cgi.fix_pathinfo=1
cgi.force_redirect
= 0
其它根据实际需要对php.ini进行设置修改
然后执行:
cscript fcgiconfig.js
-set -section:"PHP" -InstanceMaxRequests:500
cscript fcgiconfig.js
-set -section:"PHP" -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:1000
以上两项
设置最大池和响应连接数,可以根据运行机器的硬件配置、使用情况修改
一切完毕之后重启IIS,赶紧写一个测试页试一下吧.
我
第一次安装时,由于为了服务器的安全我删除了wsshell命令,导致在第3步时出现了如下错误:
Microsoft JScript
运行时错误: Automation 服务器不能创建对象
后通过重新注册命令:regsvr32 WSHom.ocx
问题解决
重
启IIS后,打开测试页出现如下提示:
FastCGI Error
The FastCGI Handler was
unable to process the request.
--------------------------------------------------------------------------------
Error Details:
Error Number: 5 (0x80070005).
Error
Description: 拒绝访问。
HTTP Error 500 - Server Error.
Internet
Information Services (IIS)
这个错误是由于在解压PHP之后,没有对IIS启动帐户赋予该目录的读取和运行
权限.修改文件夹安全属性,问题解决.
FastCGI Error
The FastCGI Handler was unable to process the
request.
--------------------------------------------------------------------------------
Error Details:
The FastCGI process exceeded configured activity timeout
Error
Number: 258 (0x80070102).
Error Description: ????????×÷???±??
HTTP
Error 500 - Server Error.
Internet Information Services (IIS)
解决方法:明显是FastCGI超时,打开C:/WINDOWS/system32/inetsrv/fcgiext.ini,添加或修改
以下内容
[Types]
php=PHP
[PHP]
ExePath=C:/PHP/php-cgi.exe
InstanceMaxRequests=10000
EnvironmentVars=PHP_FCGI_MAX_REQUESTS:10000
RequestTimeout=500
ActivityTimeout=900
如果还不成功,可能需要安装SQL Server 2008 SQL Server Native
Client。为什么访问2005要安装这个呢??不明白啊不明白啊。反正看了这个文件的说明,说是支持2005的访问的。下载地址:http://download.microsoft.com/download/A/5/F/A5F24C9B-8658-4356-B55B-CC333BF93928/sqlncli.msi
相关文章推荐
- 解决出现The FastCGI Handler was unable to process the request:258(0x80070102)的问题
- 解决出现The FastCGI Handler was unable to process the request
- PHP配置的严重问题,终于解决了,The FastCGI Handler was unable to process the request.
- Workflow4发布问题:The server was unable to process the request,服务无法处理请求 .
- 连接WCF出现错误:The server was unable to process the request due to an internal
- Nginx出现The plain HTTP request was sent to HTTPS port问题解决方法
- WCF分布式开发常见错误解决(12):The server was unable to process the request,服务无法处理请求
- SharePoint designer 2010编辑List的表单时出现错误:soap:Server was unable to process request. ---> Value does not fall within the expected range
- Ubuntu下jmap以及jinfo出现Can't attach to the process问题的解决办法
- make menuconfig 出现 Unable to find the Ncurses libraries 问题解决
- 在Yii下进行模块化(module)编程以及出现Unable to resolve the request的解决办法
- platform builder was unable to read the device settings from the datastore问题解决
- Vmware vSphere 出现 unable to connect to the mks问题的解决办法
- Server was unable to process request. ---> Object reference not set to an instance of an object解决
- 解决使用Genymotion出现Unable to start the virtual device.VirtualBox cannot start the virtual device.问题
- fiddler代理设置问题导致出现“The system proxy was changed,click to reenable fiddler capture”解决办法
- 打开Eclipse时出现"The Eclipse executable launcher was unable to locate its companion shared library"情况的解决办法
- 编译内核,make menuconfig 出现以下问题Unable to find the ncurses libraries or the及解决
- 解决spring.handlers spring.schemas spring.tooling 被覆盖问题,而出现Spring 3.0: Unable to locate Spring Namespa
- Maven使用package打包Spring Boot时出现:Unable to find a single main class from the following candidates的问题解决