2

在我将 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-handler,并将 php 升级到 5.3.8。

4

1 回答 1

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
于 2012-06-19T19:34:11.110 回答