PHP4 & PHP5 on same server?

Mark Bucciarelli mark at gaiahost.coop
Tue Sep 27 12:01:07 PDT 2005


On Tue, Sep 27, 2005 at 11:16:04AM +0200, pobox at verysmall.org wrote:
> Mark Bucciarelli wrote:
> >Is it possible install both php4 and php5 on the same server using
> >ports?
> >
> >I'm using fastcgi so two different interpreters should be fine.  (Rename 
> >/usr/local/bin/php to /usr/local/bin/php5-fcgi, for example.)
> >
> >Can I assume the php4 and php5 modules (for example, pear) won't step on
> >each other's toes?
> >
> >I google around but didn't find much on this topic ... :(
> >
> >m
> 
> We have them as mod with two chrooted Apache servers on two different IPs.

Thanks for the reply.

>From doing some more research list night, my understanding is that
the php binary is the whole kit and kaboodle, so if I 

- build PHP4 from source and

- configure it to look in a different spot for extensions,

then I should be able to use PHP4 and PHP5 via fastcgi on a per-vhost
basis.

I just won't be able to rely on ports for updates to PHP4.

m



More information about the freebsd-questions mailing list