Netpbm and jhead problems

aviceda

Joined: 2002-10-10
Posts: 54
Posted: Thu, 2002-10-10 10:31

Hi Bharat,
Sorry to bring you back to this old chestnut, but I have searched the FAQ's and archives and am still baffled.
Downloaded Gallery 1.3.1 today, I'm running Win 2K and uploaded files OK via ftp, ran init.php and everything seemed fine except netpbm and jhead problems. I'm not very versed in Unix so I've probably put the netpbm and jhead files in the wrong directory. Unfortunately I'm not sure how to access usr/bin and am not sure which files to put into this directory and do I unzip them before ftp'ing them over or put them as .tar files?
Here is a copy of Page 4 of Gallery Set-Up, hope it helps.
Any help most gratefully received!
Tom

/* Version */
$gallery->app->config_version = 30;

/* Features */
$gallery->app->feature["zip"] = 0; // (missing zipinfo -- it's optional, missing unzip -- it's optional)
$gallery->app->feature["rewrite"] = 1;
$gallery->app->feature["mirror"] = 0; // (missing mirrorSites -- it's optional)

/* Constants */
$gallery->app->galleryTitle = "Public Gallery";
$gallery->app->pnmDir = "/home/aviceda/public_html/netpbm.tar";
Error: I can't find NetPBM at the location you provided. Gallery prefers NetPBM version 9.9 and up. You can install just the binaries Gallery needs from Gallery on SourceForge or, you can compile and install the entire NetPBM package from NetPBM on SourceForge. Note: You can install the binaries from the Gallery site even if you don't have root access on your box!
$gallery->app->highlight_size = "200";
// optional zipinfo missing
// optional unzip missing
Error: use_exif: /home/aviceda/public_html/jhead.tar must be a valid file (not a directory)!
$gallery->app->movieThumbnail = "/home/aviceda/public_html/publicgallery/images/movie.thumb.jpg";
$gallery->app->albumDir = "/home/aviceda/public_html/albums";
$gallery->app->tmpDir = "/home/aviceda/tmp";
$gallery->app->photoAlbumURL = "http://www.aviceda.org/publicgallery";
$gallery->app->albumDirURL = "http://www.aviceda.org/albums";
// optional mirrorSites missing
$gallery->app->showAlbumTree = "no";
$gallery->app->cacheExif = "no";
$gallery->app->jpegImageQuality = "95";
$gallery->app->timeLimit = "30";
$gallery->app->debug = "no";
$gallery->app->use_flock = "yes";
$gallery->app->expectedExecStatus = "0";
$gallery->app->sessionVar = "gallery_session";
$gallery->app->userDir = "/home/aviceda/public_html/albums/.users";
$gallery->app->pnmtojpeg = "ppmtojpeg";

/* Defaults */
$gallery->app->default["bordercolor"] = "black";
$gallery->app->default["border"] = "1";
$gallery->app->default["font"] = "arial";
$gallery->app->default["cols"] = "3";
$gallery->app->default["rows"] = "3";
$gallery->app->default["thumb_size"] = "150";
$gallery->app->default["resize_size"] = "640";
$gallery->app->default["fit_to_window"] = "no";
$gallery->app->default["use_fullOnly"] = "no";
$gallery->app->default["print_photos"] = "shutterfly";
$gallery->app->default["returnto"] = "yes";
$gallery->app->default["showOwners"] = "no";
$gallery->app->default["albumsPerPage"] = "5";
$gallery->app->default["showSearchEngine"] = "yes";
$gallery->app->default["useOriginalFileNames"] = "yes";
$gallery->app->default["display_clicks"] = "yes";
$gallery->app->default["public_comments"] = "yes";

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Thu, 2002-10-10 12:58

yes, you must untar the files. You cannot specify a .tar file and expect gallery to find out what you want...Make sure you write down exactly where they are (the directory name)...

 
aviceda

Joined: 2002-10-10
Posts: 54
Posted: Thu, 2002-10-10 20:09

Hi Andrew,
Thanks for that, managed to get that up and running, in fact got to the gallery page but when I try and login get an incorrect 'password or login' (....is this a "Session cookies" problem?) unfortunately I'm away from my PC at work at the moment!
Any advice welcome!
Tom
:smile:

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Thu, 2002-10-10 20:10

Cool...have fun!

Hmm, the login/password thing. Make sure you're logging in as 'admin' and the password you specified at configuration. Gallery does use session cookies. Make sure your browser accepts them. If it does make sure that in php.ini, session.use_cookies = 1, and session.save_path = /tmp (or some other web-server writable place)--both of these are default unless you changed them.

 
aviceda

Joined: 2002-10-10
Posts: 54
Posted: Fri, 2002-10-11 07:52

Hi Andrew,
Got home and immediately checked u/n and password as you specified earler, this worked and I got into the Album upload page, unfortunately when I tried to upload a jpg, the program told it was an "Invalid image". I went back and checked diagnostics and found that I had used incorrect Netpbm files and downloaded the correct ones.
(I also found that although there's no red text on page 4 of the gallery set-up there is a problem with jhead on step 1) Earlier when went thru the configuration file pages I ended up back at the initial configuration page and despite following instructions to CHMOD .htaccess and config.php and setup, it would not continue on to album.php.
Now whenever I try to CHMOD files they seem to automatically revert back to 644.

Couple of hours later, I have no access whatever to the setup files, get 403 Forbidden messages if I even try to load diagnostic.php
Help! :sad:

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Fri, 2002-10-11 12:18

you need to chmod the following files:

config.php - 644 - that's owner: read & write, group & other: read
.htaccess - 644 (the same)
setup (this is a directory): 0000 - that's owner & group & other: nothing (no checks in any of the boxes in the FTP client)

Make sure that each file is chmoded this way...if you have to get back into the setup page, you need to chmod

config.php - 666 -that's owner&group&other - read + write
.htacccess - same as config.php
setup (directory) - 755 - that's owner: read+write+execute, group & other: read+execute

Once you finish the setup, make sure the files are chmoded like the first set I gave you...

 
aviceda

Joined: 2002-10-10
Posts: 54
Posted: Fri, 2002-10-11 20:06

Hi again Andrew,
CHMOD config.php, .htaccess to 666, setup to 755 and still getting 403 Forbidden,
think I'll go and lie down again.
Tom
:cry:

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Fri, 2002-10-11 21:59

The setup folder needs to be chmoded 755

 
aviceda

Joined: 2002-10-10
Posts: 54
Posted: Sat, 2002-10-12 03:16

Hi Andrew,
Started from scratch and it appears to work, have a look at http://www.aviceda.org/avigallery/albums.php
Can concentrate on making it look pretty now....thanks for your help!
Tom

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Sat, 2002-10-12 17:48

Welcome! Anytime