Apache 403 error, (13)Permission denied: access to / denied, Fedora 16

mennanov picture mennanov · Jan 11, 2012 · Viewed 28.3k times · Source

I've just set up apache on my Fedora 16. And i can't get my vhosts working!

Though localhost/phpmyadmin works fine..

I got this in my httpd.conf

<Directory /home/renat/www>
AllowOverride All
Options +Indexes +FollowSymLinks
Order allow,deny
Allow from all
</Directory>

NameVirtualHost *:80
<VirtualHost *:80>
    ServerName fabbro.fm
    DocumentRoot /home/renat/www/fabbro
</VirtualHost>

Everything is fine with permissions too:

    ls -l
    drwxr-xr-x. 32 renat renat 4096 янв.   7 16:12 www

And i've got 403 error when try to access fabbro.fm error_log says:

[client 127.0.0.1] (13)Permission denied: access to / denied

What do i have to do?

Answer

mennanov picture mennanov · Jan 19, 2012

I solved this problem! Apache could not access those directories because of the SELinux security settings. All i had to do is to apply this command to the directory in the path to document root:

chcon -R -t httpd_sys_content_t