CentOS disable SELinux, the following tutorial shows you how to disable SELinux without rebooting on CentOS 5 & 6 the guide also shows you how to permanently disable SELinux. I only recommend disabling SELinux during troubleshooting, keeping it enabled and configuring it correctly is by far the best option.
CentOS disable SELinux without rebooting
The following command ran as root will disable SELinux without rebooting on CentOS 6 & 5:
Note, SELinux will return to enforcing (enabled) again on the next reboot, if you wish to permanently disable SELinux see the instructions below.
CentOS disable SELinux permanently
To permanently disable SELinux on CentOS (5 & 6) open /etc/selinux/config with:
Replace the line that reads:
Or optionally you can set it to permissive, this stops SELinux from enforcing but still allows it to warn you.
Your file should look like this:
1 2 3 4 5 6 7 8 9 10
I do not recommend leaving SELinux disabled on CentOS as a permanent solution.