Home

The www/ap2-mod_perl port

ap2-mod_perl-2.0.13 – module that embeds a Perl interpreter into Apache2 (cvsweb github mirror)

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.
WWW: https://metacpan.org/release/mod_perl

Readme

+-----------------------------------------------------------------------
| Running ${PKGSTEM} 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 ${PREFIX}/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 ${PREFIX}/lib/apache2/mod_perl.so

Restart Apache2 for changes to make effect.

Maintainer

The OpenBSD ports mailing-list

Categories

net perl5 www

Library dependencies

Build dependencies

Run dependencies

Test dependencies

Files

Search