PWQ Septempber 2011
I have installed Apache Rivet on openBSD. This may have been explained before but the apache email archives are not searchable so I describe here for others to reference.
Extra steps are involved due to apache running in chroot environment.
./configure --with-apache=/var/www/ --with-tcl=/usr/local/lib/tcl/tcl8.5/ --with-apache-include=/home/ports/pobj/apr-1.2.11-mt/apr-1.2.11/include/ --with-apache-version=1
Notes:
Put options into /var/www/conf/modules/rivet.conf. It will be autoloaded by apache.
LoadModule rivet_module /usr/lib/apache/modules/mod_rivet.so AddType application/x-httpd-rivet .rvt AddType application/x-rivet-tcl .tcl AddType 'application/x-httpd-rivet;charset=utf-8' rvt RivetServerConf ChildInitScript "package require DIO" RivetServerConf ChildInitScript \ "::DIO::handle Mysql DIO -user ???? -pass ???? -db ???" RivetServerConf ChildInitScript \ "package require Session; Session SESSION -debugMode 0"
Replace ??? with data specific to your database. This line and line following are only needed if you use sessions.
I noticed an error in the current rivet manual. The DIO command array takes its arguments in the opposite order to that shown in the manual.
There could be more changes I made and forgot about, check your /var/www/logs/error_log to see messages from Rivet as to what problems are detected.
The following are observations that may be generic to Rivet, or may be artifacts of the build process under OpenBSD that I have used.
DIO close
to the end of every script seems to stop this happening.
Note: destroying the DIO object causes sessions to abort every page until apache is restarted.