Disable SELinux

If you are having trouble with SELinux, you can just go ahead and disable it with


nano /etc/selinux/config


and set SELINUX= to disabled.

SELINUX=disabled

Just replace the current line which most of the time will be set to enforcing.

This disabled SELinux on boot, however it is still enabled to disable it without having to reboot execute

setenforce 0

If you wish to go ahead and enable specific applications without disabling SELinux look at the setsebool command. The most common problem I have found is SELinux blocking mySQL an example of the fix would be

setsebool -P mysqld_disable_trans=1


User Comments