Take the 2-minute tour ×
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: http://goo.gl/IH1sP

share|improve this question
    
I just wanted to update this to say that Plesk 11.5 now supports multiple versions of PHP on Linux –  BeesonBison Jan 19 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.

share|improve this answer

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.

share|improve this answer

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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