Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a tool to manage multiple installations of PHP on one machine (e.g. to support different versions)?

Tags:

php

perlbrew is a tool to manage multiple installations of Perl on your system, making it easy to, say, quickly run a suite of test scripts against many different versions of Perl.

Is there anything like that for PHP? For now when I want to change the version of PHP that my system uses, I'll go into the build directory for my desired version and run make install.

like image 301
mob Avatar asked May 17 '12 17:05

mob


People also ask

Can I have multiple versions of PHP installed?

Add a PHP Repository So you'll need to add the PHP repository in your system to install the multiple PHP versions. Once the repository is up-to-date, you can proceed to install multiple PHP versions.


2 Answers

Here's one: http://www.navicopa.com - it allows you to switch between different versions of php in one click (just install them into different directories)

And here's a free one: https://github.com/c9s/phpbrew

Also - you might like this solution as an alternative, if you don't want to use side software: https://stackoverflow.com/a/5299385/1337343

Also missed that you use linux environment, so you would really like this: https://github.com/tobiasgies/php-switch

Install all php versions you need and switch between them using this tiny bash script.

like image 140
Ruslan Osipov Avatar answered Oct 10 '22 11:10

Ruslan Osipov


Maybe phpfarm could help you...

like image 32
Miroslav Popovic Avatar answered Oct 10 '22 12:10

Miroslav Popovic