phpfarm is a useful set of scripts which makes the installation and usage of multiple PHP versions easy and convenient. Basically, the instructions below follow the installation guidelines from the official git repository: https://github.com/cweiske/phpfarm.
- Install necessary packages for build process.
sudo apt-get install build-essential libxml2 libxml2-dev libssl-dev
libcurl4-openssl-dev pkg-config libcurl4-gnutls-dev libjpeg-dev
libpng12-dev libmysqlclient-dev