Multiple PHP version under Ubuntu 14.04 Update your machine apt-get update apt-get upgrade Install some dependencies apt-get install build-essential