Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am looking to use Symfony2 to help build a large web system. I want to run this on the same server that is being used by existing systems (It is an Apache2 server on linux). The issue I have is that the existing projects are not all compatible with the newer versions of php. To be able to get the best out of Symfony2, I'm wanting to run php 5.4.11 or above. Is there a way to run 2 versions of PHP? ideally 5.3.13 and the newest PHP version; 5.5.4.

Things I need to consider: Are there are any significant performance impact with doing this? Will there be any/much downtime to set it up?

I have found a couple of examples (below) but I dont know what is the best option, or if there is a better solution, hence the question. http://blog.servergrove.com/2011/08/22/how-to-setup-multiple-php-versions-on-apache/ http://www.metod.si/multiple-php-versions-with-apache-2-fastcgi-phpfarm-on-ubuntu/

share|improve this question
    
IMHO: The best option would be to use jails so you can keep everything cleanly separated. That might not help you right now, but it is something to remember for your next server. –  Hennes Sep 24 '13 at 13:09

1 Answer 1

up vote 0 down vote accepted

I think you have to use fastcgi. Take a look at this this, it might help you:

Intall multiple version of php on one server

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.