Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does this mean that selinux is currently enabled on my system?

In /etc/sysconfig/selinux, I set:


AND then rebooted the server, but still in phpinfo() the same thing is showing up!

How do I disable it permanently?

(Nothing against selinux, but I have scripts that need to execute other programs - and it appears that selinux is interfering with them...

Edit 1:

If it helps, I also did the same in: /etc/selinux/config

share|improve this question
Where? None of my systems that run SELinux show this. – Ignacio Vazquez-Abrams Oct 25 '10 at 7:50
Interesting... it appears below the Environment block for me... and below PHP Variables it shows: _ENV["SELINUX_INIT"] YES – siliconpi Oct 25 '10 at 7:53
How can I check if its actually running? – siliconpi Oct 25 '10 at 7:53
This is something specific to your system/distro, and probably has nothing to do with whether or not SELinux is actually enabled. – Ignacio Vazquez-Abrams Oct 25 '10 at 7:54
The sestatus command will tell you. – Ignacio Vazquez-Abrams Oct 25 '10 at 7:55
up vote 0 down vote accepted

That entry is an environment variable set by the system, and has nothing to do with whether or not SELinux is enabled. The way to check if SELinux is enabled is to run sestatus.

share|improve this answer
Thanks Ignacio - that command helped identify whether selinux was really active or not on my system! – siliconpi Oct 25 '10 at 8:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.