Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re: Storing data with mod_perl (are those handlers different) ?

by araqnid (Beadle)
on Apr 08, 2001 at 22:18 UTC ( #70862=note: print w/replies, xml ) Need Help??


in reply to Re: Storing data with mod_perl (are those handlers different) ?
in thread Storing data with mod_perl (are those handlers different) ?

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.

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.

So you could have a read_config.pl in /etc/apache (or wherever) that simply reads the config data and drops it into your handler's package. Then just PerlRequire read_config.pl and there you go!

The disadvantage with doing this, of course, is that the configuration file is not reread simply by doing apachectl graceful. Which may not be what you want.
  • Comment on Re: Re: Storing data with mod_perl (are those handlers different) ?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://70862]
help
Chatterbox?
choroba recommends Paludan BogCafe, if it still exists
[karlgoethebier]: choroba: This: https://www. paludan-cafe.dk ???
[karlgoethebier]: I get "You are using an outdated version of Internet Explorer. For a faster, safer browsing experienceUpgrade" Ouch! i got safari...
[karlgoethebier]: ...well, outdated

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2017-11-19 12:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (280 votes). Check out past polls.

    Notices?