mod_perl logo perl icon
previous page: ModPerl::MM -- A "subclass" of ExtUtils::MakeMaker for mod_perl 2.0page up: mod_perl 2.0 APInext page: ModPerl::PerlRunPrefork - Run unaltered CGI scripts under mod_perl

ModPerl::PerlRun - Run unaltered CGI scripts under mod_perl






Writing Apache Modules with Perl and C

Writing Apache Modules with Perl and C

By Lincoln Stein, Doug MacEachern
Embedding Perl in HTML with Mason

Embedding Perl in HTML with Mason

By Dave Rolsky, Ken Williams
mod_perl2 User's Guide

mod_perl2 User's Guide

By Stas Bekman, Jim Brandt
Practical mod_perl

Practical mod_perl

By Stas Bekman, Eric Cholet
The mod_perl Developer's Cookbook

The mod_perl Developer's Cookbook

By Geoffrey Young, Paul Lindner, Randy Kobes
mod_perl Pocket Reference

mod_perl Pocket Reference

By Andrew Ford


Table of 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>


TOP

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.



TOP

Special Blocks



TOP

BEGIN Blocks

When running under the ModPerl::PerlRun handler BEGIN blocks behave as follows:

See also BEGIN blocks in mod_perl handlers.



TOP

CHECK and INIT Blocks

Same as normal mod_perl handlers.



TOP

END Blocks

Same as ModPerl::Registry.



TOP

Authors

Doug MacEachern

Stas Bekman



TOP

See Also

ModPerl::RegistryCooker and ModPerl::Registry.






TOP
previous page: ModPerl::MM -- A "subclass" of ExtUtils::MakeMaker for mod_perl 2.0page up: mod_perl 2.0 APInext page: ModPerl::PerlRunPrefork - Run unaltered CGI scripts under mod_perl