ApacheconfigurationeAccelerator和FastCGI后永远不会运行

我最近使用apacheconfiguration加速器和fastcgi: http : //secure-ubuntu-server.blogspot.com/2009/07/howto-performance-tuning-of-lamp-and.html

现在我的Apache从不开始。

日志显示:

Mon Jul 20 16:12:24 2009] [notice] ModSecurity for Apache/2.5.6 (http://www.modsecurity.org/) configured. [Mon Jul 20 16:12:25 2009] [notice] FastCGI: process manager initialized (pid 10919) [Mon Jul 20 16:12:25 2009] [alert] FastCGI: read() from pipe failed (0) [Mon Jul 20 16:12:25 2009] [alert] FastCGI: the PM is shutting down, Apache seems to have disappeared - bye 

什么是你正在使用的PHP的确切版本? eAccelerator与PHP 5.3不兼容 – 老实说,我强烈推荐APC或XCache高于eAccelerator。

尝试直接从命令行(即运行/usr/sbin/apache2或任何HTTPD可执行文件)运行Apache实例来查看是否有任何更多的反馈(如Segmentation fault )。

我不能评论,所以我会在这里发表。

也许,PHP导致了一个分割错误,因此Apache正在死亡。 如果你使用的是在FcgidWrapper中的php-cgi,或者你使用fastcgiconfiguration了php,那么可以直接从命令行运行。

例如,/ usr / bin / php-cgi。

如果您使用Action指令configuration了它,请确保包装程序已设置可执行位。

尝试使用strace从shell运行apache二进制文件:

strace -f / usr / sbin / apache2> / tmp / outfile

或者任何你的二进制文件。 之后,检查文件的更less或尾部,以检查发生在Apache之前发生的最后条目(错误消息写入日志之前不久)。

less / tmp / outfile