note
araqnid
Actually, if you read the config file during the execution of a "PerlRequire" or "PerlModule" (or <Perl> ?) directive, then it will be stored in the parent process and hence *will* be shared amongst the child processes.
<p>
That's also your chance to do any setting up that you need to do as root, e.g. creating new directories and "chown"ing them.
<p>
So you could have a read_config.pl in <tt>/etc/apache</tt> (or wherever) that simply reads the config data and drops it into your handler's package. Then just <tt>PerlRequire read_config.pl</tt> and there you go!
</p>
The disadvantage with doing this, of course, is that the configuration file is not reread simply by doing <tt>apachectl graceful</tt>. Which may not be what you want.
70823
70853