Skip to content

Instantly share code, notes, and snippets.

@createproblem
Forked from BanzaiMan/php_install.sh
Created August 1, 2014 07:48
Show Gist options
  • Save createproblem/c38a979dabc8691eae2c to your computer and use it in GitHub Desktop.
Save createproblem/c38a979dabc8691eae2c to your computer and use it in GitHub Desktop.
VERSION=${1:-5.5.9}
PHP_DIR=$HOME/.phpenv/versions/$VERSION
pushd $HOME/.php-build/bin
test -x $PHP_DIR/bin/php || ./php-build -i development $VERSION $PHP_DIR
popd
phpenv global $VERSION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment