我已经重build了我的apache服务器(使用WHM运行CentOS)来使用easyapache来更新我的apache特性。
在重build过程结束与build立成功后,我的网站成为无法访问与错误消息:无法连接到服务器。
我已经重新启动Apache服务器和SQL,然后重新重build,但具有相同的结果。
由于重build过程,我已经禁用了防火墙。
这是错误日志
[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
你的日志中唯一的错误是这样的:
[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
在你的日志中,“Errors”将阻止Apache运行,而Notices应该仍然被解决以获得最佳性能,但是仍然允许Apache运行。
从shell中,尝试触摸/ usr / local / apache / htdocs / server-status:
touch /usr/local/apache/htdocs/server-status
然后,将它们传递给apache用户(假设用户“apache”运行Apache进程,然后运行…)
chown apache.apache /usr/local/apache/htdocs/server-status