NAME
ModPerl::PerlRun - Run unaltered CGI scripts under modperl
SSyynnooppssiiss# httpd.conf
PerlModule ModPerl::PerlRun
Alias /perl-run/ /home/httpd/perl/
SetHandler perl-script
PerlResponseHandler ModPerl::PerlRun
PerlOptions +ParseHeaders Options +ExecCGI DDeessccrriippttiioonn META: document that for now we don't chdir() into the script's dir, because it affects the whole process under threads."ModPerl::PerlRunPrefork" should be used by those who run only under
prefork MPM. SSppeecciiaall BBlloocckkss ""BBEEGGIINN"" BBlloocckkssWhen running under the "ModPerl::PerlRun" handler "BEGIN" blocks behave
as follows: +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 weren't 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 don't get reloaded on subsequent requests. See also "BEGIN" blocks in modperl handlers. ""CCHHEECCKK"" and "INIT" Blocks Same as normal modperl handlers. ""EENNDD"" BBlloocckkss Same as "ModPerl::Registry". AAuutthhoorrss Doug MacEachern Stas Bekman SSeeee AAllssoo "ModPerl::RegistryCooker" and "ModPerl::Registry".perl v5.a8p.a8chemodperl-101.1~2::mo2d00p5e-r1l0-22.00.2::docs::api::ModPerl::PerlRun(3)