錯(cuò)誤提示: FastCGI Error The FastCGI Handler was unable to process the request. //FastC GI處理程序無(wú)法處理的請(qǐng)求
-------------------------------------------------------------------------------- Error Details: The FastCGI process has failed
錯(cuò)誤提示:
FastCGI Error
The FastCGI Handler was unable to process the request. //FastC GI處理程序無(wú)法處理的請(qǐng)求
--------------------------------------------------------------------------------
Error Details:
•The FastCGI process has failed frequently recently. Try the request again in a while
//FastC GI處理最近經(jīng)常失敗。稍后再試一下
•Error Number: -2147467259 (0x80004005).
•Error Description: δָ¶¨µÄ´íÎó
HTTP Error 500 - Server Error.
Internet Information Services (IIS)
原因分析:
簡(jiǎn)單說(shuō)呢,就是這里有一個(gè)洞,你想鉆進(jìn)去,別人也想鉆進(jìn)去,但是洞只有那么大,如果人多了你就被卡住了,其實(shí)洞也足夠大,但是在這個(gè)時(shí)段被黑客(ddos)堵住了。。。所以你進(jìn)不來(lái),我也進(jìn)不來(lái)。。。
解決思路及辦法:
1、檢查及優(yōu)化php.ini配置文件:
搜索: register_globals = Off (約第705行)
將Off更改為 On,該行的注釋符,即前面的分號(hào)”;”去掉,使該行在php.ini文檔中起作用,即得到 register_globals = On ;
注:這個(gè)對(duì)于PHP的全局變量功能,考慮有很多PHP程序需要全局變量功能所以打開(kāi),打開(kāi)后請(qǐng)注意PHP程序的嚴(yán)謹(jǐn)性,如果不需要全局變量功能,或者出錯(cuò),請(qǐng)保持默認(rèn)Off狀態(tài)。
2、優(yōu)化FastCGI文件:
修改maxInstances值的大小
[Types]
php = PHP
[PHP]
ExePath=D:\host\php_5.2.17\php-cgi.exe
InstanceMaxRequests=10000
maxInstances=300
EnvironmentVars=PHP_FCGI_MAX_REQUESTS:10000
RequestTimeout=500
ActivityTimeout=900
3、優(yōu)化IIS應(yīng)用程序池配置
設(shè)置內(nèi)存,最大使用的內(nèi)存,我設(shè)置的值是2048M