Disable SELINUX permanently

Disabling SELinux is necessary to run many of applications and services such as webservers and etc. The easiest way to disable SELinux is the famous command of “setenforce 0”. while this command disables SELinux fast but it does not provide a permanent solution.

To disable SELinux Permanently you need to make changes to “/etc/selinux/config” file.

Open it in your favorite editor, I use nano so I’ll have to open it this way:

nano /etc/selinux/config

and find the line saying “SELINUX=enforcing” to “SELINUX=disabled”.

That’s it. save the file and you are good to go.

 

Leave a Reply