Redhat" httpd"不能再开始了。显示" suEXEC"和" SELinux"通告

时间:2014-08-01 10:50:20

标签: apache redhat rhel selinux suexec

我在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了 我该怎么办?

1 个答案:

答案 0 :(得分:2)

检查:getenforce如果SELinux确实被禁用,则必须显示:已禁用。

如果不是,则更改 / etc / selinux / config SELINUX=disabled,以确保您可以重启系统,但setenforce 0也应该工作

如果确信SELinux已被禁用,那么您的问题与SELinux无关。 Httpd在日志中告诉你它将使用上下文unconfined_u:system_r:httpd_t:s0运行,但由于SELinux被禁用,因此无法强制执行此操作。