You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Richard Curtis <ri...@crosswired.co.uk> on 2002/12/17 13:30:20 UTC

[mp2] Having to reload apache when perl modules change

Hi again group.
   A quick question (but this might not be the right place).
If this is the wrong place to ask, please point me in the direction of the
right place.

I have a web app written using mod_perl2 and apache::ASP.
When I change the code in a perl module, I have to restart apache to make
the changes appear to all children.
Is there a way of avoiding this - maybe with an apache directive - so that
all modules are re-read by all children without a restart ?

Thanks
Richard


Re: [mp2] Having to reload apache when perl modules change

Posted by Josh Chamas <jo...@chamas.com>.
Geoffrey Young wrote:
> 
> 
> Richard Curtis wrote:
> 
>> Hi again group.
>>    A quick question (but this might not be the right place).
>> If this is the wrong place to ask, please point me in the direction of 
>> the
>> right place.
> 
> 
> you're in the right place, don't worry :)
> 
>>
>> I have a web app written using mod_perl2 and apache::ASP.
>> When I change the code in a perl module, I have to restart apache to make
>> the changes appear to all children.
>> Is there a way of avoiding this - maybe with an apache directive - so 
>> that
>> all modules are re-read by all children without a restart ?
> 

Also note the native Apache::ASP configs StatINC and StatINCMatch
work too.  These can be good as they handle reloading ASP
compiled packages smoothly without undefining ASP related symbols.

Note that these settings should only be used in development
and for reloading code in production a full stop/start should
be done.

Regards,

Josh
________________________________________________________________
Josh Chamas, Founder                   phone:925-552-0128
Chamas Enterprises Inc.                http://www.chamas.com
NodeWorks Link Checking                http://www.nodeworks.com


Re: [mp2] Having to reload apache when perl modules change

Posted by Josh Chamas <jo...@chamas.com>.
Geoffrey Young wrote:
> 
> 
> Richard Curtis wrote:
> 
>> Hi again group.
>>    A quick question (but this might not be the right place).
>> If this is the wrong place to ask, please point me in the direction of 
>> the
>> right place.
> 
> 
> you're in the right place, don't worry :)
> 
>>
>> I have a web app written using mod_perl2 and apache::ASP.
>> When I change the code in a perl module, I have to restart apache to make
>> the changes appear to all children.
>> Is there a way of avoiding this - maybe with an apache directive - so 
>> that
>> all modules are re-read by all children without a restart ?
> 

Also note the native Apache::ASP configs StatINC and StatINCMatch
work too.  These can be good as they handle reloading ASP
compiled packages smoothly without undefining ASP related symbols.

Note that these settings should only be used in development
and for reloading code in production a full stop/start should
be done.

Regards,

Josh
________________________________________________________________
Josh Chamas, Founder                   phone:925-552-0128
Chamas Enterprises Inc.                http://www.chamas.com
NodeWorks Link Checking                http://www.nodeworks.com


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Re: [mp2] Having to reload apache when perl modules change

Posted by Geoffrey Young <ge...@modperlcookbook.org>.

Richard Curtis wrote:
> Hi again group.
>    A quick question (but this might not be the right place).
> If this is the wrong place to ask, please point me in the direction of the
> right place.

you're in the right place, don't worry :)

> 
> I have a web app written using mod_perl2 and apache::ASP.
> When I change the code in a perl module, I have to restart apache to make
> the changes appear to all children.
> Is there a way of avoiding this - maybe with an apache directive - so that
> all modules are re-read by all children without a restart ?

Apache::Reload ships standard with mod_perl 2.0 and is pretty much the same as with 1.0. 
See that manpage or docs/api/mod_perl-2.0/Apache/Reload.pod for more details.

HTH

--Geoff