How to Disable SELINUX on Your VPS Print

  • 0

By default, CentOS deployments come with SELINUX enabled. In some cases, you may need to disable SELINUX, for example if you plan to install a control panel like cPanel or CyberPanel on your VPS.

 

To disable SELINUX, log in to your VPS via SSH and run the following commands:

 

setenforce 0
sed -i 's/enforcing/disabled/g' /etc/selinux/config

The first command temporarily sets SELINUX to permissive mode, while the second command permanently disables it by updating the configuration file. After running these commands, a server reboot may be required for the changes to take full effect.


Was this answer helpful?

« Back

Powered by WHMCompleteSolution