FastCGI配置错误-上传和图像处理失败


FastCGI Configuration errors - upload and image processing fail

我的wordpress行为奇怪,在我改变php处理程序为fcgi

[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。

你需要玩你的FCGI设置,以解决这个问题。这通常说明fcgi脚本死亡得太快了。更多信息请访问http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html。一开始你可以使用:

<>之前FcgidMinProcessesPerClass 0FcgidMaxProcessesPerClass 8FcgidMaxProcesses 150FcgidIdleTimeout 60FcgidProcessLifeTime 120FcgidIdleScanInterval 30