View previous topic :: View next topic |
Author |
Message |
Psixi n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 10 Oct 2005 Posts: 3
|
Posted: Mon Oct 10, 2005 5:11 am Post subject: Apache2 broken out of the box? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Janne Pikkarainen Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/10433783463f526aba4144d.jpg)
Joined: 29 Jul 2003 Posts: 1143 Location: Helsinki, Finland
|
Posted: Mon Oct 10, 2005 7:21 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Psixi n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 10 Oct 2005 Posts: 3
|
Posted: Mon Oct 10, 2005 2:40 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Psixi n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 10 Oct 2005 Posts: 3
|
Posted: Mon Oct 10, 2005 3:28 pm Post subject: |
|
|
Turns out I just needed to do chmod a=+x /, in case anyone else is having this problem. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|