module that embeds a Perl interpreter into Apache2
Project homepage: https://metacpan.org/release/mod_perl
Description
The Apache/Perl integration project brings together the full power of the
Perl programming language and the Apache HTTP server. This is achieved by
linking the Perl runtime library into the server and providing an object
oriented Perl interface to the server's C language API.
These pieces are seamlessly glued together by the `mod_perl' server
plugin, making it is possible to write Apache modules entirely in Perl.
In addition, the persistent interpreter embedded in the server avoids the
overhead of starting an external interpreter program and the additional
Perl start-up (compile) time.
Package information
- Ports path
- www/ap2-mod_perl
- Package architecture
- amd64
- Maintainer
- The OpenBSD ports mailing-list <ports@openbsd.org>
- Categories
- www, net, perl5
- Available flavors
- None listed
Ports list build and test dependencies as well as runtime dependencies. pkg_add selects those needed for installation.
Direct dependencies
Library
Runtime
Build
Test
OpenBSD README
This README contains unresolved ports variables; replace them before using its commands.
+-----------------------------------------------------------------------
| Running ap2-mod_perl on OpenBSD
+-----------------------------------------------------------------------
Prerequisites
=============
Since perl(1) does not support ithreads, mod_perl will only work with
the prefork MPM.
To ensure that Apache2 is configured to use the prefork MPM, edit
${SYSCONFDIR}/apache2/httpd2.conf and add the following line:
LoadModule mpm_prefork_module /usr/local/lib/apache2/mod_mpm_prefork.so
Remove any lines loading other MPM modules.
For information about ithreads, see http://perldoc.perl.org/threads.html.
Enabling mod_perl
=================
Before you can use ap2-mod_perl, you need to enable it on your
Apache2 configuration.
Edit ${SYSCONFDIR}/apache2/httpd2.conf and add the following line:
LoadModule perl_module /usr/local/lib/apache2/mod_perl.so
Restart Apache2 for changes to make effect.
Used by (19 dependency relationships)
Includes library, runtime, build and test dependencies.