Compiling PHP 7 from source

3 years ago by: matt

I work out of /usr/local/src for anything I'm compiling from source so adjust to suit your own setup.

cd /usr/local/src

Grab yourself the latest version available on the website using wget in the current directory.

Once you have finished downloading you need to gunzip and untar:

sudo gunzip php-7.0.1.tar.gz
sudo tar -xvf php-7.0.1.tar
cd php-7.0.1

To keep track of what configuration I compiled so...

Continue reading