Skip to content

Instantly share code, notes, and snippets.

@rodolfobandeira
Created June 8, 2016 19:04
Show Gist options
  • Save rodolfobandeira/ad02d5bc07d5b41647cf1c02dc5fb837 to your computer and use it in GitHub Desktop.
Save rodolfobandeira/ad02d5bc07d5b41647cf1c02dc5fb837 to your computer and use it in GitHub Desktop.
Install and compile PHP with Docker and Debian

docker run -dt —name debian01 debian

docker exec -it debian01 bash

sudo su;cd ~

apt-get update

apt-get install autoconf git make build-essential re2c bison libxml2-dev libssl-dev

git clone https://github.com/php/php-src.git;cd php-src

sudo autoconf

./buildconf --force

mkdir ~/php7

./configure --prefix=/root/php7

make;make install

cd /root/php7/bin/

./php -v

PHP 7.0.4 (cli) (built: Mar 24 2016 19:50:36) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment