Thanks Linonel, Jonathan.
I have added this to my configuration and now get the error message:

failed to resolve handler `Apache2:Reload':

I haven't had the chance to look at this any closer. I will do this tomorrow, though. I don't want to overstrain your help - but do you have an idea ?

Jens

Jonathan Vanasco wrote:

On Jun 19, 2007, at 10:59 AM, Lionel MARTIN wrote:

You can put that in your Apache conf file:

PerlModule Apache2::Reload
PerlInitHandler Apache2::Reload

This way, every time you alter one of your Apache modules, it gets reloaded.

This incurs a small performance hit (the server has to fstat the related files every time a request is run, to know if any module has been updated on disk), but that's definitely a good choice when developing (no need to restart your server)


Just to add:

    this can screw up class inheritance
        given
            b isa a
            sub a::one
            sub b::one
        issue:
if you delete b::one, you'll get an error under apache::reload. you'll need to restart the server

    also

some modules, like rose::db::object, do some very agressive optimizations and setup that have to do with package namesapce, and are only run at begin. if you alter their subs/vars/constants, you'll need to restart as well.

Apache2::Reload is the way to go.. but there are situations like the above to watch out for.

I'm sure there are other situations out there too. those are just the ones i deal with daily.



// Jonathan Vanasco

| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|   CEO/Founder SyndiClick Networks
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|     Founder/CTO/CVO
|      FindMeOn.com - The cure for Multiple Web Personality Disorder
|      Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|      RoadSound.com - Tools For Bands, Stuff For Fans
|      Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -




Reply via email to