How to disable Apache SELinux Protection? Print
Written by Максим   
Monday, 01 August 2011 13:18

Configuration is correct, but when I try to go for an http alias / iqm / or / pa / an error with the access rights:

[Mon Aug 01 13:25:44 2011] [error] [client x.x.x.x] (13)Permission denied: access to /iqm/ denied
[Mon Aug 01 13:25:46 2011] [error] [client x.x.x.x] (13)Permission denied: access to /iqm denied
[Mon Aug 01 13:25:51 2011] [error] [client x.x.x.x] (13)Permission denied: access to /pa/ denied

what is wrong?

 

It looks like SELinux working. It is recommended to switch off SELinux for Apache. For this you have to set httpd_disable_trans value to 1 using setsebool command. After this restart apache service.

[root@iqm selinux]# setsebool httpd_disable_trans 1
[root@iqm selinux]# service httpd restart

Last Updated on Monday, 03 August 2015 16:15