> sudo apt-get update > sudo apt-get install apache2
> sudo apt-get install php5.6
> sudo apt-get install postgresql > sudo apt-get install pgadmin3
> sudo apt-get install mcrypt php5-mcrypt > sudo php5enmod mcrypt > sudo service apache2 restart
> sudo apt-get install php5-gd > sudo service apache2 restart
https://www.digitalocean.com/community/questions/how-to-install-php-5-6-on-centos-7-0-x64
yum install php php-gd php-mysql php-mcrypt php-pgsql