All:

I want to specify things like MySQL login info, names of tables
containing
user login information.  I'd like to do it by putting it all into a
class 
variable at server startup, using my startup.pl:

my $Account_Interface = $Exchange::MyAccount->init;

Then inside Exchange::MyAccount::init, 
we have code like this:

$config{DBI_DSN} = Apache->server->dir_config('DBI_DSN');

and then of course we have the corresponding 

PerlSetVar DBI_DSN "DBI:mysql:exchange_db"

What I'm running into is that dir_config always returns undef, no matter
what:

 - PerlSetVars inside or outside the <Location> tag
 - dir_config called at server startup or child startup

I've used dir_config before, but only at the PerlHandler level.

So what I'd like to know is: is there any way of picking up
configuration
info from the httpd-perl.conf at server startup?  Picking all this stuff 
up with the first request isn't always the most desirable way of doing
it,
especially if processing the directives takes any appreciable amount of 
time.  Putting config info into other files just spreads out what should 
be in a single place.

Thanks,

Christopher Everett

Reply via email to