Skip to content

Instantly share code, notes, and snippets.

@EpocSquadron
Created April 8, 2013 20:25
Show Gist options
  • Save EpocSquadron/5340151 to your computer and use it in GitHub Desktop.
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.
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