解决断点调试php程序时的错误:The FastCGI process exceeded configured activity timeout

来源:互联网 发布:knn算法改进 编辑:程序博客网 时间:2024/05/19 20:20

终于可以断点调试php程序了,但是,调试过程中因为执行时间长,导致了以下错误:

 

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)

 

解决办法:

修改“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

 

 

最后这项时间就是要修改的值,修改为调试可能用到的最大值就行了。单位:秒。