loading Apache2::ServerRec

2008-01-10 Thread Carl Johnstone
Using the debian-stable-provided version of mod_perl, I've got an app that's 
working fine however the way it was configured meant we were causing an 
early load of perl during the configuration phase of apache. I fixed the 
apache config so that mod_perl was loaded post-config then started getting 
the error:


Can't locate object method "server_name" via package "Apache2::ServerRec"


Simply adding an empty  block into the config makes it go away 
again, but obviously triggers the early load of perl.


So is this behaviour a bug or something that I've missed in the 
documentation?


(I've fixed my problem for now by loading the module in the startup.pl)

Carl



Re: loading Apache2::ServerRec

2008-01-10 Thread Perrin Harkins
On Jan 10, 2008 10:33 AM, Carl Johnstone <[EMAIL PROTECTED]> wrote:
> Using the debian-stable-provided version of mod_perl, I've got an app that's
> working fine however the way it was configured meant we were causing an
> early load of perl during the configuration phase of apache.

Just curious -- why are you trying to avoid loading perl during this phase?

- Perrin


Re: loading Apache2::ServerRec

2008-01-14 Thread Carl Johnstone
Using the debian-stable-provided version of mod_perl, I've got an app 
that's

working fine however the way it was configured meant we were causing an
early load of perl during the configuration phase of apache.


Just curious -- why are you trying to avoid loading perl during this 
phase?


Faster restarts in our development environment.

perl gets loaded twice, once to test the config then again to actually 
start. From my observations apache even does this if you run apachectl stop!


We don't need the additional test in config as any problems will appear in 
the error log and the devs can check there.


Carl