Daemons not coming up for Airwave installed on Redhat

Some customers install AMP on RHEL to comply with the company policies. Sometime on such custom installation we may run into the issues where Airwave GUI wont be accessible httpd daemon failing to be stable.

Diagnostics:

To get more details on why the httpd daemons is failing we can check the httpd error logs. We can tail the httpd error log using the below command on Airwave,

# tail -f /var/log/httpd/error_log

In this case we will be seeing error message stating SELinux policy enabled: httpd running as context system_u:system_r:initrc_t:s0

Solution

The reason for this is SELinux is enabled on the server and it is preventing the daemons to start. On normal Airwave install SELinux will be disabled by default. We can execute the below command to see the SELinux status,

# sestatus

To disable SELinux permanently we can edit the selinux config file from the below location and set the SELinux to disabled