Hi,

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)

Lionel.

----- Original Message ----- From: "Jens Helweg" <[EMAIL PROTECTED]>
To: <modperl@perl.apache.org>
Sent: Tuesday, June 19, 2007 1:34 PM
Subject: Howto develop with modperl 2 ? (Restart Apache all the time ?)


Hi everyone,

I have just started using modperl 2 on Windows. Apache is 2.2.4. Perl ist ActiveState Perl 5.8.8.

I have setup my first perl module an included everything into the apache configuration and up to now everything works fine.

But one thing that I really wonder is: I need to restart apache every time I make a change to my perl module. Is that the way one would develop using modperl ? (I don't think so).

Running the perl module on command line neither works because then it complains about the modperl/apache stuff that isn't available.

How would one professionally develop code using modperl ?

Regards,
Jens



Reply via email to