Install version 5.4 or 5.5 of PHP using Yum
Use centos6.5 as the test machine.
The following two commands make it easy to install version 5.4 of PHP
Yum Remove php php-bcmath php-cli php-common php-devel php-fpm php-gd php-imap php-ldap php-mbstring Php-mcrypt php-mysql php-odbc php-pdo php-pear php-pecl-igbinary php-xml php-xmlrpc
RPM-UVH http://mirror.webtatic.com/yum/el6/latest.rpm
Yum install php54w php54w-bcmath php54w-cli php54w-common php54w-devel php54w-fpm php54w-gd Php54w-imap php54w-ldap php54w-mbstring php54w-mcrypt php54w-mysql php54w-odbc php54w-pdo Php54w-pear php54w-pecl-igbinary php54w-xml php54w-xmlrpc php54w-opcache php54w-intl Php54w-pecl-memcache
installation of php5.5
Yum Remove php php-bcmath php-cli php-common php-devel php-fpm php-gd php-imap php-ldap php-mbstring Php-mcrypt php-mysql php-odbc php-pdo php-pear php-pecl-igbinary php-xml php-xmlrpc
RPM-UVH http://mirror.webtatic.com/yum/el6/latest.rpm
Yum install php55w php55w-bcmath php55w-cli php55w-common php55w-devel php55w-fpm php55w-gd Php55w-imap php55w-ldap php55w-mbstring php55w-mcrypt php55w-mysql php55w-odbc php55w-pdo Php55w-pear php55w-pecl-igbinary php55w-xml php55w-xmlrpc php55w-opcache php55w-intl Php55w-pecl-memcache
The above describes the Yum installation php54 or 55, including aspects of the content, I hope that the PHP tutorial interested in a friend helpful.