|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Gallery/ImageMagick/NetPBM req'd files in chroot?
From: Nick Holmes (nick_g_holmes
hotmail.com)
Date: Sat Apr 02 2005 - 06:58:59 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 ]