|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: Gallery/ImageMagick/NetPBM req'd files in chroot?
From: Daniel Polak (daniel
sys.nl)
Date: Sat Apr 02 2005 - 08:55:06 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Try this:
cp /usr/lib/libc.so.34.1 /var/www/usr/lib
cp /usr/lib/libm.so.2.0 /var/www/usr/lib
cp /usr/lib/libz.so.4.0 /var/www/usr/lib
cp /usr/local/lib/libjpeg.so.62.0 /var/www/usr/lib
cp /usr/local/lib/libpbm.so.1.0 /var/www/usr/lib
cp /usr/local/lib/libpgm.so.1.0 /var/www/usr/lib
cp /usr/local/lib/libpng.so.4.0 /var/www/usr/lib
cp /usr/local/lib/libpnm.so.1.0 /var/www/usr/lib
cp /usr/local/lib/libppm.so.1.0 /var/www/usr/lib
cp /usr/local/lib/libtiff.so.36.1 /var/www/usr/lib
Good luck!
Daniel
==== Original message from Nick Holmes at 2-4-2005 14:58
> Dear misc
,
>
> OK, first up I know that running "Gallery"
> (http://gallery.menalto.com/) in OpenBSD chroot'd Apache has come up
> several times - The dependencies of NetPBM and ImageMagick are needed.
> Many responses have been to run Apache non-chroot "-u" in rc.conf. I'd
> really rather not do this, so I've been thinking of ways to get it
> working properly under OpenBSD so that only the necessary files are
> copied into the chroot jail.
>
> Running a "pkg_info -L package-name" will give me a list of all the
> files installed for each of the dependencies, so I thought to grab the
> output of this and then copy the files across. My scripting skills
> aren't so hot, so I did some manual changes and threw together a
> script which did a "mkdir -p" on the directories it needed for the
> chroot (pre-pended /var/www) then copied the necessary files across
> one at a time. This was done for ImageMagick, jasper, jbigkit, netpbm
> etc. I also copied /bin/sh to /var/www/bin/sh and set correct
> permissions (needed for PHP functions).
>
> When installing Gallery through the setup, it is able to detect all
> the pre-req files (they are all green OK'd/detected). However, Gallery
> still doesn't work properly in the chroot. Everytime I try to upload
> files I get the "Unable to make thumbnail (0)" (status 134) error. I'm
> sure that I've missed some critical library in my copy operation, but
> I don't know which one(s)!
>
> This problem is covered on the gallery.menalto.com discussion groups,
> but nobody seems to have a definitive list of libraries/files which
> you need to copy into OpenBSD's chroot'd Apache environment to get
> everything working correctly.
>
> Maybe someone here has got this app working properly in a chroot
> environment? If so, would you please share the list of files needed to
> copy into /var/www/???
>
> My System Specs are:
> OpenBSD 3.6-RELEASE (SparcStation 20, Ross 180MHz, 128MB RAM, 18GB disk)
> - All errata patches to date have been applied.
> gallery-1.4.4-pl6.tar.gz
> NetPBM/ImageMagick etc pkg_add'd from 3.6-RELEASE packages (UK -
> ftp.plig.org)
>
> I've been banging my head against the wall with this one! =)
> Many thanks!
>
> Nick
> London, UK
> (I am subscribed to list, so no need to cc:, ta)
>
> _________________________________________________________________
> It's fast, it's easy and it's free. Get MSN Messenger today!
> http://www.msn.co.uk/messenger
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]