Minimum settings for SELinux so that Joomla! Adapter code can be run without errors.

Minimum settings for SELinux so that Joomla! Adapter code can be run without errors.

book

Article ID: KB0094678

calendar_today

Updated On:

Products Versions
Adapter Code for TIBCO API Exchange and Joomla! -
Not Applicable -

Description

Description:
The article lists the minimum settings at the OS level which needs to be done so that Apache, PHP, MySQL can interact with each other and host the Joomla! Adapter code base.

Symptoms:
Joomla! page not displayed, PHP errors, Apache not being compiled successfully or does not start without errors. Since the issue is with SELinux the problem may be either when starting Apache or binding PHP to Apache and starting Apache.



Cause:
SELinux restrictions cause HTTPD to not behave the same as it works in a non-SELinux environment. Either disable SELinux permanently (which you may choose not to as it offers some security) or run the following commands as root and restart Apache HTTPD.

Issue/Introduction

Minimum settings for SELinux so that Joomla! Adapter code can be run without errors.

Resolution

Run the following so that the HTTPD can be started successfully.

sudo setsebool -P httpd_unified=1
sudo setsebool -P httpd_enable_cgi on
sudo setsebool -P httpd_unified on
sudo setsebool -P httpd_builtin_scripting on

If you want to disable SELinux permanently, modify /etc/selinux/config with the following and reboot the machine.


# cat /etc/selinux/config
SELINUX=disabled
SELINUXTYPE=targeted
SETLOCALDEFS=0