LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Apache Forbidden error (https://www.linuxquestions.org/questions/linux-newbie-8/apache-forbidden-error-409095/)

Ab3n 01-28-2006 06:48 PM

Apache Forbidden error
 
Hey all,

I have an apache server set up on a slack 10.2 machine, everything works fine with the default httpd.conf, but when I change my document root and <directory> to a different folder I get this error (when trying to access the page):

403 Forbidden
You don't have permission to access / on this server.

Apache/1.3.33 Server at Middle-Earth.MiddleEarth Port 80

The folder that I changed doc root and directory to are on a different partition. How do I fix this?

oneferna 01-28-2006 10:45 PM

Always try the obvious first, so are your permissions ok on the directory?
ls -al /the_directory
They should be 755 for the directory and 644 for the files.
chmod 755 /the_directory
chmod 644 /the_directory/the_file
Then check the logs, I'm just guessing their /var/logs/apache if you find anything interesting post a bit of it here.
Thanks.


All times are GMT -5. The time now is 10:27 PM.