Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 May 2009 07:28:22 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Mark <admin@asarian-host.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: php4 + php5
Message-ID:  <4A027F86.70007@infracaninophile.co.uk>
In-Reply-To: <200905062101.n46KYajh086945@asarian-host.net>
References:  <200905062101.n46KYajh086945@asarian-host.net>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Mark wrote:
> Using a single Apache 1.3.x install, is there a way to install both
> 
> mod_php4 + mod_php5 together? I can't just upgrade to php5: not every
> 
> webboard and such accepts php5 yet. On some dirs (or per vhost) I like
> 
> the Apache server to use php5, though.


No.  At least, not within the current ports system.  Quite apart from
anything else, the php4 and php5 ports conflict -- they fight over
installing files to certain locations.  I'm also not certain that 
loading both mod_php4 and mod_php5 into the same instance of Apache
is viable.

The standard answer to this sort of problem is to use multiple instances
of apache.  There's support in the rc scripts to do that[*] -- you'll have
to work out a mechanism (proxying, running different instances on
different IP numbers or ports, etc.) to get the web traffic into the correct
apache instance.

However, the conflicts between php4 and php5 make this unfeasible, and
probably the solution here is to use separately jailed instances of apache.

	Cheers,

	Matthew

[*] Well, there certainly is for apache22 -- I assume that the same applies
to the other apache versions in the ports.

-- 
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
                                                  Kent, CT11 9PW


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAkoCf4wACgkQ8Mjk52CukIz55QCeIkHzDHwgRfhF7P7Wd9SUbWYg
nNQAn1AQDzvaM4gX/7sI6875DUz9woXP
=6ueJ
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A027F86.70007>