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]
Posts: 524
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
Posts: 16
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.
Posts: 524
I have never seen NetPBM return a range of status numbers before. Are you using a Microsoft based machine or Linux?
Posts: 16
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?
Posts: 524
Are you using a Microsoft based machine or Linux?
Posts: 16
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
Posts: 16
I moved netpbm out of cgi-bin and now the diagnostics is giving me only two status numbers- 132 and 139....
Posts: 524
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
Posts: 3473
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?
Posts: 524
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
Posts: 16
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;
so I have no idea what that means.
Thanks, guys for helping me out, by the way.
Posts: 3473
Put gallery back into in secure mode, and look at setup/phpinfo.php.
That should tell you what operating system is on your server.
Posts: 524
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
Posts: 13451
joan, i am sure you ment Configure mode?
Posts: 3473
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.
Posts: 16
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?
Posts: 524
jhead is not required
Posts: 3473
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?
Posts: 13451
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
Posts: 16
yeah what he said! LOL
Netcraft is new to me too, learning something new every day...
Posts: 3473
and your binaries?
Posts: 16
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?
Posts: 3473
This is like extracting teeth . . . . what was the filename of the tar/gz version of netpbm that you downloaded?
Posts: 16
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.
Posts: 4
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
Posts: 8194
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 ;)
Posts: 4
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...
Posts: 8194
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?
Posts: 4
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.
Posts: 4
Ok well I dunno what happened but I tried it again and it decided to start working. thanks for the help...