$OpenBSD: README,v 1.2 2018/09/04 12:46:24 espie Exp $

+-----------------------------------------------------------------------
| 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
/etc/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 /etc/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.
