【问题标题】:Redhat "httpd" can not start anymore. Showing "suEXEC" and "SELinux" noticesRedhat "httpd" 无法启动了。显示“suEXEC”和“SELinux”通知
【发布时间】:2014-09-24 13:29:09
【问题描述】:

我使用的是 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了。
请问我该怎么办?

【问题讨论】:

    标签: apache redhat rhel selinux suexec


    【解决方案1】:

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

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

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

    【讨论】:

      猜你喜欢
      • 2022-01-13
      • 2012-10-12
      • 2017-05-31
      • 1970-01-01
      • 2020-04-15
      • 1970-01-01
      • 1970-01-01
      • 2017-12-10
      • 1970-01-01
      相关资源
      最近更新 更多