Binary packages for the MicroServer Howto - Appendix
This page lists detailed additional information for using binary packages on the OpenMicroServer.
Automatically starting a program as daemon
Verify entries in /etc/rc.conf to start a script in /usr/pkg/etc/rc.d
If you want a program to start automatically, add it to /etc/rc.conf. The example below is for openssh.
/etc/rc.conf
sshd=YES
As variable name (on the left), specify the name of the script in /usr/pkg/etc/rc.d.
How to use PHP libraries
To use packages that start with "php-", they need to be added to the php setting file, in the "Dynamic Extensions" block. The example below is for php-bz2.
/usr/pkg/etc/php.ini
;;;;;;;;;;;;;;;;;;;;;; ; Dynamic Extensions ; ;;;;;;;;;;;;;;;;;;;;;; [...] extension=bz2.so
You check the name of the library with the pkg_info command. The example below is for php-bz2.
# pkg_info -D php5-bz2
Information for php5-bz2-5.2.5:
Install notice:
===========================================================================
$NetBSD: MESSAGE.module,v 1.1 2004/11/05 21:40:25 jdolecek Exp $
To enable this module, add the following to /usr/pkg/etc/php.ini:
extension=bz2.so
and make sure extension_dir points to the dir where bz2.so is.
Then restart your PHP5-enabled HTTP server to load this module.
===========================================================================