On Sun Sep 30 12:19:14 2007, UNRTST wrote:
Show quoted text> I'm not sure why that is. I've tested under apache 1.3, with and
> without mod_perl, and using SetVar + PerlSetVar worked for me.
Hmm... maybe that has to do with it; I'm using Apache-2.2.2 w/MP2.
Show quoted text> For PerlSetVar to work, the pages being served will need to be
> served by mod_perl, and those will need set prior to the modules
> being included. So, for example, if you have a startup.pl that
> loads common modules, that will need included after the
> PerlSetVar. If that's the case, the following can be used to keep
> the config in your apache config (if you want):
Yup, aware of that; the ENV vars all have to get set -before- the
modules load, as they en/disable themselves at load time
via "import()" (similarly to how CAP::DevPopup en/disables itself).
Show quoted text> Setting the env vars in a BEGIN{} block in your setup.pl or CAP
> module is fine too. I just prefer to keep debug flags outside my
> code, so I can use the same code across various webservers/vhosts,
> and enable things from the server level. TMTOWTDI
I've been doing my CAP::DevPopup stuff iny "startup.pl" file, inside
of a block that checks to see if I'm running on a test/devel box or
whether its the production environment. If its a test/devel box then
I enable CAP::DevPopup (and now this module too), otherwise they're
disabled. Has worked well for me as I can just deploy the same
codebase out to multiple boxes and it "does the right thing" depending
on what machine its installed on.