On Wed, Oct 07, 2009 at 10:28:19AM -0400, Jason Dixon wrote: > 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? > > In most cases, nothing. But I left my mind-reading beanie at home, so > there's a reasonable chance you might try to do something I hadn't > foreseen. In that case, you might need to put something in the chroot.
Let me clarify my answer a bit. There are times, which I experienced recently with Blogsum, that CPAN modules you use() will import other modules within a certain scope (i.e. within a function). In those cases you might have to ktrace httpd to figure out what it's trying to include so that you can add it to your startup.pl. LWP::UserAgent was a major PITA here. I worked around this by not using the module that depended on LWP and rewriting the functionality (Captcha) in my own code and using p5-HTTP-Lite. It was a little more work but it made the application much cleaner and easier to port. This is just meant as an example, YMMV. None of this affected what I had to copy into the chroot (nothing). Obviously, any non-module files that you open() will need to be in the chroot. -- Jason Dixon DixonGroup Consulting http://www.dixongroup.net/

