Skip to content

Instantly share code, notes, and snippets.

@grekodev
Created April 7, 2017 16:07
Show Gist options
  • Save grekodev/7552e32a4b07dd72bd81b6873e086b19 to your computer and use it in GitHub Desktop.
Save grekodev/7552e32a4b07dd72bd81b6873e086b19 to your computer and use it in GitHub Desktop.
PHP 5.6.5 installer for Debian 7.7
#!/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