If you really want to install VHCS on OpenBSD you should be familar with the manual installation
process from the linux platform, it's only recommended for people with BSD knowledge!

This is a short list of notes i have written while setting up and porting vhcs to OpenBSD, 
it may be incomplete/outdated in some places.

1. install all packages from packagelist (openbsd-packages-install.sh will help you)
 - your base install needs the xbaseXX.tgz package installed !!!

2. download proftpd source & compile with configure command:
   wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.1.tar.bz2
   bunzip2 proftpd-1.3.1.tar.bz2
   tar -xvf proftpd-1.3.1.tar 
   cd proftpd-1.3.1
   ./configure --sysconfdir=/etc \
        --enable-ctrls \
        --enable-ipv6 \
        --enable-sendfile \
        --enable-facl \
        --with-modules=mod_sql:mod_sql_mysql:mod_tls:mod_rewrite:mod_ratio:mod_readme:mod_ifsession:mod_ctrls_admin:mod_quotatab:mod_quotatab_file:mod_quotatab_sql \
        --with-includes=/usr/local/include/mysql \
        --with-libraries=/usr/local/lib \
        --localstatedir=/var/run
   make
   make install

3. install required perl modules (not needed since openbsd 4.3)
   perl -MCPAN -e shell
   cpan> install Crypt::PasswdMD5
   cpan> install Term::ReadPassword

   if package p5-MIME-tools can't be installed, install it with cpan 
   cpan> install MIME::Tools

4. extract vhcs2 source package and run make

5. execute these commands:

	groupadd -o -g 0 root
	ln -s /usr/local/libexec/makedatprog /usr/local/bin/makedatprog

6. mysql_install_db ; /usr/local/share/mysql/mysql.server start
   set mysql root password with mysqladmin: mysqladmin password 'your-new-password'

   run make in vhcs2 directory , change to /tmp/vhcs2-<version>, execute: cp -R * /
   change to /var/www/vhcs2/engine/setup and run vhcs2-setup

7. edit /etc/rc.local and add the following lines:

mkdir -p /var/run/courier-auth /var/run/courier /var/run/courier-imap
/usr/local/sbin/authdaemond start
/usr/local/libexec/imapd.rc start
/usr/local/libexec/imapd-ssl.rc start
/usr/local/libexec/pop3d.rc start
/usr/local/libexec/pop3d-ssl.rc start
/usr/local/share/mysql/mysql.server start
mkdir -p /var/run/proftpd
/etc/proftpd.rc start
/etc/vhcs2_daemon.rc start

8. edit /etc/rc.conf.local and add the following lines:

ntpd_flags=             # enabled during install
httpd_flags=-u         # enabled / -DSSL
inetd=NO
syslogd_flags=          # "-a /var/spool/postfix/dev/log"
sendmail_flags="-bd -q30m"
named_flags=

9. edit /var/www/conf/httpd.conf and insert

AddType application/x-httpd-php .php
Include /var/www/conf/vhcs2.conf to the last line

10. create initial php.ini
cp /usr/local/share/examples/php4/php.ini-recommended /var/www/conf/php.ini

11. 
 a.) run following commands to activate php module extensions (php4 install)
/usr/local/sbin/phpxs -s
/usr/local/sbin/phpxs -a curl
/usr/local/sbin/phpxs -a dbx
/usr/local/sbin/phpxs -a domxml
/usr/local/sbin/phpxs -a filepro
/usr/local/sbin/phpxs -a gmp
/usr/local/sbin/phpxs -a imap
/usr/local/sbin/phpxs -a mcrypt
/usr/local/sbin/phpxs -a mhash
/usr/local/sbin/phpxs -a mysql
/usr/local/sbin/phpxs -a pdf
/usr/local/sbin/phpxs -a shmop
/usr/local/sbin/phpxs -a xmlrpc
/usr/local/sbin/phpxs -a xslt

 b.) run following commands to activate php module extension (php5 install,since openbsd 4.3)

ln -s /var/www/conf/modules.sample/php5.conf \
        /var/www/conf/modules
ln -fs /var/www/conf/php5.sample/bz2.ini \
        /var/www/conf/php5/bz2.ini
ln -fs /var/www/conf/php5.sample/curl.ini \
        /var/www/conf/php5/curl.ini
ln -fs /var/www/conf/php5.sample/dba.ini \
        /var/www/conf/php5/dba.ini
ln -fs /var/www/conf/php5.sample/gd.ini \
        /var/www/conf/php5/gd.ini
ln -fs /var/www/conf/php5.sample/gmp.ini \
        /var/www/conf/php5/gmp.ini
ln -fs /var/www/conf/php5.sample/imap.ini \
        /var/www/conf/php5/imap.ini
ln -fs /var/www/conf/php5.sample/mbstring.ini \
        /var/www/conf/php5/mbstring.ini
ln -fs /var/www/conf/php5.sample/mcrypt.ini \
        /var/www/conf/php5/mcrypt.ini
ln -fs /var/www/conf/php5.sample/mhash.ini \
        /var/www/conf/php5/mhash.ini
ln -fs /var/www/conf/php5.sample/mysql.ini \
        /var/www/conf/php5/mysql.ini
ln -fs /var/www/conf/php5.sample/mysqli.ini \
        /var/www/conf/php5/mysqli.ini
ln -fs /var/www/conf/php5.sample/shmop.ini \
        /var/www/conf/php5/shmop.ini
ln -fs /var/www/conf/php5.sample/xmlrpc.ini \
        /var/www/conf/php5/xmlrpc.ini
ln -fs /var/www/conf/php5.sample/xsl.ini \
        /var/www/conf/php5/xsl.ini



run following command to enable postfix
/usr/local/sbin/postfix-enable

and restart apache: apachectl restart


optional create imap&pop3 ssl certificates:
mkimapdcert
mkpop3dcert

12. not working "features" (list may be incomplete) 
	- all iptables based traffic accounting
  

