mod_perl

From Wikipedia, the free encyclopedia
Revision as of 16:53, 6 January 2025 by imported>Brandon (Undid revision 1139882665 by GreatMarkO (talk))
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Short description

Template:Use dmy dates Script error: No such module "Infobox".Template:Template otherScript error: No such module "Check for unknown parameters".Template:Main other mod_perl is an optional module for the Apache HTTP server. It embeds a Perl interpreter into the Apache server. In addition to allowing Apache modules to be written in the Perl programming language, it allows the Apache web server to be dynamically configured by Perl programs. However, its most common use is so that dynamic content produced by Perl scripts can be served in response to incoming requests, without the significant overhead of re-launching the Perl interpreter for each request.

Slash, which runs the web site Slashdot, is written using mod_perl.[1] Early versions of PHP were implemented in Perl using mod_perl.[2]

mod_perl can emulate a Common Gateway Interface (CGI) environment, so that existing Perl CGI scripts can benefit from the performance boost without having to be re-written.

Unlike CGI (and most other web application environments), mod_perl provides complete access to the Apache API, allowing programmers to write handlers for all phases in the Apache request cycle, manipulate Apache's internal tables and state mechanisms, share data between Apache processes or threads, alter or extend the Apache configuration file parser, and add Perl code to the configuration file itself, among other things.

See also

Script error: No such module "Portal".

References

Template:Reflist

External links

Script error: No such module "Navbox". Template:Web interfaces

Template:Authority control


Template:Asbox

  1. Script error: No such module "citation/CS1".
  2. Script error: No such module "citation/CS1".