当新的域被添加/删除时,Apache正在死亡

每次我在我的服务器的控制面板中添加新的域,Apache服务器和nginx作为前端代理应该重新启动 – nginx作为reload,apache作为优雅。

然而,它会抛出nginx错误页面,然后一切都快死了(没有find这样的页面),所以nginx也closures,然后所有的服务都重新开始,一切正常,直到下一个域被添加/删除。

为什么它显示没有这样的文件或目录?

[Mon Sep 15 00:48:55 2014] [notice] Apache/2.2.29 (Unix) DAV/2 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_python/3.3.1 Python/2.6.6 mod_rpaf/0.6 mod_ssl/2.2.29 OpenSSL/1.0.1e-fips mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations [Mon Sep 15 00:49:39 2014] [error] child process 22371 still did not exit, sending a SIGKILL [Mon Sep 15 00:50:06 2014] [alert] (2)No such file or directory: FastCGI: read() from pipe failed (0) [Mon Sep 15 00:50:06 2014] [alert] (2)No such file or directory: FastCGI: the PM is shutting down, Apache seems to have disappeared - bye [Mon Sep 15 00:50:10 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) 

另一个testing:

 nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful 

 httpd -t Syntax OK 

“没有这样的文件或目录”可能是对Apacheconfiguration中不存在的模块的引用。 configuration不会说它是缺less的,并把它传递给你,但是服务器不会启动,因为该模块仍然不存在。 我会说看看使用FastCGI作为包装的插件(如PHP,这个问题与我一起),并禁用它们,重新启用一个接一个,直到你再次发现错误。 有时候会出现这个错误,因为你的服务器正在服务器path中寻找扩展名,而扩展名在别的地方(因此没有这样的文件或目录)。