Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Perl Modules - Mod_Perl and CGI

by sundialsvc4 (Abbot)
on Apr 29, 2013 at 15:24 UTC ( #1031244=note: print w/ replies, xml ) Need Help??


in reply to Perl Modules - Mod_Perl and CGI

mod_perl embeds a Perl interpreter inside an Apache worker-process.   Therefore, if you change the Perl code, you must restart Apache.   Make very sure that the Perl code actually works, in the environment (PERL5LIB, etc...) created by the Apache instance.   It sounds like it’s got some basic syntax errors ...


Comment on Re: Perl Modules - Mod_Perl and CGI
Reaped: Re^2: Perl Modules - Mod_Perl and CGI
by NodeReaper (Curate) on Apr 29, 2013 at 15:41 UTC
      What he is saying seems true and is the case when I'm most frustrated. Restarting Apache fixes the problem. What I'm hoping to discover is a solution to turn of the caching on the development machine, so that I can quickly make changes without having to restart or "refresh constantly" to un-cache an error.

        What I'm hoping to discover is a solution to turn of the caching on the development machine, so that I can quickly make changes without having to restart or "refresh constantly" to un-cache an error.

        Um, if you don't want a persistent process, with all the benefits it brings, run it as CGI :/

        OTOH, how tightly is your module/app coupled with Apache? you can always develop with plackup/Plack::Middleware::Refresh / Plack::Loader::Shotgun for faster reloading :)

        What he is saying seems true and is the case when I'm most frustrated.

        Sorry , but it isn't. He said if you change the Perl code, you must restart Apache. which is obviously false (hello Apache2::Reload) because like Apache2::Reload like reloads stuff

Re^2: Perl Modules - Mod_Perl and CGI
by Trihedralguy (Pilgrim) on Apr 30, 2013 at 04:00 UTC
    I found this with your words mentioned: http://www.openswartz.com/2009/09/22/how-not-to-restart-mod_perl-servers/

    I wish there was a proper solution.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1031244]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2014-09-20 20:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (163 votes), past polls