I Installed Lamp on Fedora 15 . i tried to change the Document Root to /home/USER/www , i changed it in the config file . though it gave me 403 Forbidden error when i try to access the "local host "

How can i solve this issue ?

link|improve this question
feedback

2 Answers

You have changed the DocumentRoot setting but have not amended the associated <Directory> and / or <Location> tags in the configuration to allow access to the new location. Amend the paths within the appropriate tags and restart Apache and you'll be fine. See the Apache Manual for details.

link|improve this answer
i changed the DocumentRoot "/home/USER/www" & restart apache but still giving the same Error – Hamza Aug 21 '11 at 7:10
You still need to change the existing <Directory> and / or <Location> settings too, just changing the DocumentRoot is not enough. – Mike Insch Aug 21 '11 at 12:49
feedback

Did you make /home/USER/www/ world viewable? If apache tries to visit your new Document Root it might not have permission to view it.

chmod 711 /home/USER
chmod 755 /home/USER/www
chmod 644 /home/USER/www/*
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.