On Wed, Oct 07, 2009 at 04:51:28PM +0200, Alexander Hall wrote:
> 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?
>
> Any dynamically loaded stuff that failed to load prior to the chroot'ing
> and forking. Normally I try to preload stuff using statements like
>
> BEGIN {
> my $nevermind = PackageName::doWhatIWantToDoLater();
> }
>
> to be executed prior to chrooting and forking. However it can be hard to
> pinpoint and trigger all variants, e.g. if you are using an imaging
> library, make sure you "preload" the parsers for all input file formats
> you will use, etc. etc.
>
> I do not know of a way to bypass the "wonderful" dynamic loading stuff.
> I would love to though.
ktrace. Welcome to hell. ;)
--
Jason Dixon
DixonGroup Consulting
http://www.dixongroup.net/