perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Perrin Harkins <>
Subject Re: Why people not using mod_perl
Date Thu, 17 Sep 2009 03:13:02 GMT
On Wed, Sep 16, 2009 at 10:15 PM, Jenn G. <> wrote:
> but nobody run Java or PHP as CGI.
> the only thing I heard is somebody run php as fastcgi under lighttpd.

Some cheap ISPs run PHP as CGI for security reasons.  My point is, it
doesn't make any difference if Perl is slow when you run it as CGI,
since you don't need to run it as CGI any more than you need to run
Java that way.

> mod_perl loads and compiles perl scripts only once, but CGI loads and
> compiles them every time for each request.
> Am I right?

That's right.  In both cases the perl code is compiled, but with
mod_perl the perl interpreter is kept in memory so it doesn't need to
recompile it each time.

- Perrin

View raw message