loading Apache2::ServerRec
am 10.01.2008 16:33:15 von 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
am 10.01.2008 18:51:45 von Perrin Harkins
On Jan 10, 2008 10:33 AM, Carl Johnstone 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
am 14.01.2008 11:47:30 von 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