Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#179735 - 17/09/2003 15:33 Gallery v1.4-pl1 on FreeBSD 5.1 w/Apache 1.3.*
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
So I thought I'd give Gallery a try to host some of my pictures. Seemed painless enough... WRONG.. (for me anyways).

Story:
I have a small knowledge of linux but wanted to give FreeBSD a try. Since I have an old computer sitting here I thought I might as well. After about an hour I had FBSD 5.1 up and running with apache, etc. Everything was great untill I tried to get the modules for php to work with apache, but finally a couple headaches later I got that working as well. I installed the requirements, and then headed to install Gallery. Everything went smooth, but for some reason It will not let me upload pictures. I set it in debut mod but no error is generated. I'm pretty sure something is hanging whether it is ImageMagick or something else I don't know.

So now my question is, do any of you guys with experience in this area care to lend a helping hand? I remembered a while back that riocar.org uses Gallery so I thought I'd try here. If so let me know I can pm you with the login for the server... (and if you have so free time maybe check to see that I have everything for the most part correctly setup in the server).


Edited by mandiola (17/09/2003 15:47)

Top
#179736 - 17/09/2003 15:40 Re: Gallery v1.4-pl1 on FreeBSD 5.1 w/Apache 1.3.* [Re: mandiola]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31584
Loc: Seattle, WA
File permissions on the Gallery directory? Perhaps a needed .htaccess file?
_________________________
Tony Fabris

Top
#179737 - 17/09/2003 15:43 Re: Gallery v1.4-pl1 on FreeBSD 5.1 w/Apache 1.3.* [Re: tfabris]
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
I did check that. It was one of the few problems I fist found when started debugging.

-Greg

That was a very fast response by the way.

Top
#179738 - 17/09/2003 15:47 Re: Gallery v1.4-pl1 on FreeBSD 5.1 w/Apache 1.3.* [Re: mandiola]
Dignan
carpal tunnel

Registered: 08/03/2000
Posts: 12324
Loc: Sterling, VA
If you think it is indeed stalling on Imagemagik, then maybe you should try NetPBM. It's what I'm using on the four or five Galleries (Gallerys?) that I've set up.
_________________________
Matt

Top
#179739 - 17/09/2003 15:54 Re: Gallery v1.4-pl1 on FreeBSD 5.1 w/Apache 1.3.* [Re: Dignan]
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
I tried NetPBM as well. Nomatter which I use I get:
Processing status...
No images uploaded!

And I can only get this response by going to add photo(s). By just choosing add photo it just stays at the copy screen.

When I go to check_netpbm.php I found these errors, but have no idea how to fix them:

Checking /usr/local/netpbm/bin/giftopnm
Error! Expected status: 0, but actually received status 1.

Checking /usr/local/netpbm/bin/jpegtopnm
Error! Expected status: 0, but actually received status 1.

Checking /usr/local/netpbm/bin/pngtopnm
Error! Expected status: 0, but actually received status 1.

Checking /usr/local/netpbm/bin/pnmcut
Error! Expected status: 0, but actually received status 1.

Checking /usr/local/netpbm/bin/pnmfile
Error! Expected status: 0, but actually received status 1.

Checking /usr/local/netpbm/bin/pnmflip
Error! Expected status: 0, but actually received status 1.

Checking /usr/local/netpbm/bin/pnmrotate
Error! Expected status: 0, but actually received status 1.

Checking /usr/local/netpbm/bin/pnmscale
Error! Expected status: 0, but actually received status 1.

Checking /usr/local/netpbm/bin/pnmtopng
Error! Expected status: 0, but actually received status 1.

Checking /usr/local/netpbm/bin/ppmquant
Error! Expected status: 0, but actually received status 1.

Checking /usr/local/netpbm/bin/ppmtogif
Error! Expected status: 0, but actually received status 1.

Checking /usr/local/netpbm/bin/ppmtojpeg
Error! Expected status: 0, but actually received status 1.


-Greg

Top
#179740 - 17/09/2003 16:10 Re: Gallery v1.4-pl1 on FreeBSD 5.1 w/Apache 1.3.* [Re: mandiola]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Ah. Your transform programs aren't working. Can you run them by hand? I think I can fix this real quick if you wanna give me a login, as I encountered something really similar in my OpenBSD installation of Gallery.
_________________________
Bitt Faulk

Top
#179741 - 17/09/2003 16:15 Re: Gallery v1.4-pl1 on FreeBSD 5.1 w/Apache 1.3.* [Re: wfaulk]
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
PM sent with login information.

Thanks to everyone who helped (is helping) by the way.

-Greg

Top
#179742 - 17/09/2003 16:34 Re: Gallery v1.4-pl1 on FreeBSD 5.1 w/Apache 1.3.* [Re: mandiola]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Well, you sent me a login, but not where to login to (oops), but I'll bet I can tell you exactly what to fix anyway from here.

Run ``ldd pnmtojpeg''. You may have to type the full path to pnmtojpeg, like ``ldd /usr/local/netpbm/bin/pnmtojpeg''. My guess is that you'll see something like this:
-lnetpbm.10 => not found (0x0)
-ljpeg.62 => /usr/local/lib/libjpeg.so.62.0 (0x4003e000)
-lc.25 => /usr/lib/libc.so.25.2 (0x4005b000)
The problem is the ``not found'' part. This is going to be because libnetpnm is in a directory that your system doesn't know to look for shared objects in.

There are two ways to solve this. Which is most right depends on how you want your system configured. The latter will be the easiest.

