Gallery 2.3 post install 500 internal server error

tibbs

Joined: 2009-09-01
Posts: 2
Posted: Tue, 2009-09-01 14:33

Hi,
I've just installed Gallery 2.3 and I'm getting a 500 internal server error when I try to access the site. The details of the error message are:

PHP Warning: rename(/home/munsterc/public_html/mcfgallery/g2data/cache/module/httpauth/0/0/0.inc) [<a href='function.rename'>function.rename</a>]: failed to open stream: Permission denied in /home/munsterc/public_html/mcfgallery/modules/core/classes/GalleryPlatform.class on line 450

Can anyone help please?

Thanks!


Gallery version (not just "2"): 2.3
PHP version (e.g. 5.1.6): 5.2.10
PHPInfo Link (see FAQ):
Webserver (e.g. Apache 1.3.33): 2.2.13 (Unix)
Database (e.g. MySql 5.0.32): 5.0.81-community
Activated toolkits (e.g. NetPbm, GD):
Operating system (e.g. Linux): Linux
Browser (e.g. Firefox 2.0): Ie8

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-09-01 19:50

Check the permissions on G2data:

FAQ: How can I fix the filesystem permissions of the Gallery storage folder?

If that doesn't work post more info, including a link to phpinfo:
FAQ: What information is required when I ask for help in the forums?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
tibbs

Joined: 2009-09-01
Posts: 2
Posted: Thu, 2009-09-03 16:10

Hi I tried to change the permissions on the g2data folder. It only worked when I propogated the 777 permissions to all files and subfolders under g2data. Is that the correct permissions to apply or was it just supposed to be on the g2data folder and not the subfolders & files?

Thanks!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2009-09-03 16:31

That may be how you have to do it on your system. In short, the permissions need to be set to the user the web server runs as has the ability to change all files and directories under g2data.

Whether that means:

777 (everyone can read and write to those files) or
755 (only the owner of the files can change them and all others can read them) or
750 (only the owner or the files can change them and group can read them and the rest of the server can't) or
700 (only the owner of the files can change them and nobody else can even read them)

is up to you and your setup.

You may need to contact your host to see what is best for your environment.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here