>> Did you "use Apache2::RequestUtil ();"? For a use case refer to
>> Apache2::Translation on CPAN.

I did, but I was also trying to call the method statically. Forgive me if
this is stupid, it's been many years since I've used Perl.

What I'm actually doing is creating a proof of concept configuration for a
mass hosting platform using suexec, chroot and PHP fastcgi. Thanks to your
help, it is now working. Currently, I'm using PerlTransHandler to map the
host name of the request to a filesystem path, which I'm storing in an
environment variable. Then, in PerlMapToStorageHandler I am writing the
FCGIWrapper configuration directive.

The only "problem" at the moment is that I'm currently depending on
mod_userdir to do the suexec bit, which means I have to place the PHP
wrapper script inside the document root. This isn't technically a problem,
but I'd rather place it somewhere else in the chroot jail where an
uneducated user would be less likely to modify or delete it. I've tried
setting User and Group myself instead, but I'm having trouble understanding
Apache's security model in this context. I've just ordered a copy of the
O'Reilly book on the subject, but any pointers you could give me would be
much appreciated :)

Regards

Marcus


Reply via email to