Disable SELINUX in Red Hat ES 5 (CentOS 5)

To check and see if SELINUX (secure linux) is installed and running on your Red Hat ES 5 (CentOS 5, etc) server, use a text editor to open /etc/selinux/config:

vi /etc/selinux/config

Inside you should see a line that says

SELINUX=*some value*

Where *some value* is either enforcing, permissive or disabled. To shut SELINUX off, set the variable to disabled. To receive a set of errors to see what services would be affected if SELINUX was running, set it to perimissive. If you are sure all your services, daemons and everything else is set up with correct SELINUX permissions, you can set it to enforcing.

If you're getting an error after compiling and installing an Oracle OCI8 module for PHP you might want to set SELINUX to permissive or disabled until you are able to resolve the permission problem.

If you have to change the setting you should reboot the server to make sure the change takes effect system wide.

Share/Save/Bookmark

Advertisment

Comments

Leave a Reply