Old 19th September 2005, 22:00
Glutch Glutch is offline
Junior Member
Join Date: Sep 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Wink Apache config help

I need a little assistance in setting up Apache 2.0 on SuSE 9.3. I am trying to create virtual servers located on a seperate mount point and cannot get the rights and settings quite right. In essence I am getting the dreaded access denied informational page. Anyone have a favorite document they can point me to to assist in my setup? Thanks in advance for the assist.
Reply With Quote
Sponsored Links
Old 19th September 2005, 22:29
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts

Do you have an index page (like index.html) in the web directory? The access denied page comes up when there's no index page. But maybe the permissions of the web directory are wrong.
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Old 15th October 2005, 20:15
themachine themachine is offline
Senior Member
Join Date: Oct 2005
Location: Texas, USA
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts

Its safe to say that in most apache installations... as long as the apache user has group ownership of the web directories it should be able to serve the pages. Note that the sub directories will inherit the stricter perms of its parent.


# ls -lah /home
drwx------   3 username www-data 4.0K Oct 15 12:01 username

# ls -lah /home/username
drwxr-sr-x  2 username www-data 4.0K Oct 15 12:01 web
If this was the case, even though the apache user 'www-data' has read/exec perms on '/home/username/web', it will *not* be able to read/execute because the parent directory '/home/username' is 'drwx------'. In order for the 'www-data' user to be able to read/exec '/home/username/web' you would need to do the following:

# chmod 750 /home/username

# ls -lah /home
drwxr-x---   3 username www-data 4.0K Oct 15 12:01 username
And the same goes for '/home'. If '/home' doesn't allow read/execute for user/group/other then you will most likely run into permissions issues.

As far as permissions, that is the basics to atleast allow access for the apache user. If you don't want group ownership to be the apache user, then the parent/sub dirs need to have aleast 755 permissions to allow everyone to read/traverse the directories in order to hit the webroot.

Hope that helps.

Reply With Quote


Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
apache user/group won't create directory weedguy Installation/Configuration 6 20th September 2005 00:40
Moving Apache to another port DrAgOOn Installation/Configuration 2 16th September 2005 12:14
Config file templates till Developers' Forum 0 31st July 2005 00:10
Apache from source on SuSE 9 Brenton Server Operation 1 25th July 2005 19:40
Apache + PHP lola Server Operation 1 25th April 2005 14:41

All times are GMT +2. The time now is 11:31.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.