Introduction
cPanel & WHM is not compatible with SELinux. Leaving SELinux enabled could cause a myriad of issues or features not working. Additionally, this is a step that is required to perform before the cPanel & WHM software is installed.
Procedure
From the command-line, open the following file /etc/selinux/config
with your preferred text editor.
This file should look like this:
[07:39:07 server100 root@93535315 ~]cPs# cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
With your preferred text editor, simply edit the following line "SELINUX=enforcing
" and set it to "SELINUX=disabled
".
After this is modified, be sure to reboot your server.
To verify the changes took place, use the following command:
[root@the ~]$ sestatus
SELinux status: disabled