我在RHEL 6.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)
实际上我已经disabled
SELinux了
我该怎么办?
答案 0 :(得分:2)
检查:getenforce
如果SELinux确实被禁用,则必须显示:已禁用。
如果不是,则更改 / etc / selinux / config :SELINUX=disabled
,以确保您可以重启系统,但setenforce 0
也应该工作
如果确信SELinux已被禁用,那么您的问题与SELinux无关。 Httpd在日志中告诉你它将使用上下文unconfined_u:system_r:httpd_t:s0
运行,但由于SELinux被禁用,因此无法强制执行此操作。