Gallery

software development

#1

Has anyone installed Gallery to set up photo album pages?

Right now I feel like a clueless newbie and would appreciate an experienced mentor to help me out. I’m not sure if the problem I am having is because of the software, because of some issue here with DH, or because I’m an idiot.

Info on this freeware package can be found at http://gallery.menalto.com/

If you have successfully used Gallery please contact me - offline if you want to save bandwidth and not bore everyone else…

Thanks,

Glenn


#2

Glenn, What exactly is the problem you’re having? Or do you know? LOL I’m teasing :wink: I’m not that experienced but I have read every post about getting Gallery running on DH (i gave up and later figured out what i did wrong) so maybe if I know the problem I can point you to the help. Try doing a search on ‘gallery’ here and see if you come up with any help. If not then let us know what the problem is and I’m sure someone could help. There are 2 things you need to do to get Gallery running and that is to run it was php-cgi and you also need to install the newer version of netpbm which you can get at the Gallery site.

Christy


#3

There are a bunch of users who are running Gallery here.

I don’t personally recommend it. It’s a serious PITA to get working.

Gallery wasn’t really written with a large shared-hosting environment in mind. If you’re running your own webserver it’s a piece of cake, but here it’s not so great.

Any PHP script that manipulates files should be run as a PHP-CGI.

If I were you, I’d look around for a perl solution that uses ImageMagick.

nate.


#4

I got it to work with a small amount of effort. I had to install the NetPBM libraries (easy to do) and then add one or two lines to the configuation to overcome the shared environment issues. There is a great FAQ on the Gallery webpage (http://gallery.menalto.com). I’ve forgotten all of the really useful answers that I used – there were three or four that basically had the exact error messages and allowed me to alter the config files to make it work.

Good luck – I really like using it – makes sharing family pictures a lot easier.


#5

I’ve been having a few problems configuring Gallery too. In my case I can’t upload images.

When I ran the setup wizard all seemed OK apart from the exec() return code in the advanced section. This was blank and the instructions said that it would work out the correct value, but this didn’t work so I tried manually entering things like -1 and 127 and it let me save this config. What value are other people using for this return code?

When I try an upload running in debug mode I get a warning about exec() being disabled on line 32 of fs_unix.php. I also get the word “none” under Results: and “Status: (expected -1)” and “Error: Invalid Image myimage.jpg!”.

In addition I checked the album where the image should have been uploaded to and there’s no image there. If I run the NetPBM binaries in a shell with a manually upload image I don’t get any errors.

Any advice on successful configurartions gratefully received. Thanks,

Andy.


#6

I had so many difficulties trying to get Gallery up and running I eventually got sufficiently discouraged and gave up- but after finding so many people attesting to being able to use it successfully, I would greatly appreciate any help anyone could offer. Specifically, my first error message is:

“Warning: exec() has been disabled for security reasons in /home/.cloris/elis/elisabethepps.com/gallery/platform/fs_unix.php on line 32”

Beyond that, I also encounter:

“Warning: Unable to create ‘/home/.cloris/elis/elisabethepps.com/gallery/config.php’: Permission denied in /home/.cloris/elis/elisabethepps.com/gallery/setup/write.inc on line 10 Unable to write to /home/.cloris/elis/elisabethepps.com/gallery/config.php”

Any ideas? Thanks…


#7

OK. This is a bit confusing so I would appreciate if someone can help. I had already installed Gallery and got almost everything working before I found this post. Everything works except the upload.

I added the AddType php-cgi .php line to my .htaccess file but there are over 50 scripts in the program. I first tried running the scripts as is but I get the error below when I run the upload script.

Do I then have to rename all the scripts .pcgi?
Do I have to go into the database and change all the referenced links so each script knows the extension is now .pcgi instead of .php? Is it important to put the AddType php-cgi .php line at the beginning of the .htaccess file? Middle? Bottom? Do I have to add this line “As-is”? Are there any parameters I need to know?

Here is the error I am currently receiving with the php-cgi .php line:

Processing status…

  • Adding COOLGUY.gif
    Warning: Unable to create ‘/home/mydomain.com/albums/album01/COOLGUY.gif’: Permission denied in /home/mydomain.com/gallery/platform/fs_unix.php on line 24

Warning: getimagesize: Unable to open ‘/home/mydomain.com/albums/album01/COOLGUY.gif’ for reading. in /home/mydomainpath.com/gallery/util.php on line 473

Please advise. Thanks!


#8

The following is the exact contents of the .htaccess file in my gallery directory, including a probably unnecessary blank line at the beginning. I manually added the last line to get everything to work. Gallery created the rest of the file at the end of the install.


Options +FollowSymLinks

RewriteEngine On
RewriteBase /gallery/
RewriteRule ^([^.?/]+)/([0-9]+)$ /gallery/view_photo.php?set_albumName=$1&index=$2 [QSA]
RewriteRule ^([^.?/]+)/([A-Za-z_0-9-]+)$ /gallery/view_photo.php?set_albumName=$1&id=$2 [QSA]
RewriteRule ^([^.?/]+)/$ /gallery/$1 [R]
RewriteRule ^([^.?/]+)$ /gallery/view_album.php?set_albumName=$1 [QSA]

AddType php-cgi .php


I didn’t have to rename any of the scripts. My gallery directory is full of .php files, and everything I have tried to do with the program so far (upload photos, add comments, view comments, move photo, etc.) seems to be working fine.

I definitely did not have to change anything manually in the database.