Ubuntu – How to have two versions of PHP installed and switch easily between them

Apache2lampPHPserver

I want to have both PHP 5.2.17 and PHP 5.3.5 installed on my Ubuntu machine and switch as per my necessity. How can I achieve this?

Best Answer

You can use a php version manager to achieve this. Different version managers are available like:

My favorite is phpbrew. Hope this helps.