Redhat Linux netpbm installation problem

postie
postie's picture

Joined: 2003-02-26
Posts: 14
Posted: Tue, 2003-08-12 02:05

Hi,

I'm wondering if someone can help me out.

My webhost just moved me to a new server, and NetPBM no longer works. I'm on a Redhat Linux box, running with the details below. I only have FTP access, so I downloaded the redhat linux binary from the Gallery download page, expanded the .tar file inside the archive, and uploaded the various binaries onto the site. (i.e. ppmtojpeg etc.)

When I go to the configuration wizard and input the path, it says that it can't find the netpbm binaries. So I also downloaded the FreeBSD and Solaris ones just to see if it behaved differently, but no luck.

I then manually edited the config.php file to point to the path to see if I could get some details from the check_netpbm.php file and it returns the following error:

Checking /home/username/public_html/netpbm/giftopnm
Error! (Expected status: 0, but actually received status: 126) 

If I change the path to a non-existent path, it returns a different error explaining that the file does not exist, so I know it's the right path.

Does anyone have any idea what status 126 is? Even better, do you know how I can get gallery working again?

Thanks for your help!
postie
----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version: 1.3.4
Apache version: 1.3.28
PHP version: 4.3.2
Graphics Toolkit: NetPBM
Operating system: Linux
HTTP_SERVER_SOFTWARE Variable: Apache/1.3.28 (Unix) mod_log_bytes/1.2 mod_bwlimited/1.0 PHP/4.3.2 FrontPage/5.0.2.2634 mod_ssl/2.8.15 OpenSSL/0.9.6b[/code]

 
nick_rembis

Joined: 2003-01-20
Posts: 524
Posted: Tue, 2003-08-12 02:17

open your config.php in your gallery directory and edit this line

$gallery->app->expectedExecStatus = "0";

to this

$gallery->app->expectedExecStatus = "126";

hope that helps

 
Dragonmom

Joined: 2003-08-09
Posts: 16
Posted: Tue, 2003-08-12 06:26
nick_rembis wrote:
open your config.php in your gallery directory and edit this line

$gallery->app->expectedExecStatus = "0";

to this

$gallery->app->expectedExecStatus = "126";

hope that helps

Hey Nick, is that correct? I have the same error returned- for each and every one of the files in netpbm- with a different status number for each one, from 134 to 138.

 
nick_rembis

Joined: 2003-01-20
Posts: 524
Posted: Tue, 2003-08-12 06:37

I have never seen NetPBM return a range of status numbers before. Are you using a Microsoft based machine or Linux?

 
Dragonmom

Joined: 2003-08-09
Posts: 16
Posted: Tue, 2003-08-12 06:40

go figure- I get the wierd problem! *_* I have netpbm installed in the cgi-bin directory- I was thinking if I moved it out of there it might help?

 
nick_rembis

Joined: 2003-01-20
Posts: 524
Posted: Tue, 2003-08-12 06:42

Are you using a Microsoft based machine or Linux?

 
Dragonmom

Joined: 2003-08-09
Posts: 16
Posted: Tue, 2003-08-12 07:09

Linux, but- I'm damned if I can find any mention of red hat or any other flavor. This isn't my site, I'm setting it up for a friend...
the server is ixwebhosting.com

 
Dragonmom

Joined: 2003-08-09
Posts: 16
Posted: Tue, 2003-08-12 07:10

I moved netpbm out of cgi-bin and now the diagnostics is giving me only two status numbers- 132 and 139....

 
nick_rembis

Joined: 2003-01-20
Posts: 524
Posted: Tue, 2003-08-12 07:28

you may be able to go into your config.php file and change this line

$gallery->app->expectedExecStatus = "0";

to something like this

$gallery->app->expectedExecStatus = "[0-140]";

and see if that helps,not sure if it will or not?... :o

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Tue, 2003-08-12 07:55

Now you are just guessing, nick :-)

Dragonmom, exactly what O/S are you running (setup/config.php)? And exactly what netpbm binaries did you download?

 
nick_rembis

Joined: 2003-01-20
Posts: 524
Posted: Tue, 2003-08-12 08:02
joan wrote:
Now you are just guessing, nick :-)

Dragonmom, exactly what O/S are you running (setup/config.php)? And exactly what netpbm binaries did you download?

Yes that was just a guess, but will not hurt a constant to check for a range, and does not hurt the config.php file or the operation of gallery by doing that... :wink:

but Joan is right, we really need to know what OS your server is using and where and which netpbm binaries you downloaded

 
Dragonmom

Joined: 2003-08-09
Posts: 16
Posted: Thu, 2003-08-14 06:34

My server says they are red hat Linux but didn't have make and model for me. I downloaded netpbm1.1-gallery1.0-linux2.2-redhat6.2-intel.tgz 1
I reloaded netpbm, and now have a consistent status number for every page. So that part is okay now. but I still cant get a thumbnail. Debugger says;

Quote:

Processing status...
- Adding ablue.JPG

Executing:

/hsphere/local/home/richard/idealizingeye.com/cgi-bin/netpbm/jpegtopnm /hsphere/local/home/richard/idealizingeye.com/albums/album01/ablue.jpg | /hsphere/local/home/richard/idealizingeye.com/cgi-bin/netpbm/pnmscale -xysize 150 150 | /hsphere/local/home/richard/idealizingeye.com/cgi-bin/netpbm/ppmtojpeg --quality=95 > /hsphere/local/home/richard/idealizingeye.com/albums/album01/ablue.thumb.jpg
Results:

none
Error messages:

Status: 139 (expected 139)
Error: Unable to make thumbnail (0)!

so I have no idea what that means.
Thanks, guys for helping me out, by the way.

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Thu, 2003-08-14 07:01

Put gallery back into in secure mode, and look at setup/phpinfo.php.

That should tell you what operating system is on your server.

 
nick_rembis

Joined: 2003-01-20
Posts: 524
Posted: Thu, 2003-08-14 07:04

as long as it stays consistent you can edit the status code in the config.php like this

$gallery->app->expectedExecStatus = "139";

or re-run the gallery configuration and put 139 where it asked for status code

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Thu, 2003-08-14 07:44

joan, i am sure you ment Configure mode? :)

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Thu, 2003-08-14 09:03

Sorry, nick_rembis, but 139 is definitely an error code, so that fix won't work.

There is definitely something wrong with the binaries: maybe uploaded as ascii, missing binaries, wrong binaries. We have to find out what.

So the first thing to do is confirm what system you are on. Put Gallery into insecure/configuration mode, and have a look at what the system is.

After we can confirm that you are using the right binaries, we can check you have uploaded them correctly.

Then we can maybe look at your hosts configuration, to see if you are restricted in some way from executing binaries.

 
Dragonmom

Joined: 2003-08-09
Posts: 16
Posted: Fri, 2003-08-15 13:40

I have the staus codes okay now- here's my verbose.
[quote}
Executing:

/hsphere/local/home/richard/idealizingeye.com/cgi-bin/netpbm/jpegtopnm /hsphere/local/home/richard/idealizingeye.com/albums/album01/storm_on_the_horizon.jpg | /hsphere/local/home/richard/idealizingeye.com/cgi-bin/netpbm/pnmscale -xysize 150 150 | /hsphere/local/home/richard/idealizingeye.com/cgi-bin/netpbm/ppmtojpeg --quality=95 > /hsphere/local/home/richard/idealizingeye.com/albums/album01/storm_on_the_horizon.thumb.jpg
Results:

none
Error messages:

Status: 139 (expected 139)
Error: Unable to make thumbnail (0)!

by the way- I DO NOT have jhead installed. I am using the site for pictures of paintings. and my artist could care less about the tecnical data of the photos must I install it?

 
nick_rembis

