Uradio sam to, pa reboot, ponovo pokrenuo httpd, ali i dalje neće :S
Kôd:
[root@server ~]# cat /etc/sysconfig/selinux
# 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 these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
Bilo je SELINUX=permissive, ne enforcing.
U nastavku...
Kôd:
[root@server ~]# cat /dev/null > /var/log/httpd/error_log
[root@server ~]# cat /var/log/httpd/error_log
[root@server ~]# /etc/init.d/httpd status
httpd is stopped
[root@server ~]# /etc/init.d/httpd start
Starting httpd: [ OK ]
[root@server ~]# cat /var/log/httpd/error_log
[Sun Nov 24 13:48:29 2013] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0
[Sun Nov 24 13:48:29 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Nov 24 13:48:29 2013] [notice] Digest: generating secret for digest authentication ...
[Sun Nov 24 13:48:29 2013] [notice] Digest: done
[Sun Nov 24 13:48:30 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
I dalje mi u error_log javlja da je SELinux aktivan :S