openbsd-ports/geo/mapserver/pkg/README-php

29 lines
1.2 KiB
Plaintext

$OpenBSD: README-php,v 1.1 2012/01/24 12:03:19 sthen Exp $
+-----------------------------------------------------------------------
| Running ${FULLPKGNAME} on OpenBSD
+-----------------------------------------------------------------------
You can enable this module by creating a symbolic
link from ${SYSCONFDIR}/php-${MODPHP_VERSION}.sample/mapscript.ini to
${SYSCONFDIR}/php-${MODPHP_VERSION}/mapscript.ini.
# ln -fs ${SYSCONFDIR}/php-${MODPHP_VERSION}.sample/mapscript.ini \
${SYSCONFDIR}/php-${MODPHP_VERSION}/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 ${LOCALBASE}/lib,
but also the projection definitions from libgeotiff and proj packages to the
chroot:
# mkdir -p /var/www/${LOCALBASE}/share/{epsg_csv,proj}
# cp ${LOCALBASE}/share/epsg_csv/* /var/www/${LOCALBASE}/share/epsg_csv
# cp ${LOCALBASE}/share/proj/* /var/www/${LOCALBASE}/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: