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: http://goo.gl/IH1sP


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.