最近在给客户安装Discuz的时候出现以下报错,折腾了近俩小时才弄明白,果然尼玛超时的问题,希望能给遇到这个问题的童鞋们提供帮助:

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: ?0?8?0?6?0?7?0?5?0?8?0?2?0?5?0?2×÷?0?1?0?5?0?8±?0?3?0?5
HTTP Error 500 - Server Error.
Internet Information Services (IIS)
首先是修改FastCGI的配置文件fcgiext.ini,位置在:系统盘下windows/system32/inetsrv下:

InstanceMaxRequests=10000
EnvironmentVars=PHP_FCGI_MAX_REQUESTS:10000
RequestTimeout=500
ActivityTimeout=900

接着是修改php.ini,这个文件要看你当初装PHP时装在哪个盘下了,实在找不到就搜索一下,别客气,

max_execution_time = 3000  //默认是30,后改成300,PHP报超时错,改成3000,成功更新