GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  MODPERL::PERLRUN (3)

.ds Aq ’

NAME

ModPerl::PerlRun - Run unaltered CGI scripts under mod_perl

CONTENTS

Synopsis



  # 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>



Description

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.

Special Blocks

CWBEGIN Blocks

When 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 mod_perl handlers.

CWCHECK and CWINIT Blocks

Same as normal mod_perl handlers.

CWEND Blocks

Same as ModPerl::Registry.

Authors

Doug MacEachern

Stas Bekman

See Also

ModPerl::RegistryCooker and ModPerl::Registry.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 WORK::MOD_PERL-2.0.9::DOCS::API::MODPERL::PERLRUN (3) 2015-06-18

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.