Resolution
To temporarily disable SELinux (until reboot), use the setenforce 0
command.
To disable SELinux permanently, follow these steps:
Open the file /etc/selinux/config in a text editor and locate the line starting with SELINUX=.
Change the line to SELINUX=disabled and save the file.
If you cannot find this file, open the file /boot/grub/grub.conf in a text editor and add selinux=0 to the list of kernel parameters:
title CentOS (2.6.32-220.13.1.el6.x86_64) root (hd0,0) kernel /boot/vmlinuz-2.6.32-220.13.1.el6.x86_64 ro root=UUID=ec4ed555-a0a2-413e-9c95-678543c465ce quiet selinux=0 initrd /boot/initramfs-2.6.32-220.13.1.el6.x86_64.img
- Restart the server to apply the changes.