You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Jie Gao <J....@isu.usyd.edu.au> on 2003/02/26 22:05:43 UTC

Invalid command 'PerlCleanupHandler'

Hi All,

On redhat 8 using mod_perl-1.99_05-3
====================================

I have the folloing in httpd.conf:

PerlCleanupHandler "sub { %ENV = () }"

in VirtualHost, and am getting:

Invalid command 'PerlCleanupHandler', perhaps mis-spelled or defined by a module not included in the
server configuration

Not a problem with mod_perl 1.

Any help is appreciated.





Jie



Re: Invalid command 'PerlCleanupHandler'

Posted by Stas Bekman <st...@stason.org>.
Jie Gao wrote:
> Hi All,
> 
> On redhat 8 using mod_perl-1.99_05-3
> ====================================
> 
> I have the folloing in httpd.conf:
> 
> PerlCleanupHandler "sub { %ENV = () }"
> 
> in VirtualHost, and am getting:
> 
> Invalid command 'PerlCleanupHandler', perhaps mis-spelled or defined by a module not included in the
> server configuration
> 
> Not a problem with mod_perl 1.
> 
> Any help is appreciated.

The documentation is pretty much trying to be up-to-date with the modperl cvs. 
So if you use an old mod_perl release, it may not work as described. Update 
your mod_perl to the current cvs and it'll work. See:
http://perl.apache.org/docs/2.0/user/install/install.html#Installing_mod_perl_from_Source
You need the 'CVS Bleeding-Edge Version' section

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com