How to install two different php version on cpanel


Feb 8, 2013
cPanel Access Level
Root Administrator
I was looking for some specific documentation that explains the process for getting two php version running simultaneously in cpanel. I applications on a different account that need a older version of php but I cannot change the whole php version to accommodate that app and would like to have just that one account have the different version of PHP.

any help or linked documentation would be of help!


Well-Known Member
Feb 25, 2010
Houston, TX
cPanel Access Level
Root Administrator
Running two minor versions of the same major version of PHP (5.3 and 5.4, or 5.2 and 5.3) is not supported in a default cPanel configuration.

A better approach, though admittedly difficult, is to encourage users who are still using a very old version of PHP to upgrade their scripts. Scripts that are old enough to require an old version of PHP that has reached its end of life are also old enough to contain vulnerabilities that allow remote code execution and other methods to exploit your server.