Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

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]
erix .oO( note to self: running 100 syncing database instances on a single machine is hard on the hard disks )
[1nickt]: Oh, no, sins of the flesh were *especially* verboten at that monastery!

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2017-12-13 13:23 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (367 votes). Check out past polls.