You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Rob Bloodgood <ro...@empire2.com> on 2001/04/04 19:38:58 UTC
RE: Apache::AuthCookieDBI forgets its config [SOLVED]
> OK, more examination reveals that:
> At the time this BEGIN block is running, this call:
> my @keyfile_vars = grep {
> $_ =~ /DBI_SecretKeyFile$/
> } keys %{ Apache->server->dir_config() };
>
> is returning EMPTY.
>
> Meaning it's evaling too early to see the dir_config??????? Or what?
- PerlModule Apache::AuthCookieDBI
> PerlSetVar AdminPath /admin
> PerlSetVar AdminLoginScript /scripts/adminlogin.pl
>
> # These must be set
> PerlSetVar AdminDBI_DSN "dbi:Oracle:STATS"
> PerlSetVar AdminDBI_SecretKeyFile /etc/httpd/conf/admin.secret.key
+ PerlModule Apache::AuthCookieDBI
My ealier message reveals the solution: move the line
PerlModule Apache::AuthCookieDBI
to *AFTER* the line(s)
PerlSetVar BlahBlahDBI_SecretKeyFile /path/to/keyfile
It now works perfectly!
Thx for putting up w/ me bouncing my problem-solving off the list...
hopefully somebody will save the day & a half I just spent on this.
L8r,
Rob
#/usr/bin/perl -w
use Disclaimer qw/:standard/;