Question
How do you disable SELinux?
Answer
cPanel & WHM is not compatible with SELinux. Leaving SELinux enabled could cause a myriad of issues or prevent features from working.
- Access the server's command line as the 'root' user via SSH or Terminal in WHM.
- Open
/etc/selinux/configin your preferred text editor. - Find the
SELINUXline. -
Change the value to
disabled:CONFIG_TEXT: SELINUX=disabled
-
On Enterprise Linux 9 systems (AlmaLinux 9, Rocky Linux 9), the kernel arguments need to be updated as well, which you can do by running the following command:
# grubby --update-kernel ALL --args selinux=0
- Reboot the server.
-
After a reboot, the command below can be used to check the status to verify it's disabled:
# sestatus
Comments
0 comments
Article is closed for comments.