On Fri, Sep 01, 2000 at 01:45:00PM -0300, Pires Claudio wrote:
>       I am newbie with mod_perl. I just installed and configured
> Apache::AuthCookie succesfully. Now I want to use Apache::AuthCookieDBI
> (Apache-AuthCookieDBI-1.18). I just installed all modules it needs and
> configured it as documentation say. But when I restart Apache I get this
> message:
> 
> Can't locate object method "dir_config" via package "Apache::Server" at
> /usr/lib/perl5/site_perl/5.005/Apache/AuthCookieDBI.pm line 
> 82.

> dir_config method exists. I checked... 

What version of mod_perl are you running?  Apache::AuthCookieDBI reads in
the secret key at server start time (so the keyfile can be root-owned and
only readable by root), but to find the configuration directive that sets
the keyfile for each authentication realm it scans all the PerlSetVars with
dir_config.  But dir_config is only available in mod_perl startup code as
of a certain version of mod_perl -- I'm not exactly sure which version
that is.  Try upgrading to the latest version of mod_perl and having another
try at it.

I should probably give a better error message for that case; a similar
problem exists with make test, since the module assumes that it's being
run under mod_perl... I will put both on my TODO list for the module.

I haven't sent out an announce message for this module (been on holiday);
I'll do that as soon as I get a chance.

-- 
Jacob Davies
[EMAIL PROTECTED]

Reply via email to