Why does the service httpd fail to start when SELinux is in Enforcing mode?

Solution Unverified - Updated -

Issue

  • Why does the service httpd fail to start when SELinux is in Enforcing mode?
  • The service httpd is running with Include /opt/file.conf, while restarting httpd with selinux Enforcing, it fails to start with the following message.
[root@example ~]# /etc/init.d/httpd start
Starting httpd: httpd: Syntax error on line 1013 of /etc/httpd/conf/httpd.conf: Could not open configuration file /opt/sequoia/httpd/sequoia.conf: Permission denied                                                            [FAILED]

Environment

  • Red Hat Enterprise Linux 6
  • SELinux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.