Starting zip archived JBCS Apache installed outside of /opt via systemd fails when SELinux is enforced
Issue
In a SELinux enforcing environment, attempting to start JBCS Apache through the systemd unit file generated by .postinstall.systemd fails due to the following error: Failed to load environment files: Permission denied.:
# journalctl -u jbcs-httpd24-httpd.service
Nov 20 10:53:05 <hostname> systemd[1]: jbcs-httpd24-httpd.service: Failed to load environment files: Permission denied
Nov 20 10:53:05 <hostname> systemd[1]: jbcs-httpd24-httpd.service: Failed to run 'start' task: Permission denied
Nov 20 10:53:05 <hostname> systemd[1]: jbcs-httpd24-httpd.service: Failed with result 'resources'.
Nov 20 10:53:05 <hostname> systemd[1]: Failed to start The Apache HTTP Server.
Environment
- Red Hat JBoss Core Service Apache HTTPD Server
- 2.4.57
- 2.4.62
- JBCS Apache zipped archive
- Red Hat Enterprise Linux
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.