in reply to Module updates require webserver restart?

You haven't given enough details to be sure, but it sounds like you're running under mod_perl. mod_perl makes a persistent Perl interpreter per child httpd process and things get loaded once (more or less) at child start time. Then again that's why you use it (in production you bypass all that startup overhead after the first request).

There are things like Apache::StatINC (but that's for mod_perl 1; I can't recall what the mp2 one is called) for making changes visible immediately at the cost of a few more system calls each request; that may be what you're interested in. Alternately if you're writing a CGI that's eventually going to run under Apache::Registry (or whatever the mp2 analogue is), configure things to run it as a real run-and-exit CGi during development and testing.

  • Comment on Re: Module updates require webserver restart?

Replies are listed 'Best First'.
Re^2: Module updates require webserver restart?
by Calm (Acolyte) on May 02, 2007 at 16:40 UTC
    I'm just running xampp (for Windows ver 1.6.0a) out of the box, which apparently means I'm running mod_perl. I didn't ask it to run mod_perl and I'm not sure how to turn it off (for dev only). Unfortunately, I know very little about mod_perl but I do know there are books and websites to help people like me who lack knowledge. I'll see if I can find some resources on the subject, as it appears I'm going to need to know something about it.

    Here is an error I was getting that alerted me to my mod_perl usage:
    Wed May 02 10:12:43 2007 error Undefined subroutine &ModPerl::ROOT::ModPerl::Registry::C_3a_Apps_xampp_htdocs_planning_projselect_2epl::login_new called at C:/Apps/xampp/htdocs/planning/projselect.pl line 51.\n

      You can either:

      a_ turn mod_perl off
      b_ configure mod_perl to use Apache::Reload

      there are 2 versions of modperl -- 1.3x and 2.0x -- they correspond to the apache 1.x and 2.x versions respectively.

      the mod_perl website is at: perl.apache.org