Last active
December 17, 2015 07:48
-
-
Save phcostabh/5575436 to your computer and use it in GitHub Desktop.
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
| # Update packages | |
| sudo apt-get update && sudo apt-get upgrade --yes | |
| # Install git | |
| sudo apt-get git-core install build-essential autoconf libtool libxml2 libxml2-dev openssl libcurl4-openssl-dev \ | |
| libbz2-1.0 libbz2-dev libjpeg-dev libpng12-dev libfreetype6 libfreetype6-dev \ | |
| libldap-2.4-2 libldap2-dev libmcrypt4 libmcrypt-dev libmysqlclient-dev \ | |
| libxslt1.1 libxslt1-dev libxt-dev | |
| # Install php-build | |
| cd; git clone git://github.com/CHH/php-build.git | |
| cd php-build/ | |
| PREFIX=$HOME/local ./install.sh | |
| # Install phpenv | |
| cd; git clone git://github.com/CHH/phpenv.git | |
| cd phpenv | |
| ./bin/phpenv-install.sh | |
| # Reload configuratinos | |
| source ~/.bashrc | |
| # Install latest version of PHP | |
| php-build -i development 5.4.15 $HOME/.phpenv/versions/5.4.15 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment