1docs::api::ModPerl::PerUlsReurn(C3o)ntributed Perl Documdeonctsa:t:iaopni::ModPerl::PerlRun(3)
2
3
4

NAME

6       ModPerl::PerlRun - Run unaltered CGI scripts under mod_perl
7

Synopsis

9         # httpd.conf
10         PerlModule ModPerl::PerlRun
11         Alias /perl-run/ /home/httpd/perl/
12         <Location /perl-run>
13             SetHandler perl-script
14             PerlResponseHandler ModPerl::PerlRun
15             PerlOptions +ParseHeaders
16             Options +ExecCGI
17         </Location>
18

Description

20       META: document that for now we don't chdir() into the script's dir,
21       because it affects the whole process under threads.
22       "ModPerl::PerlRunPrefork" should be used by those who run only under
23       prefork MPM.
24

Special Blocks

26   "BEGIN" Blocks
27       When running under the "ModPerl::PerlRun" handler "BEGIN" blocks behave
28       as follows:
29
30       •   "BEGIN" blocks defined in scripts running under the
31           "ModPerl::PerlRun" handler are executed on each and every request.
32
33       •   "BEGIN" blocks defined in modules loaded from scripts running under
34           "ModPerl::PerlRun" (and which weren't already loaded prior to the
35           request) are executed on each and every request only if those
36           modules declare no package. If a package is declared "BEGIN" blocks
37           will be run only the first time each module is loaded, since those
38           modules don't get reloaded on subsequent requests.
39
40       See also "BEGIN" blocks in mod_perl handlers.
41
42   "CHECK" and "INIT" Blocks
43       Same as normal mod_perl handlers.
44
45   "END" Blocks
46       Same as "ModPerl::Registry".
47

Authors

49       Doug MacEachern
50
51       Stas Bekman
52

See Also

54       "ModPerl::RegistryCooker" and "ModPerl::Registry".
55
56
57
58perl v5.32.1                      2021-01-26    docs::api::ModPerl::PerlRun(3)
Impressum