Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

In /etc/sysconfig/selinux, I set:

  SELINUX=disabled

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... http://serverfault.com/questions/192951/what-permissions-are-needed-to-run-a-system-command-within-a-php-script-that-wr)

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 –  matt74tm Oct 25 '10 at 7:53
    
How can I check if its actually running? –  matt74tm 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

1 Answer 1

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! –  matt74tm Oct 25 '10 at 8:06

Your Answer

 
discard

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.