How do I disable SELinux?

Created:

2016-11-16 13:15:17 UTC

Modified:

2017-04-24 11:14:55 UTC

1

Was this article helpful?


Have more questions?

Submit a request

How do I disable SELinux?

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux

Resolution

To temporarily disable SELinux (until reboot), use the setenforce 0 command.

To disable SELinux permanently, follow these steps:

  1. Open the file /etc/selinux/config in a text editor and locate the line starting with SELINUX=.

  2. Change the line to SELINUX=disabled and save the file.

  3. 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
  4. Restart the server to apply the changes.

Have more questions? Submit a request
Please sign in to leave a comment.