当前位置:首页 > PHP教程 > PHP高级教程

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 ”的错误,也是这样解决。


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:)!