Created
April 7, 2017 16:07
-
-
Save grekodev/7552e32a4b07dd72bd81b6873e086b19 to your computer and use it in GitHub Desktop.
PHP 5.6.5 installer for Debian 7.7
This file contains 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
#!/bin/sh | |
apt-get build-dep -y php5-cli | |
aptitude install -y build-essential git libreadline-dev libxml2-dev libmcrypt-dev libjpeg8-dev libpng12-dev libcurl4-openssl-dev libtidy-dev libxslt1-dev | |
cd /tmp | |
git clone git://github.com/CHH/php-build | |
cd php-build/ | |
./install.sh | |
mkdir /usr/local/php | |
php-build -i production 5.6.5 /usr/local/php/5.6.5 | |
cd /usr/local/bin | |
/usr/local/php/5.6.5/bin/php -r "readfile('https://getcomposer.org/installer');" | /usr/local/php/5.6.5/bin/php | |
mv composer.phar composer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment