我有一个相当“臃肿”的 WordPress 安装,它使用 apache + mod_Fcgid + apc 引发了一些错误。
我有几个其他 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,一切都很好。并且它不是引发错误的同一页面。