Installing php 5.4 on Centos 6.7
Yum by default puts the version 5.3, that would put the 5.4 repository atomic connect
wget -q -O - http://www.atomicorp.com/installers/atomic | sh
And put as usual
yum install php php-fpm php-mysql php-gd php-mbstring php-mcrypt php-xml
To test the PHP Apache project directory
nano pi.php
with this content
<?php
// Show all information, defaults INFO_ALL
phpinfo();
?>
Ctrl+O Ctrl+X
Restart Apache
service httpd restart
check http: // to your website / pi.php
That's quite simple.