You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Octavian Rasnita <or...@fcc.ro> on 2005/01/25 18:18:57 UTC
recompiling the modules
Hi,
Is it possible to let modperl recompile the modules if they are modified?
I've seen that if I modify a perl module, Apache doesn't check to cee if the
module has been modified, so it keeps running the old code from memory.
Thank you.
Teddy
Re: recompiling the modules
Posted by Marcello <m....@spinsoft.it>.
Philippe M. Chiasson ha scritto:
> Marcello wrote:
>
>> Octavian Rasnita ha scritto:
>>
>>> Hi,
>>>
>>> Is it possible to let modperl recompile the modules if they are
>>> modified?
>>> I've seen that if I modify a perl module, Apache doesn't check to cee
>>> if the
>>> module has been modified, so it keeps running the old code from memory.
>>
>>
>> In your httpd.conf or under <IfModule mod_perl.c> section in
>> commonhttpd.conf:
>>
>> PerlModule Apache::StatINC
>> PerlInitHandler Apache::StatINC
>
>
> $> perldoc Apache::Reload
> or
> http://perl.apache.org/docs/2.0/api/Apache/Reload.html
>
> Apache::StatINC is _seriously_ deprecated, use Apache::Reload instead.
> http://perl.apache.org/docs/2.0/user/porting/compat.html#C_Apache__StatINC_
Thanks the information.
Marcello
>
>
> --------------------------------------------------------------------------------
>
> Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID :
> 88C3A5A5
> http://gozer.ectoplasm.org/ F9BF E0C2 480E 7680 1AE5 3631 CB32 A107
> 88C3A5A5
Re: recompiling the modules
Posted by "Philippe M. Chiasson" <go...@ectoplasm.org>.
Marcello wrote:
> Octavian Rasnita ha scritto:
>
>>Hi,
>>
>>Is it possible to let modperl recompile the modules if they are modified?
>>I've seen that if I modify a perl module, Apache doesn't check to cee if the
>>module has been modified, so it keeps running the old code from memory.
>
> In your httpd.conf or under <IfModule mod_perl.c> section in
> commonhttpd.conf:
>
> PerlModule Apache::StatINC
> PerlInitHandler Apache::StatINC
$> perldoc Apache::Reload
or
http://perl.apache.org/docs/2.0/api/Apache/Reload.html
Apache::StatINC is _seriously_ deprecated, use Apache::Reload instead.
http://perl.apache.org/docs/2.0/user/porting/compat.html#C_Apache__StatINC_
--------------------------------------------------------------------------------
Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5
http://gozer.ectoplasm.org/ F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5
Re: recompiling the modules
Posted by Marcello <m....@spinsoft.it>.
Octavian Rasnita ha scritto:
> Hi,
>
> Is it possible to let modperl recompile the modules if they are modified?
> I've seen that if I modify a perl module, Apache doesn't check to cee if the
> module has been modified, so it keeps running the old code from memory.
>
> Thank you.
>
> Teddy
>
>
In your httpd.conf or under <IfModule mod_perl.c> section in
commonhttpd.conf:
PerlModule Apache::StatINC
PerlInitHandler Apache::StatINC
Marcello
Re: recompiling the modules
Posted by Torsten Foertsch <to...@gmx.net>.
On Tuesday 25 January 2005 18:18, Octavian Rasnita wrote:
> Is it possible to let modperl recompile the modules if they are modified?
> I've seen that if I modify a perl module, Apache doesn't check to cee if
> the module has been modified, so it keeps running the old code from memory.
perldoc Apache::Reload
Torsten