PHP4 was removed from lenny package lists. Any suggestions what might be the best approach to install php4 (Apache mod and cli) on a lenny box without breaking php5? And possibly still having the ability to uninstall later on.
It should be possible to install php4 along side php5; they were available before and the packaging was designed to have php4 or php5 in the paths that they used. The easiest thing to do would be to download the source packages for php4 from sarge, extract them using:
cd into the newly created directory, then build it using:
This should then create the packages you need in the parent directory. I've missed out the version numbers in the .dsc file name.
I'd say there are 2 Options:
Forward port php4, you need to apt-get source the package in question, and simply rebuild it on a lenny box. I won't go into details as different dependencies might need quite some amount of time to figure out (especially if you never forward ported packages before)
Not exactly the least interrupting solution but I think that OpenVZ is the perfect match for this.
OpenVZ is a container based virtualization, thus it doesn't really add any overhead. Overhead is slightly more than using a chroot environment, but a lot less than XEN or kvm.
We use it as a service seperation for nearly everything, the largest overhead it adds is some waste of disk storage which in these days isn't much of a problem.
You'd simply install OpenVZ (this needs a reboot) and debootstrap an etch instance right on the host, boot it add an IP and work just like with a normal box.