Jump to content

mod_perl

From Wikipedia, the free encyclopedia

mod_perl
Developer(s)Apache Software Foundation
Initial releaseMarch 25, 1996;28 years ago(1996-03-25)[1]
Stable release
2.0.13 / 21 October 2023;12 months ago(2023-10-21)[2]
Repository
PlatformPerl
TypePerl moduleforApache HTTP server
LicenseApache License 2.0
Websiteperl.apache.org

mod_perlis an optional module for theApache HTTP server.It embeds aPerlinterpreterinto 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 Perlscriptscan 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 siteSlashdot,is written using mod_perl.[3]Early versions ofPHPwere implemented in Perl using mod_perl.[4]

mod_perl can emulate aCommon 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 ApacheAPI,allowingprogrammersto write handlers for all phases in the Apache request cycle, manipulate Apache's internal tables and state mechanisms, share data between Apacheprocessesorthreads,alter or extend the Apacheconfiguration fileparser,and add Perl code to the configuration file itself, among other things.

See also

[edit]

References

[edit]
  1. ^"History".mod_perl website.Apache Software Foundation.15 February 2014.Retrieved8 November2022.
  2. ^"Download".mod_perl website.Apache Software Foundation.Retrieved20 November2023.
  3. ^"Slash installation".slashcode.com.Archived fromthe originalon 4 May 2015.
  4. ^"Paying Homage to Perl (PHP)".theperlreview.com.February 2003. Archived fromthe originalon 25 June 2013.
[edit]