【问题标题】:FastCGI Configuration errors - upload and image processing failFastCGI 配置错误 - 上传和图像处理失败
【发布时间】:2012-01-11 23:28:10
【问题描述】:

在我将 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。

【问题讨论】:

  • 我遇到了同样的错误,你找到解决方法了吗?
  • 我重新安装了 apache 并编译了 php。

标签: php wordpress fastcgi mod-fastcgi


【解决方案1】:

您需要使用您的 FCGI 设置来解决此问题。这通常说明 fcgi 脚本死得太快了。 查看http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html 了解更多信息。首先,您可以使用:

FcgidMinProcessesPerClass 0 FcgidMaxProcessesPerClass 8 FcgidMaxProcesses 150 FcgidIdleTimeout 60 FcgidProcessLifeTime 120 FcgidIdleScanInterval 30

【讨论】:

    猜你喜欢
    • 2020-03-09
    • 1970-01-01
    • 2017-12-30
    • 2013-01-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-02-23
    • 2016-11-26
    相关资源
    最近更新 更多