2

我在 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)

实际上我已经有了disabledSELinux。
请问我该怎么办?

4

1 回答 1

2

检查:getenforce如果 SELinux 真的被禁用,它必须显示:禁用。

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

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

于 2014-08-20T11:53:01.207 回答