解决FastCGI 进程超过了配置的活动超时时限的问题

  • A+
所属分类:PHP学习
本篇文章是对解决FastCGI 进程超过了配置的活动超时时限的方法进行了详细的分析介绍,需要的朋友参考下

近日,需要满足测试需求,进行大数据并发测试时,报出【HTTP 错误 500.0 - Internal Server Error E:\PHP\php-cgi.exe - FastCGI 进程超过了配置的活动超时时限】

解决办法:

IIS7->FastCGI设置->双击"php-cgi.exe"->"活动超时" 项默认是设置为70(秒),改为600(10分钟,此处根据需求设置可以略高~)

其它办法:

【详细错误】:
HTTP 错误 500.0 - Internal Server Error
C:\Program Files\PHP\php-cgi.exe - FastCGI 进程超过了配置的请求超时时限
【环境】:php + IIS7.5
解决办法:
方法一:
C:\Windows\System32\inetsrv\config\applicationHost.config 进行编辑,将activityTimeout设置调大,默认为600(10分钟),最大支持3600(1小时),单位秒~

方法二:
开始->运行->cmd->进入
C:\Windows\system32\inetsrv\appcmd set config -section:system.webServer/fastCgi/[fullPath='C:\Program Files\PHP\php-cgi.exe'].activityTimeout:600

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: