GIS Mapping - Cheat Codes - Indian television channel news - Personal Loans - Loans

PDA

View Full Version : Access forbidden! Error 403


jacka
Apr 28th 2008, 10:47 am
Strange problem.
When I put a folder (containing php files) in my plesk website it comes up with the following error when I try to access it:

Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.

Error 403


However if I take them out of folder and place it in the root of the directory (httpdocs) it behaves properly.

It seems that I need to give permission, somehow, to access folders deep inside my root directory, but how?

By the way, I have checked the permission file and it has permission to read and execute.

Thanks for looking into this.

jacka
Jun 3rd 2008, 9:44 am
Hi
Surely some one must have some ideas!!!
Please help.

xlcho
Jun 3rd 2008, 9:52 am
What's the OS? Did you check the folder permissions too, ot just the file's?

jacka
Jun 3rd 2008, 10:07 am
Hi
both folder and file have 766 permission, which is ok.
The os is:Apache/2.0.55 (Ubuntu) mod_python/3.1.4 Python/2.4.3 PHP/4.4.2-1build1 mod_ssl/2.0.55 OpenSSL/0.9.8a mod_perl/2.0.2 Perl/v5.8.7.
Thx

xlcho
Jun 3rd 2008, 10:14 am
Hmm, who's the owner of the directory and files? Maybe that's what is wrong, though it should be the same as on your root directory. Check it anyways, cause i've had problems with this. If the owner is different this could be the reason you cannot access the files trough the web server.

jacka
Jun 3rd 2008, 10:17 am
Hi xlcho

What do you mean "who is owner of the directory?"
It is VPS and the documents are stored in httpdocs.

xlcho
Jun 3rd 2008, 10:33 am
Hi,
i mean the OS's user who owns the directory and the files in it. Depending on how you create them, the owner could be different than the owner of the web server, therefor you cannot access it trough apache. This might make it a bit more clear - http:// en.wikipedia.org/wiki/Chown

jacka
Jun 3rd 2008, 10:40 am
Hi

Thanks for that , I will read it later.
Just to let you know that it is a contact form, downloaded from here:
http://www.freecontactform.com/
thx

xlcho
Jun 3rd 2008, 10:55 am
Sorry but no more ideas... You should really check this, though. I believe your control panel shold be displaying this information somewhere in the upload section.