=head1 NAME
Apache::PerlRun - Run unaltered CGI scripts under mod_perl
=head1 Synopsis
#in httpd.conf
Alias /cgi-perl/ /perl/apache/scripts/
PerlModule Apache::PerlRun
SetHandler perl-script
PerlHandler Apache::PerlRun
Options +ExecCGI
#optional
PerlSendHeader On
...
=head1 Description
This module's C emulates the CGI environment, allowing
programmers to write scripts that run under CGI or mod_perl without
change. Unlike C, the C handler
does not cache the script inside of a subroutine. Scripts will be
"compiled" every request. After the script has run, it's namespace is
flushed of all variables and subroutines.
The C handler is much faster than
C. However, C is much faster than
CGI as the fork is still avoided and scripts can use modules which
have been pre-loaded at server startup time. This module is meant for
"Dirty" CGI Perl scripts which relied on the single request lifetime
of CGI and cannot run under C without cleanup.
=head1 Caveats
If your scripts still have problems running under the
C handler, the C option can be used so
that the process running the script will be shutdown. Add this to
your httpd.conf:
PerlSetVar PerlRunOnce On
...
=head1 See Also
perl, mod_perl, L
=head1 Maintainers
Maintainer is the person(s) you should contact with updates,
corrections and patches.
=over
=item * The L
=back
=head1 Authors
=over
=item * Doug MacEachern
=back
Only the major authors are listed above. For contributors see the
Changes file.
=cut