Setting Apache DocumentRoot in Fedora

apache-2.2fedora

I am trying to change my DocumentRoot from APACHE_ROOT/htdoc to /home/user/www in Fedora 16. I am getting 403 Forbidden: You don't have permission to access / on this server.

I modified DocumentRoot in conf/httpd.conf as:

..
DocumentRoot "/home/user/www"
...

I changed my "www" permission with

chmod -R 777 www

I restarted apache server and i still get the error "you don't have permision to access / on this server"

I even tried setting off the SELinux as

echo 0 > /selinux/enforce

still the problem persists.

I think it's problem with the configuration file itself.. Is there any other parameters that need to be changed.

Best Answer

Stated that yo have to change the directory directive also, the path to your root

....
DocumentRoot /home/user/www
....
<Directory /home/user/www/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all
</Directory>

You should also tune better your permission policy to me ...