Chuck Goehring wrote:
> To all,
> 
>  
> 
> Having trouble configuring Apache 2.0 with mod_perl.  Don't know if I 
> need compat or not. 
> 
>  
> 
> My Apache 1.x/mod_perl 1.24 startup starts like this:
> 
>  
> 
> use strict;
> use Apache ();
> use Apache::Registry;
> use Apache::DBI();
> use CGI qw(-compile :cgi);
> use Carp();
> 
>  
> 
> That didn't fly on Apache 2.0.35/mod_perl 1.99 (snapshot).  Trying to 
> get something equivalent working.  

If you want to use the old registry, the above missing:

use Apache2 ();
use Apache::compat;

> Below doesn't work with or without 
> Apache::compat. 
> 
>  
> 
> use strict;
> use Apache2 ();
> use Apache::compat;
> use ModPerl::Registry;    #  use Apache::Registry;
> 
> #use Apache2::DBI();      # use Apache::DBI();
> use DBI();
> use CGI qw(-compile :cgi);

looks good to me. You don't show your <Location> config. Does it include

   SetHandler perl-script
   PerlResponseHandler ModPerl::Registry

??

> Apache error log id like so (last line): 
>
> [Mon Apr 22 18:00:58 2002] [error] failed to resolve handler 
> `Apache::Registry'

Apache::Registry? Above you said you are using ModPerl::Registry. Check 
your config. I suggest to grep for Apache::Registry.

Apache::DBI (for 2.0 wasn't ported yet, and available for those seeking 
interesting challenges)

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

Reply via email to