First, you could recompile the netpbm programs so that the programs themselves know where to find libnetpbm. This is accomplished by passing ``-R /usr/local/netpbm/lib'' (or whatever the appropriate directory is) to the linker (ld). That can usually be accomplished by putting that in LDFLAGS during configuration/compile.

Second, you can tell the system where to find it. This is done by running ``ldconfig /usr/lib /usr/local/netpbm/lib''. Really, you should run ``ldconfig -r'', find out what directories it's already looking in, then run ldconfig with all those directories (separated by spaces, not colons) plus the new one. Then repeating that ldd command should get rid of the ``not found''. (And your uploads should start working.)

(Oh, you can also set LD_LIBRARY_PATH containing the correct directory in the environment of the netpbm programs, but it's probably too hard to figure out where to fit that in the php scripts or in the Apache config.)


Edited by wfaulk (17/09/2003 16:59)
_________________________
Bitt Faulk

Top
#179743 - 17/09/2003 18:07 Re: Gallery v1.4-pl1 on FreeBSD 5.1 w/Apache 1.3.* [Re: wfaulk]
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
Hrm.. tried that.. now i get :
/usr/local/netpbm/bin/pnmtojpeg:
libnetpbm.so.10 => not found (0x0)
libjpeg.so.9 => not found (0x0)
libc.so.5 => /usr/lib/libc.so.5 (0x2806f000)

I sent you the server info.

Thanks,
-Greg

Top
#179744 - 17/09/2003 18:08 Re: Gallery v1.4-pl1 on FreeBSD 5.1 w/Apache 1.3.* [Re: mandiola]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
How much webspace you got? If you're not that bothered then you can always compile it statically and avoid these problems.

If you're using FreeBSD on an Intel platform then go to the Gallery Download page and grab the NetPBM tools compiled for FreeBSD.


Edited by tman (17/09/2003 18:15)

Top
#179745 - 18/09/2003 08:08 Re: Gallery v1.4-pl1 on FreeBSD 5.1 w/Apache 1.3.* [Re: mandiola]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
I don't know what you did, but it wasn't what I suggested. I added /usr/local/netpbm/lib to your system's linker config and it works (I converted a jpeg to pnm to png and got proper results).

Try uploading now.
_________________________
Bitt Faulk

Top
#179746 - 18/09/2003 13:00 Re: Gallery v1.4-pl1 on FreeBSD 5.1 w/Apache 1.3.* [Re: wfaulk]
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
I did what you had said to do. I was having problem with 5.1 and my computer so I decided to try FBSD 4.8. Now everything is working fine, but thats why it didn't look like I had done what you had said... cause I hadn't had a chance to. Thanks for adding that though.

Seems like netpbm is working but I get this error now:

- Adding Greg as a little kid3.jpg
Executing:

/usr/local/netpbm/bin/jpegtopnm /usr/local/www/data/gallery/albums/album01/Greg_as_a_little_kid3.jpg | /usr/local/netpbm/bin/pnmscale -xysize 150 150 | /usr/local/netpbm/bin/ppmtojpeg --quality=95 > /usr/local/www/data/gallery/albums/album01/Greg_as_a_little_kid3.thumb.jpg

Results:
none

Error messages::
jpegtopnm: WRITING PPM FILE


Status: 0 (expected 0)IN UTIL ITEMCAPTUREDATE = 2003

Executing:

/usr/local/netpbm/bin/jpegtopnm /usr/local/www/data/gallery/albums/album01/Greg_as_a_little_kid3.jpg | /usr/local/netpbm/bin/pnmscale -xysize 200 200 | /usr/local/netpbm/bin/ppmtojpeg --quality=95 > /usr/local/www/data/gallery/albums/album01/Greg_as_a_little_kid3.highlight.jpg

Results:
none

Error messages::
jpegtopnm: WRITING PPM FILE


Status: 0 (expected 0)
- Resizing Greg as a little kid3.jpg
Executing:

/usr/local/netpbm/bin/jpegtopnm /usr/local/www/data/gallery/albums/album01/Greg_as_a_little_kid3.jpg | /usr/local/netpbm/bin/pnmscale -xysize 640 640 | /usr/local/netpbm/bin/ppmtojpeg --quality=95 > /usr/local/www/data/gallery/albums/album01/Greg_as_a_little_kid3.sized.jpg

Results:
none

Error messages::
jpegtopnm: WRITING PPM FILE


Status: 0 (expected 0)

Top
#179747 - 18/09/2003 13:26 Re: Gallery v1.4-pl1 on FreeBSD 5.1 w/Apache 1.3.* [Re: mandiola]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
Is /usr/local/www/data/gallery/albums/* writable by the web server?

Top
#179748 - 18/09/2003 14:40 Re: Gallery v1.4-pl1 on FreeBSD 5.1 w/Apache 1.3.* [Re: tman]
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
Ok got it working. I still have that error, but it works so ohh well. Thanks for helping me out guys.

temporarily up at http://www.evillinux.com/gallery/

-Greg

Top
#179749 - 18/09/2003 14:41 Re: Gallery v1.4-pl1 on FreeBSD 5.1 w/Apache 1.3.* [Re: mandiola]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
What did you do to fix it?

Top
#179750 - 18/09/2003 15:58 Re: Gallery v1.4-pl1 on FreeBSD 5.1 w/Apache 1.3.* [Re: tman]
mandiola
enthusiast

Registered: 26/12/2001
Posts: 386
Loc: Miami, FL - Sioux Falls, SD
Its a secret.

Actually it was a combination of things. The servername in apache wasn't set so it wouldn't load the directories without a "/", and finaly for the album path somehow it got saved without the .com.

Top