Can PHP 4 and 5 coexist on a single server?



Our current webserver is a Linux Apache 2 engine running several websites
in separate virtual hosts. All of our websites were written for PHP 4,
and thus is the version of PHP running. But we are looking to host a copy
of MediaWiki which will start to require PHP 5 during the next major
release.

Since our existing sites are much to large to test and update to run under
PHP 5, I want to investigate whether we can install PHP 5 and configure
Apache to use PHP 4 for all the existings sites and use PHP 5 for the new
one.

Has anyone successfully done this, and how?

--
Justin Kennedy

.



Relevant Pages

  • Re: Delphi has ruined me. Ruined, I tell you, ruined.
    ... With no compiler, its the gateway drug to bad programming. ... I guess I should start going around to websites and hacking ... type PHP habitual programming for constructive purposes. ... But this does go beyond just compiler type checking. ...
    (borland.public.delphi.non-technical)
  • Re: [PHP] Detecting naughty sites
    ... >detect whether that site is a porn site via php? ... Such a trap would also catch websites discussing ... human sexuality, websites about safe sex, sites about scientific ...
    (php.general)
  • Re: Editing software
    ... A text editor ... The PHP documentation on php.net ... Web authoring tools are fine for static pages, ... websites for potential clients. ...
    (comp.infosystems.www.authoring.html)
  • RE: IE 8 and problem viewing websites that use .php
    ... Any idea about where or what I should do about websites using .php? ... which is a finnish site and a friend posts pictures there. ...
    (microsoft.public.windowsxp.general)
  • Re: PHP Tutorials
    ... cannot encompass "the right way" of doing things. ... These are the types of things Tutorial websites try to do, ... is the only failing of the PHP manual in and of itself. ... and as such shouldn't immediately fall prey to the failings of other ...
    (comp.lang.php)