Mod_perl

mod_perl

mod_perl

Apache HTTP Server module that integrates Perl


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.

Quick Facts Developer(s), Initial release ...

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

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


References

  1. "History". mod_perl website. Apache Software Foundation. 15 February 2014. Retrieved 8 November 2022.
  2. "Download". mod_perl website. Apache Software Foundation. Retrieved 20 November 2023.
  3. "Slash installation". slashcode.com. Archived from the original on 4 May 2015.
  4. "Paying Homage to Perl (PHP)". theperlreview.com. February 2003. Archived from the original on 25 June 2013.



Share this article:

This article uses material from the Wikipedia article Mod_perl, and is written by contributors. Text is available under a CC BY-SA 4.0 International License; additional terms may apply. Images, videos and audio are available under their respective licenses.