On Wed, Oct 07, 2009 at 07:59:42AM -0500, Chris Bennett wrote: > After seeing Jason Dixon's suggestion to use mod_perl to solve chroot > problem, I am going to setup a test server on my laptop while traveling. > With no mod_cgi scripts at all, what, if anything would I need to move > inside chroot? > > I'm going on trip today, so I will read any replies tomorrow at earliest.
Depends what you're doing. I believe if you're just using core Perl, you don't need to bring anything else in. I have a big mod_perl app that runs in chroot and accesses PostgreSQL and uses a number of CPAN modules: I have libc, libz, libm, libpq, libcom_err, libssl, libcrypto, libjpeg, libpng, libiconv, and libgd libraries copied in. I also just bring in all my Perl libraries with local NFS mounts: ---- /etc/exports ---- /usr/local/libdata/perl5 -ro 127.0.0.1 /usr/libdata/perl5 -ro 127.0.0.1 ---- /etc/fstab ---- 127.0.0.1:/usr/local/libdata/perl5 /var/www/usr/local/libdata/perl5 nfs ro 0 0 127.0.0.1:/usr/libdata/perl5 /var/www/usr/libdata/perl5 nfs ro 0 0 I suggest you list out what your dependencies are for your app and run ldd(1) on the binaries and libraries you identify. That'll tell you what you need. -Dan -- "Burnished gallows set with red Caress the fevered, empty mind Of man who hangs bloodied and blind To reach for wisdom, not for bread." -- Deoridhe Grimsdaughter

