mod_perl
mod_perl is a free optional module for the Apache web server , which comprises a Perl - interpreter integrated in the web server. In this way, Perl scripts can be executed for dynamic web content without having to restart the Perl interpreter for each HTTP request. Existing CGI - scripts can thanks to an emulation layer continue to be used. It can also be used to easily create new modules for the Apache web server. mod_perl also enables exotic features such as the use of Perl in the Apache configuration file .
mod_perl is freely available under the Apache license and is maintained by the Apache Software Foundation .
Alternatives
Alternatively, the execution of Perl scripts on web servers is also accelerated with FastCGI . Compared to mod_perl , this has the advantage that the script does not necessarily run with the user rights of the web server process, but under a different user ID. This represents a significant gain in security, especially for mass web hosts .
Similar techniques also exist for scripting languages similar to Perl; for PHP the associated Apache module is called mod_php , for Python it is called mod_python .
See also
literature
- Lincoln Stone, Doug MacEachern: Writing Apache Modules with Perl and C . O'Reilly Media Inc. ISBN 1-56592-567-X ( online )
- Paul Lindner, Geoffrey Young, Randy Kobes: mod_perl Developer's Cookbook . Sams. ISBN 0-672-32240-4 ( online )
- Stas Got, Eric Cholet: Practical mod_perl . O'Reilly Media Inc. ISBN 0-596-00227-0 ( online )
- Stas Got, Jim Brandt: mod_perl2 User's Guide Book . OnyxNeon 2007. ISBN 0-9779201-1-9 ( online )
Web links
- The Official Website of mod_perl (Engl.)
- Frank Wiles: The Magic of mod_perl - Introductory article about mod_perl
- Stas Bekman: Why mod_perl? (engl.)