Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-28-2006, 07:48 PM   #1
Registered: Sep 2004
Location: Colorado, USA
Distribution: CentOS 5
Posts: 144

Rep: Reputation: 15
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?
Old 01-28-2006, 11:45 PM   #2
Registered: May 2003
Distribution: Fedora Core 3, Gentoo
Posts: 47

Rep: Reputation: 15
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
apache error, 403 forbidden afrodocter Linux - Software 6 08-09-2004 09:35 PM
Apache: Forbidden Error Ninja Cow Linux - Software 2 12-07-2003 01:24 PM
Apache forbidden error!!!!!!!!!!! RKris Linux - Software 5 11-24-2003 08:17 AM
Apache 2.0.4 .. FORBIDDEN error CRego3D Linux - Software 6 05-15-2003 11:44 AM
apache 403 error forbidden? bulliver Linux - General 4 01-31-2003 08:47 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:18 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration