sthen 9ec062c1d0 p5-Apache-Test and p5-Apache-Reload were previously disabled in the
mod_perl/ap2-mod_perl builds and packaged separately, to avoid conflicts
between the two mod_perls. This isn't needed any more so move them into
the man ap2-mod_perl package, fixing a loop found by nigel@.
2016-04-29 08:20:35 +00:00
..

$OpenBSD: README,v 1.1 2015/05/15 08:08:36 stsp Exp $

+-----------------------------------------------------------------------
| Running ${FULLPKGNAME} 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.