openbsd-ports/www/php3/files/php3-enable

17 lines
440 B
Bash

#!/bin/sh
#
# $OpenBSD: php3-enable,v 1.2 2000/07/12 11:03:10 jakob Exp $
MODULE=y0y0y0/lib/libphp3.so
INI=y0y0y0/share/doc/php3/php3.ini-dist
if [ ! -f ${MODULE} ]; then
echo "can't find php3 module (${MODULE})"
exit 1
else
echo "enabling php3 module..."
/usr/sbin/apxs -i -a -n php3 ${MODULE}
echo "note: a sample php3.ini file can be found as ${INI} and should be"
echo " installed into /var/www/conf."
fi