![]() | |
Developer(s) | Apache Software Foundation |
---|---|
Initial release | March 25, 1996; 28 years ago (1996-03-25)[1] |
Stable release | |
Repository | |
Platform | Perl |
Type | Perl module forApache HTTP server |
License | Apache License 2.0 |
Website | perl |
mod_perl is an optional module for theApache HTTP server. It embeds aPerlinterpreter 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 Perlscripts 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 siteSlashdot, is written using mod_perl.[3] Early versions ofPHP were 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, allowingprogrammers to write handlers for all phases in the Apache request cycle, manipulate Apache's internal tables and state mechanisms, share data between Apacheprocesses orthreads, alter or extend the Apacheconfiguration fileparser, and add Perl code to the configuration file itself, among other things.
![]() | Thisfree and open-source software article is astub. You can help Wikipedia byexpanding it. |