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.
/Alexander
>
> I'm going on trip today, so I will read any replies tomorrow at earliest.
>
> Thanks,
> Chris Bennett