Please be aware that this is an old post, more than one year old, so you might need to look for an updated version of this article either on this site or using your favourite search engine.
TBH installing it is simple, you have just need to :
- Adding the PPA for PHP 5.6 in your Ubuntu system
- Install PHP 5.6
sudo apt-get install python-software-properties sudo add-apt-repository ppa:ondrej/php5-5.6 sudo apt-get update sudo apt-get install -y php5-cli php5-fpm php5-mcrypt php5-sqlite php5-common php5-curl php5-intl php5-json php5-mysql
And thats it, you are now ready to use PHP 5.6 on your server.