Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: More than mod_cgi less than mod_perl.

by cees (Curate)
on Jun 07, 2005 at 12:53 UTC ( #464275=note: print w/replies, xml ) Need Help??

in reply to More than mod_cgi less than mod_perl.

What you are looking for is PersistentPerl. This will keep the perl interperter in memory, and keep your perl code compiled. It provides almost all of the speed benefits that mod_perl offers without needing to be integrated directly into Apache.

There is also a mod_persistentperl module for Apache (and Apache2) to avoid the need to fork a process for each request (which is how CGI works). This means the only extra overhead over mod_perl is a socket connection to the PersistentPerl daemon for your script.

Other benefits of PersistentPerl are that you can run multiple scripts under the same interpreter, and you can use the suexec features of Apache and run your code under a different username (unlike mod_perl).

  • Comment on Re: More than mod_cgi less than mod_perl.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2018-12-12 04:46 GMT
Find Nodes?
    Voting Booth?
    How many stories does it take before you've heard them all?

    Results (57 votes). Check out past polls.

    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!