Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-11-2004, 07:59 AM   #1
LQ Newbie
Registered: Mar 2004
Posts: 2

Rep: Reputation: 0
Thumbs down Apache - 403 Forbidden - Access to Subdirectories

Hi all,

as a newbie in setting up an apache (1.3.9) with php4 and mySQL (3.22), I got:

403 Forbidden - You don't have permissions to access /doc/php/index.html on this server

when trying to reach files contained in subdirectories of /www

I installed:
* /www as DokumentRoot
* /www (and subdirectories) have 755-permissions and of www-data.www-data

I run apache as root - the user which opens the browser is part of the group www-data.

* What causes this 403 error?
* How can I solve it ("open" subdirs of /www in httpd.conf or srm.conf)?
* Are those "sticky-bits" responsible for this access troubles- how to apply?

(Similar questions/answers in this forum didn't give me the right hint)

TIA for any help
Old 03-11-2004, 08:57 AM   #2
LQ Newbie
Registered: Mar 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Strange, but It works now in some manner:

I renamed the directory /www/doc to /www/dc

I'm really confused - what did I do?
How can I prevent the 403 error in future?

Old 03-25-2004, 12:51 PM   #3
Registered: Mar 2004
Location: Toronto, Ontario
Distribution: Debian
Posts: 36

Rep: Reputation: 15
I ran into a similar problem when I was trying to setup apache to work in any other directory than /var/www...

The resolution turned out to be adding an entry for the new dir in httpd.conf like this:

<Directory /home/some_other_direcory/>
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride AuthConfig
Order allow,deny
Allow from all

then reloading apache.


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 403 forbidden? wezhousheng Linux - Networking 5 05-13-2005 12:15 AM
access 403 forbidden - user_dir sigurdne Linux - Newbie 6 11-27-2004 05:55 AM
Error 403 Forbidden access in Apache anoop_cn Linux - Software 1 09-21-2004 09:32 AM
Apache 403 Forbidden mrmike Linux - Newbie 3 07-10-2004 11:31 AM
Apache 403 Forbidden quozt Linux - Networking 10 02-24-2004 04:59 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:08 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
Open Source Consulting | Domain Registration