Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I've been Googling around for a while on this one but I haven't found a good answer yet!

Is it possible to set up cPanel 11.3x so that it can run different versions of PHP 5.x (e.g. 5.2, 5.3 and later on 5.4) for each of the configured apache vhosts / domains?

It would be great to do this either using .htaccess, php.ini or a setting within cPanel itself.

I've seen EasyApache 3 mentioned in the documentation but even after reading through several times I haven't seen a definitive yes or no for whether this is possible - please let me know if you need any more info.

This was the documentation I found for EA3:


locked by HopelessN00b Mar 11 at 20:03

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: help center.

closed as off-topic by HopelessN00b Mar 11 at 20:03

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

I just wanted to update this to say that Plesk 11.5 now supports multiple versions of PHP on Linux – BeesonBison Jan 19 '14 at 5:52

3 Answers 3

up vote 1 down vote accepted

You can have multiple instances of PHP installed on your server at once (usually), but alas, apache can only have one mod_php loaded at a time. Therefore, no, you cannot do this.


It's possible to have multiple PHP versions in cPanel.

There is already a feature request for cPanel and an extensive discussion at cPanel forum post with some approaches to run multiple PHP versions.

In case of Cloudlinux you can make use of the PHP selector component.


It is possible. You can't do it with mod_php but if you want to manually hack the vhost configs you can do it.


Not the answer you're looking for? Browse other questions tagged or ask your own question.