installation (yet again)

rkratky

Joined: 2002-10-19
Posts: 4
Posted: Sat, 2002-10-19 15:24

hi,
call me ignorant but after reading of all the documentation, faq's and several pages of discussions i'm still at a loss when it comes to actually installing the thing.
-- the problem:
i can't get the config wizard to see my netpbm and jhead

here's what it says:

--------------------------------------------
... snip ...
$gallery->app->pnmDir = "http://www.rob.cz/netpbm";
Error: I can't find NetPBM at the location you provided.
... snip ...
$gallery->app->highlight_size = "150";
// optional zipinfo missing
// optional unzip missing
Error: use_exif: http://www.rob.cz/bin/jhead must be a valid file (not a directory)!
$gallery->app->movieThumbnail = "http://www.rob.cz/gallery/images/movie.thumb.jpg";
Error: Directory http://www.rob.cz/gallery/albums does not exist. Please create it.
Error: Directory http://www.rob.cz/tmp does not exist. Please create it.
... snip ...
-------------------------------------------

what am i missing? all those directories are there, the permissions are correct, i tried both absolute (in the example) and relative paths...

anybody can tell me what i'm doing wrong?
thanks
robert

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3473
Posted: Sat, 2002-10-19 16:14

Hi Robert.
You're really close! :smile:

Looking at your snippet below, you haven't specified directories, but URLs instead. Go back and do the Configuration Wizard again, but this time specify real directory paths, not URLs for your NetPBM and Jhead, and other paths.

So instead of
http://www.rob.cz/bin/jhead
you should put
/path/to/my/home/dir/bin/jhead

And similarly for NetPBM and anywhere else the Configuration Wizard asks for a directory path and not a URL. If you don't know the path to your home directory, you can always try typing pwd to print the full path to your current directory. :wink:

Hope that works!!
-Beckett (

)

 
rkratky

Joined: 2002-10-19
Posts: 4
Posted: Sat, 2002-10-19 17:11

thanks for the advice... (i mean it, really) yet this is what i get:

... doing as told:
230 User rob.cz logged in. > Remote system type is UNIX. > Using binary mode to transfer files.
ftp> cd www/netpbm
250 CWD command successful.
ftp> pwd
257 "/www/netpbm" is current directory.

and then comes this:
----------------------------------------
...snip...
$gallery->app->pnmDir = "/www/netpbm";
Error: I can't find NetPBM at the location you provided..... snip
...snip
$gallery->app->highlight_size = "150";
// optional zipinfo missing
// optional unzip missing
Error: use_exif: /www/bin/jhead must be a valid file (not a directory)!
$gallery->app->movieThumbnail = "/www/gallery/images/movie.thumb.jpg";
Error: Directory /www/gallery/albums does not exist. Please create it.
Error: Directory /www/tmp does not exist. Please create it.
...snip
----------------------------------

what is it about? i admit i'm probably thick but i just can't get it...
robert

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3473
Posted: Sat, 2002-10-19 18:05

Hi again.

It's highly unlikely that /www/netpbm is the true path. It's just the path relative to your ftp's home directory... FTP won't give you the real path :sad:. If you don't have telnet/shell access to run a "pwd" command on, then I suggest you contact your ISP or look on their documentation for what your full path to your home directory is. It will probably look _something_ like:
/home/users/username/
So then your path would probably be something like
/home/users/username/www/netpbm

But what it is is highly dependent on your ISP... so you'll need to go to them to find out. But that'll fix the problem when you get the real path. I guarantee!

Oh... I just thought of a way to find it.
Write a file called test.php and put it in your home directory.
Put "<?php echo $_SERVER["DOCUMENT_ROOT"]; ?>" in the file.
Now point your browser to http://www.mysite.com/test.php... on my computer it gives the full path to the home directory. Hope that works!

-Beckett

 
rkratky

Joined: 2002-10-19
Posts: 4
Posted: Sat, 2002-10-19 19:58

ok, it worked - finally. thanks a lot. i was trying something like that before (phpinfo.php script gave me the idea) but i must've mistyped it and when it didn't work abandoned the idea... well, it was the way to go.

however, i'm facing another problem...
again, here's what it says:
it complains about 'SAFE MODE restriction in effect' and that a script (uid 1447) is not able to access gallery/albums/.users which is 'owned by uid 48 in gallery/platform/fs_unix.php'

consequentially, 'gallery/.users/userdb.dat.lock' doesn't exist and it results in my being unable to login.

any suggestions?
yours grateful,
robert

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3473
Posted: Sat, 2002-10-19 20:52

See FAQ Section 2.3

If PHP is running in Safe Mode, you can first try and (kindly) ask your ISP to turn it off. Perhaps convince them that lots of other ISPs run with it off. Gallery won't run properly with Safe Mode enabled, since it prevents it from executing programs or writing to files, etc.

However, you can still run Gallery in Safe Mode, but you need to run PHP as a CGI module, and won't be able to use apache's built-in version.
More on this in <!-- BBCode Start --><A HREF="http://gallery.menalto.com/modules.php?op=modload&name=GalleryDocs&file=index&page=gallery1-install.faq.b.php#gallery1-install.faq.b.3" TARGET="_blank">FAQ Section 2.3</A><!-- BBCode End -->

-Beckett (beck@beckettmw.com)

 
rkratky

Joined: 2002-10-19
Posts: 4
Posted: Sun, 2002-10-20 07:48

hmmm, i read the faq you suggested and it looks like there's nothing more to try -- the server refuses to read .htaccess files.

(and the safe mode won't be turned off, so they say...)

well, i tried.
thank you for your help though. were it not for you i might have reached this point a few days if not weeks from now.

robert

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3473
Posted: Sun, 2002-10-20 19:23

That's too bad... :sad:
Perhaps you should consider moving to a new ISP when your current contract runs out. See "<!-- BBCode Start --><A HREF="http://gallery.sourceforge.net/wiki.php?page=Web%20Hosting%20Referral%20Page" TARGET="_blank">Web Hosting Referrals</A><!-- BBCode End -->" on the Gallery page for some suggestions.

-Beckett (beck@beckettmw.com)