ajacoutot 2b7b3461f5 @comment beforesubst files.
Should probably be removed in post-install or so but I am lazy... and no
one picked up my mail on ports@
2017-11-19 19:38:46 +00:00
..
2017-11-19 19:38:46 +00:00

$OpenBSD: README,v 1.5 2016/06/27 19:36:50 sthen Exp $

+-----------------------------------------------------------------------
| Running ${FULLPKGNAME} on OpenBSD
+-----------------------------------------------------------------------

Basic installation
==================

Initialize MySQL and PHP Apache modules (if not already done):
	${LOCALBASE}/bin/mysql_install_db
	${RCDIR}/mysqld start
	${LOCALBASE}/bin/mysqladmin -u root password 'changeme'

	ln -fs /var/www/conf/modules.sample/php-${MODPHP_VERSION}.conf \
	    /var/www/conf/modules/php.conf
	ln -fs ${SYSCONFDIR}/php-${MODPHP_VERSION}.sample/mysql.ini \
	    ${SYSCONFDIR}/php-${MODPHP_VERSION}/mysql.ini
	ln -fs ${SYSCONFDIR}/php-${MODPHP_VERSION}.sample/snmp.ini \
	    ${SYSCONFDIR}/php-${MODPHP_VERSION}/snmp.ini

Initialize the NeDi MySQL database with the 'root' database user:
	${PREFIX}/nedi/nedi.pl -i

Create a symbolic link in the Apache DocumentRoot:
	ln -fs ../nedi/html /var/www/htdocs/nedi

Enable short tags in PHP:
	vi ${SYSCONFDIR}/php-${MODPHP_VERSION}.ini
	'short_open_tag = Off' -> 'short_open_tag = On'

Login to NeDi with user 'admin' and password 'admin':
	http://localhost/nedi/