Page 1 of 1

[Solved] 403 Forbidden error during installation

Posted: Sun Jun 14, 2009 6:06 pm
by rocketeer
Hello all,

I've been stuck on this all day, and I was wondering if anyone can point me in the right direction...

I have been following the installation instructions, making a clean new install on a remote host.

I am able to start the installation, but after step 1 [Check your installation] where it allows you to check the integrity of the files, I get the following error.

403 Forbidden
You don't have permission to access /overthehill/install/index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.41 Server at www.[myhost] Port 80


I have tried every variation of changing the correct permissions to no avail. Any help / pointers would be appreciated  :)

CMSMS 1.5.4; PHP Version 4.4.8; Safe mode = off; No .htaccess files in this directory;

Re: 403 Forbidden error during installation

Posted: Sun Jun 14, 2009 6:34 pm
by viebig
You shoudl check the permissions/owners of that directory.. and paste the apache errorlog here(just the last few lines..)

Regards

G

Re: 403 Forbidden error during installation

Posted: Sun Jun 14, 2009 7:53 pm
by rocketeer
Strangely enough, your comment was very useful. After looking at the logs I noticed another set of server logs provided by my host which pointed out the problem. I have sorted this issue, but I am putting this up in case anyone else has this issue...

[Sun Jun 14 15:34:52 2009] [error] [client x.x.x.x] mod_security: Access denied with code 403. read_post_payload: Failed to create file "/home/user/tmp/20090614-153452-x.x.x.x-request_body-PArE5e" because 13("Permission denied") [severity "EMERGENCY"] [hostname "www.[myhost]"] [uri "/overthehill/install/index.php"] [unique_id "SjVQ3MwPCRXAAAZhZ3M"]

The installer tried to write to the ~/tmp directory in my homedir. I already had a tmp directory that I had set permissions to 700. This gave the above error.

To sort this out, just change the permissions of the tmp directory on your homedrive to something like 777.  :)

Re: [Solved] 403 Forbidden error during installation

Posted: Sun Jun 14, 2009 10:46 pm
by viebig
Great!

mod_security always cause strange things.. I hate it.