Pemissions Issues


Joined: 2014-04-13
Posts: 2
Posted: Sun, 2014-05-11 11:03

I have two installations of Gallery 2 (versions.dat says it is 2.2.3)
PHP 5.2
Linux Hosting through GoDaddy

Permissions keep getting reset on albums preventing Gallery from working and bringing me to an "upgrade" link when I try to log into gallery. The sites are using Drupal to access the galleries. I have set everything in these folders to wide open permissions via ftp but something is setting them back to 0705 periodically.

One of the sites shows the lower level galleries but when I drill in it says "Embedded Gallery 2 is not available"

The other site ( says ...

Fatal error: require() [function.require]: Failed opening required '/<MY ROOT ALIAS BLAH BLAH>/html/public_gallery/gallery2/embed.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/<##>/<#######>/html/public_gallery/gallery2/gmjett/embed.php on line 3

suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2014-05-12 03:19

you want all directories in public_html/gallery2 to be 0755 and all files to be 0644
this can be achieved with the following shell command:

find . -type f -print0 | xargs -0 chmod 0644
find . -type d -print0 | xargs -0 chmod 0755

your g2data on the other hand.... you want all files and folders to be 777

Gallery does not run some mysterious command to switch you back to 0705.
That mystery is better answered by your host.

All New jQuery Minislideshow for G2/G3


Joined: 2014-04-13
Posts: 2
Posted: Tue, 2014-05-13 11:04

Thanks. I will try and set the permissions as you say and then I'll report back. I can't issue the find command with my shared hosting (no command line access) but I should be able to use FireFTP as I have been doing. I wasn't sure what the files outside of the g2data folder needed to be.

My host swears they aren't doing anything to change files back to 0705. They say to seek the answer with the developers of Gallery.