在我将php处理程序更改为fcgi
之后,我的wordpress表现得很奇怪[Sat Dec 03 02:13:06 2011] [warn] [client 66.249.72.226] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Sat Dec 03 02:13:06 2011] [error] [client 66.249.72.226] Premature end of script headers: index.php
[Sat Dec 03 02:18:11 2011] [warn] [client 94.139.59.97] mod_fcgid: read data timeout in 40 seconds, referer: http://www.domain.com/wp-admin/upload.php
[Sat Dec 03 02:18:11 2011] [error] [client 94.139.59.97] Premature end of script headers: admin.php, referer: http://www.domain.com/wp-admin/upload.php
[Sat Dec 03 02:18:18 2011] [warn] mod_fcgid: process 24965 graceful kill fail, sending SIGKILL
我该如何解决这个问题?我通过cPanel更改了php处理程序,并将php升级到5.3.8。
答案 0 :(得分:0)
您需要使用FCGI设置才能解决此问题。这通常说明fcgi脚本死得太快了。 有关详细信息,请查看http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html。首先,您可以使用:
FcgidMinProcessesPerClass 0 FcgidMaxProcessesPerClass 8 FcgidMaxProcesses 150 FcgidIdleTimeout 60 FcgidProcessLifeTime 120 FcgidIdleScanInterval 30