Forum Moderators: phranque

Message Too Old, No Replies

virtual server causes permission errors

         

aslong

6:40 pm on Jul 12, 2005 (gmt 0)

10+ Year Member



Hello there,

I've set up a simple virtual server on my new root VPS hosting package, but whenever i try and access it I just get forbidden errors.

"You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request"

the linux file permissions themselves seem fine, and the main server runs perfectly ok.

I just can't figure it out.

I'm running Fedora.

ChadSEO

8:29 pm on Jul 12, 2005 (gmt 0)

10+ Year Member



First off, check your DocumentRoot, make sure it's set correctly. Then, go to every directory from the root level to your DocumentRoot, and make sure that whatever user apache runs as has permission to read and execute the directory. Execute permission on a directory allows a user to get a directory listing. The user/group that apache runs off of is probably unrelated to who owns those directories, so the key permission you're looking at is the "other" users. That's all I can think of off the top of my head, anyone else have other suggestions?

aslong

10:50 pm on Jul 12, 2005 (gmt 0)

10+ Year Member



hey there.

yeah. the 'other' group is set to at least read on all files/directories.. it's some other security thing I think.

ChadSEO

2:16 pm on Jul 13, 2005 (gmt 0)

10+ Year Member



Check the apache error log, and see what it has to say. Could be something along the lines of

[Wed Jul 13 08:14:25 2005] [error] [client 123.234.231.213] (13)Permission denied: file permissions deny server access: /path/to/my/index.html