World Library  
Flag as Inappropriate
Email this Article

Mod perl

Article Id: WHEBN0000224619
Reproduction Date:

Title: Mod perl  
Author: World Heritage Encyclopedia
Language: English
Subject: FastCGI, List of content management systems, Perl, WebGUI, Apache HTTP Server
Collection: Apache Httpd Modules, Articles with Underscores in the Title, Cross-Platform Software, Perl
Publisher: World Heritage Encyclopedia

Mod perl

Developer(s) Apache Software Foundation
Stable release 2.0.9 / June 18, 2015 (2015-06-18)[1]
Operating system Cross-platform
Platform Perl
Type Perl module for Apache HTTP server
License Apache License 2.0
Website .org.apacheperl

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.[2] Early versions of PHP were implemented in Perl using mod_perl.[3]


  • Compare to Common Gateway Interface (CGI) 1
  • See also 2
  • References 3
  • External links 4

Compare to Common Gateway Interface (CGI)

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


  1. ^ "mod_perl changelog". Retrieved October 8, 2015. 
  2. ^ "Slash installation". 
  3. ^ "Paying Homage to Perl (PHP)". February 2003. 

External links

  • Main website
  • Why mod_perl?
  • The magic of mod_perl
  • Writing Apache Modules with Perl and C
  • The mod_perl Developer's Cookbook
  • Practical mod_perl
  • mod_perl2 User's Guide
  • An easy step-by-step installation guide for mod_perl2 on Unix/Linux and Windows/ReactOS

This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.