夏期劇*_*期劇場 6 linux rhel selinux apache-httpd
我在 RHEL6.5
和 Apache 上2.2.15
。当我restart
的httpd
,我不能启动httpd
了。在 中显示以下内容/var/log/httpd/error_log
:
[Fri Aug 01 18:31:48 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Aug 01 18:32:35 2014] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0
[Fri Aug 01 18:32:35 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Aug 01 18:42:46 2014] [notice] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Fri Aug 01 18:42:46 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Aug 01 18:43:15 2014] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0
[Fri Aug 01 18:43:15 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Aug 01 18:43:59 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Aug 01 18:44:12 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Aug 01 18:45:03 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
Run Code Online (Sandbox Code Playgroud)
其实我已经disabled
在SELinux
和重新启动。
请问我该怎么办?
夏期劇*_*期劇場 12
抱歉,我已经找到原因了。这完全是因为SSL CERT
问题。并不是因为以上notices
。
这与上述消息无关。
因此,请忽略它们。
我该怎么做是我启用了 Apache 详细日志,然后这才是真正的举措。它通过在启动 Apache 时显示加载 mod_ssl 模块时的失败来显示实际发生的情况。然后我意识到这是因为ssl.conf
(或相应的 Vhost 文件)里面有 SSL Cert 配置。
在那里我犯了2个错误。首先,我没有授予 CERT 相关文件 (.crt/.key/.csr) 的读取权限。在那之后,更糟糕的是,其中一个文件出错了。