Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache2 broken out of the box?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Psixi
n00b
n00b


Joined: 10 Oct 2005
Posts: 3

PostPosted: Mon Oct 10, 2005 5:11 am    Post subject: Apache2 broken out of the box? Reply with quote

I installed apache2 today, only to find that out of the box, it gave me a 403 Forbidden error. It does this no matter what I put after the / in my request to the server, or what my DocumentRoot is set to. I've checked the permissions, both in the 00_default_vhost.conf file and in the filesystem itself, and I've looked into the issue of a non-existent index file. Over the past 8-9 hours or so, I've done plenty of Google searches and searches on these forums, and tried about a dozen different fixes. I've also unmerged and then emerged apache over again, to make sure everything was exactly "factory settings." My intuition is that something is seriously wrong with my system that is causing apache to fail like this. I've checked the locations of my config files, and if I put nonsense at the end of the files, apache throws an error on startup, but anything I do that doesn't cause a syntax error in the config files seems to have no effect whatsoever on Apache. I also note that if I request a folder like http://localhost/quuux, I still get a 403 error, not a 404 error, suggesting that something is wrong at a fundamental level. The only thing I've been able to do that changes the error message I get in the browser beyond the name of the folder I'm being declined permission to is that if I set DocumentRoot to "/" and request http://localhost/, the phrase "Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request." is absent from the error message. A final clue is that I'm running on AMD64, and while apache was not hard or soft masked, perhaps it doesn't work too well on AMD64 yet?

Any hints or help would be appreciated.
Back to top
View user's profile Send private message
Janne Pikkarainen
Veteran
Veteran


Joined: 29 Jul 2003
Posts: 1143
Location: Helsinki, Finland

PostPosted: Mon Oct 10, 2005 7:21 am    Post subject: Reply with quote

I saw a similar issue this weekend. It turned out that Apache thought its document root was /usr/htdocs, while in reality files we're under /var/www/localhost/htdocs, as they are supposed to be. Since I was in rush, I just did ln -s /var/www/localhost/htdocs /usr/htdocs for now.

This was with x86 platform and this also was a new installation of Apache. Usually emerging Apache goes ok, but this time it did not. Gotta see the bugs.gentoo.org...
_________________
Yes, I'm the man. Now it's your turn to decide if I meant "Yes, I'm the male." or "Yes, I am the Unix Manual Page.".
Back to top
View user's profile Send private message
Psixi
n00b
n00b


Joined: 10 Oct 2005
Posts: 3

PostPosted: Mon Oct 10, 2005 2:40 pm    Post subject: Reply with quote

No, that's not it.... Before I did the reinstall I did a lot of messing about with permissions and ports and directories. I changed the DocumentRoot to point to 3 different things. Just to be certain, I made the link you suggest to no effect. Thanks anyway.
Back to top
View user's profile Send private message
Psixi
n00b
n00b


Joined: 10 Oct 2005
Posts: 3

PostPosted: Mon Oct 10, 2005 3:28 pm    Post subject: Reply with quote

Turns out I just needed to do chmod a=+x /, in case anyone else is having this problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum