Product:
Search Type:

Is it possible to simultaneously use php4 and php5 for web applications?

Article ID: 2187 
Last Review: Dec,13 2007
APPLIES TO:
  • Plesk for Linux/Unix

RESOLUTION

The short answer is 'no'. For web applications SWsoft Plesk uses PHP that is loaded as apache DSO module. It is very difficult to have both php4 and php5 modules in apache simultaneously, because of common namespace.

In general possible solutions for having both PHP4 and PHP5 are for example:

- run two independent apache copies one for each PHP module,
- run one of PHPs as module and other one as CGI/suPHP
- compile php modules with manual special customizations in module sources to prevent their intersection.

None of these options was tested with Plesk and none is officially supported by current Plesk versions. Plesk supposes that system has standard apache package that loads standard PHP module (which can be single only). Note that neither PHP nor  apache are parts of Plesk software, Plesk uses standard services which are installed on the server (in most cases these are standard packages from operating system vendor).

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields