DaZZa wrote:
Greetings and salutations.
I have a box whereon is installed php5.
I have an application which one of my users wants to run which needs php4.
Can I install php4 and php5 on the same box and have them peacefully
co-exist, or am I going to run into massive problems?
Google turns up a lot of hits:
http://www.google.com.au/search?hl=en&q=php4+and+php5+same+box&btnG=Google+Search&meta=
I've just installed php4 on a box and somethings (modules) are
tagged with the php major version, e.g. libphp4.so, but the
config directory might be a gotcha: /usr/local/lib/php
One not too painful solution if you cannot install the two together
is to run the lightweight virtualiser Linux Vserver
http://linux-vserver.org/
which requires a tweak to the kernel to work properly. Deb has packages
for it. From our installation notes for vserver:
+ Install the vserver-related packages:
apt-get install initramfs-tools util-vserver debootstrap
+ Install the vserver kernel:
Get the latest VS patched kernel binary from derjohn's archive
(http://linux-vserver.derjohn.de) and install it.
dpkg -i linux-image-2.6.20.1-vs2.2.0-...
Note that this will alter /boot/grub/menu.lst to make it the default
kernel. We don't want this, so edit menu.lst. While you are at it, throw
out all the useless single user boot entries. Anytime you install a new
kernel update-grub will mess with menu.lst so you should fix it right
afterwards.
+ Edit /boot/grub/menu.lst so that it falls back to standard kernel if
booting fails per instructions in info grub. Essentially menu.lst should
look like:
default saved
fallback 0
<stock kernel>
savedefault
<vserver kernel>
savedefault 0
then
grub-set-default 1
to test the vserver kernel just this once.
Of course you will then have issues regarding which IP addresses you
use for your guests and how to configure your netwokring and routing.
cheers
rickw
--
_________________________________
Rick Welykochy || Praxis Services
Klingon function calls do not have parameters, they have 'arguments'
and they ALWAYS win them.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html