On Thu, 17 Feb 2011 05:33:01 +0800, Tito Mari Francis EscaCB1o wrote:
Good day.
I need to setup a development web server that should host both
PHP5.2.x and
PHP5.3.x. Our goal is to maintain PHP5.2-based application versions
while
having room for growth to have ready environment for PHP5.3 web
development.
Can anybody please give me pointers on how this can be done?
One idea I have is to have both multiple web servers in one box like
built-in Apache 1.3 and Apache 2 with PHP5.2.x and PHP5.3.x
respectively
each with individual virtual host configuration but it's quite
complex,
hoping somebody could advise me on this.
I think you would be better off investigating FastCGI (and php-fastcgi)
with
each version of PHP living in a separate chroot and communicating to
the web
server over TCP (rather than Unix domain sockets).
I suggest the chroots so that you can better control what libraries,
etc., get
pulled in by each version, but it may not be necessary. The more
important point
is using FastCGI so that Apache itself doesn't have to have PHP loaded,
and is therefore
not restricted to a single version that it's running.
--
Matthew Weigel
hacker
unique & idempot . ent