'403 Forbidden' on /gallery/setup/index.php after upgrading to 1.5.4

mash909

Joined: 2006-10-15
Posts: 3
Posted: Sun, 2006-10-15 19:45

The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version: 1.5.4
Apache version: 1.3.33
PHP version (don't just say PHP 4, please): 4.3.10-16
Graphics Toolkit: don't know
Operating system: Linux 2.6.8-3-k7-smp #1 SMP
Web browser/version (if applicable): Firefox 1.5.07 / IE 6.0.2800.1106

I've just upgraded from 1.5 to 1.5.4 by following the instructions at http://codex.gallery2.org/index.php/Gallery1:Upgrading

All seemed to work fine, but when I try to complete the setup by accessing http://www.<mysite>.org/gallery/setup/index.php

I get a 403 forbidden error:

Forbidden
You don't have permission to access /gallery/setup/index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I have checked that all files/folders named in the instructions are chmod'ed to 0777. I have even tried giving full access all files under the gallery install directory.

I have also tried giving full access to my Albums directory, however some files I can't change the permissions for because they are owned by another user (could be the Apache process). There was a cleanup.php script available from the FAQ - I tried running this but this did not alter permissions for certain files.
I have also run configure.sh

Any help or suggestions appreciated - in the meantime I have restored my backup.

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Tue, 2006-10-17 07:02

Well,

this sounds like a pure permission issue.
Your setup folder needs to be chmoded 777 and the files inside at least 666.

Jens
--
Last Gallery v1 Developer and v1 translation manager.

 
mash909

Joined: 2006-10-15
Posts: 3
Posted: Tue, 2006-10-17 19:42

Hi - thanks for the response.
I've tried opening up the entire gallery (all files and folders) to full rwx permissions - but still get the same error.
The only place I can't change permissions are for some files in the Albums folder (nb this is not under my gallery folder) because they are owned by another user and group. If the setup process needs to modify these files then I guess this is the source of the problem. Any thoughts?

 
mash909

Joined: 2006-10-15
Posts: 3
Posted: Mon, 2006-11-20 19:19

This has finally been solved. The problem stems from the fact that the Gallery app is deployed on a shared Linux hosting environment, and the hosts have an additional application which prevents potentially dodgy activity on the server - so in this case didn't like the fact that an application was trying to write to a file - and therefore stopped it.

The hosts removed the rule which was preventing Gallery from writing to file, and it now works.

Mash