background image

IIS+fastcgi 下 PHP 运行超时问题的解决办法

每在页面中上传较大的文件时遇到 FastCgi

的错误:

The FastCGI process exceeded 

configured request timeout

”,几经试验,明白了需要修改 FastCgi

的配置文件

fcgiext.ini

”,

位于目录 C:/WINDOWS/system32/inetsrv”下。

在 fcgiext.ini”最末 php 的配置内容下增加一些参数,如下:
引用
[Types]
php=PHP
[PHP]
ExePath=C:/PHP/php-cgi.exe
InstanceMaxRequests=10000
EnvironmentVars=PHP_FCGI_MAX_REQUESTS:10000
RequestTimeout=500
ActivityTimeout=900

如果遇到的是 FastCGI process exceeded configured activity timeout ”的错误,也是这样解决。