easyapache 重建后 apache 服务器关闭

easyapache 重建后 apache 服务器关闭

我已经重建了我的 apache 服务器(使用 WHM 运行 CentOS)以使用 easyapache 更新我的 apache 功能。

重建过程以构建成功结束之后,我的网站变得无法访问,并显示错误消息:无法连接到服务器。

我已经重新启动了 apache 服务器和 sql,然后再次重建,但结果还是一样。

由于重建过程,我已经禁用防火墙。

这是错误日志

[Fri Dec 23 00:17:40 2011] [notice] caught SIGTERM, shutting down
[Fri Dec 23 00:17:42 2011] [notice] SSL FIPS mode disabled
[Fri Dec 23 00:17:42 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Fri Dec 23 00:17:42 2011] [notice] SSL FIPS mode disabled
[Fri Dec 23 00:17:42 2011] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 configured -- resuming normal operations
[Fri Dec 23 15:52:13 2011] [notice] caught SIGTERM, shutting down
[Fri Dec 23 15:52:15 2011] [notice] SSL FIPS mode disabled
[Fri Dec 23 15:52:15 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Fri Dec 23 15:52:15 2011] [notice] ModSecurity for Apache/2.6.2 (http://www.modsecurity.org/) configured.
[Fri Dec 23 15:52:15 2011] [notice] ModSecurity: APR compiled version="1.4.5"; loaded version="1.4.5"
[Fri Dec 23 15:52:15 2011] [notice] ModSecurity: PCRE compiled version="8.12"; loaded version="8.12 2011-01-15"
[Fri Dec 23 15:52:15 2011] [notice] ModSecurity: LUA compiled version="Lua 5.1"
[Fri Dec 23 15:52:15 2011] [notice] ModSecurity: LIBXML compiled version="2.7.8"
[Fri Dec 23 15:52:16 2011] [notice] SSL FIPS mode disabled
[Fri Dec 23 15:52:16 2011] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/1.0.0-fips mod_bwlimited/1.4 configured -- resuming normal operations
[Fri Dec 23 15:53:38 2011] [notice] caught SIGTERM, shutting down
[Fri Dec 23 15:53:40 2011] [notice] SSL FIPS mode disabled
[Fri Dec 23 15:53:40 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Fri Dec 23 15:53:40 2011] [notice] ModSecurity for Apache/2.6.2 (http://www.modsecurity.org/) configured.
[Fri Dec 23 15:53:40 2011] [notice] ModSecurity: APR compiled version="1.4.5"; loaded version="1.4.5"
[Fri Dec 23 15:53:40 2011] [notice] ModSecurity: PCRE compiled version="8.12"; loaded version="8.12 2011-01-15"
[Fri Dec 23 15:53:40 2011] [notice] ModSecurity: LUA compiled version="Lua 5.1"
[Fri Dec 23 15:53:40 2011] [notice] ModSecurity: LIBXML compiled version="2.7.8"
[Fri Dec 23 15:53:41 2011] [notice] SSL FIPS mode disabled
[Fri Dec 23 15:53:41 2011] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/1.0.0-fips mod_bwlimited/1.4 PHP/5.2.17 configured -- resuming normal operations
[Fri Dec 23 15:53:46 2011] [notice] caught SIGTERM, shutting down
[Fri Dec 23 15:53:48 2011] [notice] SSL FIPS mode disabled
[Fri Dec 23 15:53:48 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Fri Dec 23 15:53:48 2011] [notice] ModSecurity for Apache/2.6.2 (http://www.modsecurity.org/) configured.
[Fri Dec 23 15:53:48 2011] [notice] ModSecurity: APR compiled version="1.4.5"; loaded version="1.4.5"
[Fri Dec 23 15:53:48 2011] [notice] ModSecurity: PCRE compiled version="8.12"; loaded version="8.12 2011-01-15"
[Fri Dec 23 15:53:48 2011] [notice] ModSecurity: LUA compiled version="Lua 5.1"
[Fri Dec 23 15:53:48 2011] [notice] ModSecurity: LIBXML compiled version="2.7.8"
[Fri Dec 23 15:53:49 2011] [notice] SSL FIPS mode disabled
[Fri Dec 23 15:53:49 2011] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/1.0.0-fips mod_bwlimited/1.4 PHP/5.2.17 configured -- resuming normal operations
[Fri Dec 23 16:01:21 2011] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/htdocs/server-status
[Fri Dec 23 16:01:39 2011] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/htdocs/server-status
[Fri Dec 23 16:10:46 2011] [notice] SIGHUP received.  Attempting to restart
[Fri Dec 23 16:10:47 2011] [notice] SSL FIPS mode disabled
[Fri Dec 23 16:10:47 2011] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/1.0.0-fips mod_bwlimited/1.4 PHP/5.2.17 configured -- resuming normal operations
[Fri Dec 23 16:46:59 2011] [notice] caught SIGTERM, shutting down
[Fri Dec 23 16:47:01 2011] [notice] SSL FIPS mode disabled
[Fri Dec 23 16:47:01 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Fri Dec 23 16:47:01 2011] [notice] ModSecurity for Apache/2.6.2 (http://www.modsecurity.org/) configured.
[Fri Dec 23 16:47:01 2011] [notice] ModSecurity: APR compiled version="1.4.5"; loaded version="1.4.5"
[Fri Dec 23 16:47:01 2011] [notice] ModSecurity: PCRE compiled version="8.12"; loaded version="8.12 2011-01-15"
[Fri Dec 23 16:47:01 2011] [notice] ModSecurity: LUA compiled version="Lua 5.1"
[Fri Dec 23 16:47:01 2011] [notice] ModSecurity: LIBXML compiled version="2.7.8"
[Fri Dec 23 16:47:02 2011] [notice] SSL FIPS mode disabled
[Fri Dec 23 16:47:02 2011] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/1.0.0-fips mod_bwlimited/1.4 PHP/5.2.17 configured -- resuming normal operations

答案1

您的日志中唯一的错误是:

[Fri Dec 23 16:01:21 2011] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/htdocs/server-status
[Fri Dec 23 16:01:39 2011] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/htdocs/server-status

在您的日志中,“错误”将阻止 Apache 运行,而仍应处理通知以获得最佳性能,但仍将允许 Apache 运行。

从 shell 中尝试接触 /usr/local/apache/htdocs/server-status:

touch /usr/local/apache/htdocs/server-status

然后将其 chown 给 apache 用户(假设用户“apache”运行 Apache 进程,然后运行......)

chown apache.apache /usr/local/apache/htdocs/server-status

相关内容