httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Stahr" <da...@prairiesys.com>
Subject RE: [users@httpd] mod perl in Apache 2
Date Fri, 11 Oct 2002 14:38:54 GMT
In layman's terms, it makes it so the web server doesn't have to
"compile" the script each time it's accessed.

*NOT* under mod_perl, each time you access a perl script, it has to be
interpretted, then executed.

Under mod_perl, the web server only needs to interpret it once, and
future accesses of the same script are much faster.

If you're using mostly small, simple (<500 lines) scripts, or your
scripts aren't used very much, you probably are better off not using
mod_perl, because there are programatic issues involved, and it does add
some overhead to your httpd processes.

Also, you have to specifically tell apache (with httpd.conf) that you
want to use mod_perl in certain directories or files on your server.  If
you haven't done that in the past, you've never even utilized mod_perl.

Read up on the documentation at http://perl.apache.org -- it's quite
good and explains all this in much more detail.

Dave

> -----Original Message-----
> From: 
> users-return-15335-daves=prairiesys.com@httpd.apache.org 
> [mailto:users-return-15335-daves=prairiesys.com@httpd.apache.o
> rg] On Behalf Of Werner Schalk
> Sent: Thursday, October 10, 2002 4:25 PM
> To: users@httpd.apache.org
> Subject: [users@httpd] mod perl in Apache 2
> 
> 
> Hello,
> 
> what does mod_perl exactly do?
> I mean I am already able to run
> perl scripts as cgi's by using
> a shebang line like "#!/usr/bin/perl",
> so what are the advantages of mod_perl?
> 
> Bye and thanks,
> Werner.
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP 
> Server Project. See 
> <URL:http://httpd.apache.org/userslist.html> for more info. 
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message