SE (Security Enhanced) Linux is a security feature in the Linux kernel and enabled by default (on some distributions) that provides more fine grained access control compared to traditional file permissions. A centralized policy determines which software can access what resources. For example, services can be confined to specific ports or files.
Sometimes however you will encounter software that recommends Selinux be disabled in order for it to run.
Login to your VPS as a root or sudo user
Once logged in, temporarily disable Selinux with the below command:
Disabling Selinux on boot
Selinux will have a configuration file that you can edit to disable it permanently.
Edit the file /etc/sysconfig/selinux in your preferred text editor, changing the line "SELINUX=enforcing" to "SELINUX=disabled", so that the file looks like this:
# This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled # SELINUXTYPE= can take one of three two values: # targeted - Targeted processes are protected, # minimum - Modification of targeted policy. Only selected processes are protected. # mls - Multi Level Security protection. SELINUXTYPE=targeted
That's it! Selinux should now be disabled on future boot as well.