Record of some of the computer tech I deal with so that it's documented at least somewhere.

Wednesday, 25 November 2009

FreeBSD Qemu Apache 1.3

I need to keep a legacy web server running. Got to Linux and there's no Apache 1.3.x in the Debian package manager. I want to replicate what I have on FreeBSD so .....

FreeBSD with ports installed on Qemu [x] easy. - backup your qimage as you go :)

in root's .cshrc
# setenv PACKAGESITE ftp://ftp.uk.freebsd.org/pub/FreeBSD/ports/packages/All/
# pkg_add -r apache-1.3.41_1
# cat >> /etc/rc.conf
apache_enable="YES"
^D
# echo 127.0.0.1 `hostname` >> /etc/hosts

This doesn't work :
# cd /usr/ports/lang/php4; make install
because strstr is checked using SIGALARM and that locks up QEMU!
# pkg_add -r php4-4.4.9
Doesn't add mod_php4 or these modules :
# pkg_add -r php4-pcre-4.4.9
# pkg_add -r php4-pgsql-4.4.9_1

So a bit of bodging is required
# cd /usr/local/libexec/apache
# scp maht@steponnopets.net:/usr/local/libexec/apache/libphp4.so .

and the other Apache modules I need

# pkg_add -r mod_gzip-1.3.26.1a
# pkg_add -r mod_auth_pgsql-0.9.12_4


et viola, index.php is excecuted

I copied the confs from steponnopets

No comments: