$OpenBSD: README-php,v 1.1 2012/01/24 12:03:19 sthen Exp $

+-----------------------------------------------------------------------
| Running mapserver-6.0.2 on OpenBSD
+-----------------------------------------------------------------------

You can enable this module by creating a symbolic
link from /etc/php-5.3.sample/mapscript.ini to
/etc/php-5.3/mapscript.ini. 

    # ln -fs /etc/php-5.3.sample/mapscript.ini \
        /etc/php-5.3/mapscript.ini

If you plan to use PHP mapscript extension with a chrooted httpd(8), make
sure to copy the libs needed by mapscript.so file binary from /usr/local/lib,
but also the projection definitions from libgeotiff and proj packages to the
chroot:

# mkdir -p /var/www//usr/local/share/{epsg_csv,proj}
# cp /usr/local/share/epsg_csv/* /var/www//usr/local/share/epsg_csv
# cp /usr/local/share/proj/* /var/www//usr/local/share/proj

httpd(8) will also need to have libpthread.so preloaded, you can add this
to /etc/login.conf and restart with /etc/rc.d/httpd restart:

httpd:\
        :setenv=LD_PRELOAD=/usr/lib/libpthread.so:\
        :tc=daemon:
