[CentOS] Apache not liking directories outside of /var/www

Ned Slider ned at unixmail.co.uk
Sat Aug 1 18:53:40 UTC 2009

Filipe Brandenburger wrote:
> Hi,
> On Sat, Aug 1, 2009 at 12:30, Mark Hedges<hedges at scriptdolphin.com> wrote:
>>> http://wiki.centos.org/HowTos/SELinux
>> Is this why DBD::SQLite broke under mod_perl recently in
>> CentOS?
> It might or might not be... In order to be sure, you may check the
> audit logs at /var/log/audit/audit.log (make sure the "audit" RPM is
> installed and the "auditd" daemon is enabled and running), you might
> see SELinux messages in that file when some access is denied.
> HTH,
> Filipe

Further to Filipe's advice, if you temporarily switch SELinux into 
permissive mode and stuff then works again, take that as a pretty good 
indication that it was indeed SELinux that was preventing it. At that 
point you know where to look to fix the problem.

The Wiki guide for SELinux has lots of information on troubleshooting 
SELinux issues:


More information about the CentOS mailing list