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. "ModPerl::PerlRun‐
22       Prefork" should be used by those who run only under prefork MPM.
23

Special Blocks

25       "BEGIN" Blocks
26
27       When running under the "ModPerl::PerlRun" handler "BEGIN" blocks behave
28       as follows:
29
30       ·   "BEGIN" blocks defined in scripts running under the "ModPerl::Perl‐
31           Run" 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 mod‐
36           ules 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
44       Same as normal mod_perl handlers.
45
46       "END" Blocks
47
48       Same as "ModPerl::Registry".
49

Authors

51       Doug MacEachern
52
53       Stas Bekman
54

See Also

56       "ModPerl::RegistryCooker" and "ModPerl::Registry".
57
58
59
60perl v5.8.8                       2006-11-19    docs::api::ModPerl::PerlRun(3)
Impressum