Created
April 8, 2013 20:25
-
-
Save EpocSquadron/5340151 to your computer and use it in GitHub Desktop.
Use php-build and php-version for multiple concurrent versions of php on your dev box.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install php-build: | |
sudo apt-get build-dep php5-cli git | |
git clone git://github.com/CHH/php-build | |
sudo php-build/install.sh | |
Install php-version: | |
git clone https://github.com/wilmoore/php-version.git | |
sudo ln -s php-version/php-version.sh /usr/local/bin/php-version | |
Look for valid versions to install: | |
sudo php-build --definitions | |
Build a php version: | |
mkdir ~/php-installs | |
sudo php-build -i development <version_number> ~/php-installs/<version_number> | |
Switch between versions: | |
php-version <version_number> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment