脚本标题/信号11的过早结束

时间:2013-03-07 03:51:28

标签: php wordpress apache apc mod-fcgid

我有一个相当"臃肿"使用apache + mod_Fcgid + apc抛出一些错误的WordPress安装。

我有几个其他WordPress网站在此配置下运行,没有任何问题,但这个特定网站随机抛出"内部错误"在管理界面中并吐出如下日志:

[Thu Mar 07 03:37:06 2013] [error] [client 1.2.3.4] Premature end of script headers: php5-fcgi, referer: http://www.example.com/wp-admin/themes.php
[Thu Mar 07 03:37:08 2013] [error] mod_fcgid: process /home/example.com/docs/php5-fcgi(30772) exit(communication error), get unexpected signal 11
[Thu Mar 07 03:37:24 2013] [error] mod_fcgid: process /home/example.com/docs/php5-fcgi(31408) exit(communication error), get unexpected signal 11
[Thu Mar 07 03:37:28 2013] [warn] [client 1.2.3.4] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server, referer: http://www.example.com/wp-admin/themes.php
[Thu Mar 07 03:37:28 2013] [error] [client 1.2.3.4] Premature end of script headers: php5-fcgi, referer: http://www.example.com/wp-admin/themes.php
[Thu Mar 07 03:37:29 2013] [error] mod_fcgid: process /home/example.com/docs/php5-fcgi(31410) exit(communication error), get unexpected signal 11
[Thu Mar 07 03:38:31 2013] [warn] [client 1.2.3.4] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server, referer: http://www.example.com/wp-admin/widgets.php
[Thu Mar 07 03:38:31 2013] [error] [client 1.2.3.4] Premature end of script headers: php5-fcgi, referer: http://www.example.com/wp-admin/widgets.php
[Thu Mar 07 03:38:34 2013] [error] mod_fcgid: process /home/example.com/docs/php5-fcgi(31412) exit(communication error), get unexpected signal 11

我为mod_fcgid设置了以下值:

FcgidMaxRequestInMem 131072
FcgidBusyTimeout 3600
FcgidIOTimeout 600

有关还有其他调整的建议吗?

更新

看起来问题只发生在APC启用时。如果我禁用APC,一切都很好。并且它不是引发错误的页面。

3 个答案:

答案 0 :(得分:0)

听起来像你在某个地方错过了},但你并没有给予太多的帮助。我怀疑这是FastCGI本身的一个问题。

如果禁用所有插件,错误是否会消失?如果是这样,请一次重新启用它们,直到找到罪魁祸首。

此外,尝试切换到默认的wordpress主题。在缩小范围之前,您需要做更多的故障排除。

答案 1 :(得分:0)

我终于找到了这个。事实证明,这个特定的WordPress网站导致我的apc段大小超载。我增加了记忆力,我的问题也解决了。

答案 2 :(得分:0)

删除PHP的suhosin模块解决了这个问题。

相关问题