ModPerl::PerlRun - Run unaltered CGI scripts under mod_perl
# httpd.conf PerlModule ModPerl::PerlRun Alias /perl-run/ /home/httpd/perl/ <Location /perl-run> SetHandler perl-script PerlResponseHandler ModPerl::PerlRun PerlOptions +ParseHeaders Options +ExecCGI </Location>
META: document that for now we dont chdir() into the scripts dir, because it affects the whole process under threads. ModPerl::PerlRunPrefork should be used by those who run only under prefork MPM.
When running under the ModPerl::PerlRun handler BEGIN blocks behave as follows:
See also BEGIN blocks in mod_perl handlers.
o BEGIN blocks defined in scripts running under the ModPerl::PerlRun handler are executed on each and every request. o BEGIN blocks defined in modules loaded from scripts running under ModPerl::PerlRun (and which werent already loaded prior to the request) are executed on each and every request only if those modules declare no package. If a package is declared BEGIN blocks will be run only the first time each module is loaded, since those modules dont get reloaded on subsequent requests.
Same as normal mod_perl handlers.
Same as ModPerl::Registry.
ModPerl::RegistryCooker and ModPerl::Registry.
|perl v5.8.8||docs::api::ModPerl::PerlRun (3)||2007-11-12|