Joined: 2003-01-20
Posts: 524
Posted: Fri, 2003-08-15 17:17

jhead is not required

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Sun, 2003-08-17 09:11

Dragonmom,

Have you done the steps above? Do you now know what OS precisely you are using, and can you assure us you have the right binaries for that system?

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Sun, 2003-08-17 09:24

From netcraft.com:

Linux Apache/1.3.27 (Unix) mod_ssl/2.8.11 OpenSSL/0.9.6b FrontPage/5.0.2.2510 PHP/4.3.0 mod_throttle/3.1.2 17-Aug-2003 69.49.239.113

 
Dragonmom

Joined: 2003-08-09
Posts: 16
Posted: Sun, 2003-08-17 14:40

yeah what he said! LOL

Quote:
The site www.idealizingeye.com is running Apache/1.3.27 (Unix) mod_ssl/2.8.11 OpenSSL/0.9.6b FrontPage/5.0.2.2510 PHP/4.3.0 mod_throttle/3.1.2 on Linux.

Netcraft is new to me too, learning something new every day...

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Sun, 2003-08-17 14:49

and your binaries?

 
Dragonmom

Joined: 2003-08-09
Posts: 16
Posted: Sun, 2003-08-17 14:54

well... I uploaded them with fetch- a mac ftp program. I loaded them in binary, but I wonder if they could have gotten garbled anyway?

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Sun, 2003-08-17 16:01

This is like extracting teeth . . . . what was the filename of the tar/gz version of netpbm that you downloaded?

 
Dragonmom

Joined: 2003-08-09
Posts: 16
Posted: Sun, 2003-08-17 20:27

ouch, stop pullling! *grin*
I used
netpbm1.1-gallery1.0-linux2.2-redhat6.2-intel.tgz

What tooth do you want to pullnext?
Seriously, thank you so much for your help.

 
DustyShadow321

Joined: 2003-08-17
Posts: 4
Posted: Sun, 2003-08-17 21:11

Hey guys,

I'm having similar problems. My server is also running Linux. When I run the config wizard, it says it can't find NetPBM. I've also tried installing ImageMagick and jhead and it can't find those either. Does this look like they have the server set so I can't execute binaries?

I just started trying to setup gallery today. Does the config wizard write to config.php only if there are no errors? I'm asking this cause when I run the check_netpbm.php after I've run the config wizard it's still looking in "/" for netpbm because the directory is blank...

any help appreciated...

thanks,
John

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Sun, 2003-08-17 21:15

Yes, the config wizard only writes config.php if there are no errors. Basically, the likely problems are 1) chmodded incorrectly (everything, including the directory must be 755) 2) the path is incorrect.

It's likely 2, no matter what you say about being sure it's correct ;)

 
DustyShadow321

Joined: 2003-08-17
Posts: 4
Posted: Sun, 2003-08-17 21:39

No, I'm sure I'm typing in the correct path. Something I'm wondering about though. In the permissions list (ie. rxwrxwrx...) what does "s" mean as in "drwxrwsr-x"?

thanks again...

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Sun, 2003-08-17 21:45

The 's' means the set guid bit is set. Basically, for directories, this means that any file created in that directory will be owned by the group that owns the directory. This shouldn't be messing anything up? What are the chmods for the actual files?

What is the path your are specifying? What's the URL to your Gallery?

 
DustyShadow321

Joined: 2003-08-17
Posts: 4
Posted: Sun, 2003-08-17 21:52

My gallery, or soon to be (hopefully), is at http://www.offlineplayerkill.com/gallery/

My files and directories are all set to 755. The path to the files is "/web/netpbm"
which is http://www.offlineplayerkill.com/netpbm

My next step is to reinstall it but I think it should be correct because the host did it for me when I asked them to turn PHP safe mode off.

 
DustyShadow321

Joined: 2003-08-17
Posts: 4
Posted: Mon, 2003-08-18 01:00

Ok well I dunno what happened but I tried it again and it decided to start working. thanks for the help...