Upgrade PHP 5.4 in RHEL 6 on Amazon EC2

My default RHEL 6 instance on Amazon EC2 is running on PHP 5.3.3 so I’ve decided to update to a later version 5.4.4. So this is how i did it. Time taken 5-10 minutes.1. Check current PHP version

[root@ip-10-252-81-32 nordin]# php -v
PHP 5.3.3 (cli) (built: Nov 29 2012 04:12:23)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

2. Add rightscale repo with following lines

[root@ip-10-252-81-32 nordin]# vi /etc/yum.repos.d/rightscale-epel.repo
[rightscale-epel]
name = none
baseurl = http://cf-mirror.rightscale.com/rightscale_software/epel/6/x86_64/archive/20120918
http://ec2-eu-west-mirror1.rightscale.com/rightscale_software/epel/6/x86_64/archive/20120918
 
http://ec2-us-east-mirror.rightscale.com/rightscale_software/epel/6/x86_64/archive/20120918
 
http://ec2-us-east-mirror1.rightscale.com/rightscale_software/epel/6/x86_64/archive/20120918
 
http://ec2-us-east-mirror2.rightscale.com/rightscale_software/epel/6/x86_64/archive/20120918
 
failovermethod=priority
gpgcheck=0
enabled=1
gpgkey=
# set metadata to expire faster then main
metadata_expire=30

3. Start erasing current PHP, updating yum, & install PHP54

[root@ip-10-252-81-32 nordin]# yum erase php*
[root@ip-10-252-81-32 nordin]# yum update
[root@ip-10-252-81-32 nordin]# yum install php54* --skip-broken
Failed to set locale, defaulting to C
Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php54.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-bcmath.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-cli.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-common.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-dba.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-devel.x86_64 0:5.4.4-1.ius.el6 will be installed
--> Processing Dependency: automake for package: php54-devel-5.4.4-1.ius.el6.x86_64
--> Processing Dependency: autoconf for package: php54-devel-5.4.4-1.ius.el6.x86_64
---> Package php54-embedded.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-enchant.x86_64 0:5.4.4-1.ius.el6 will be installed
--> Processing Dependency: libenchant.so.1()(64bit) for package: php54-enchant-5.4.4-1.ius.el6.x86_64
---> Package php54-fpm.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-gd.x86_64 0:5.4.4-1.ius.el6 will be installed
--> Processing Dependency: libt1.so.5()(64bit) for package: php54-gd-5.4.4-1.ius.el6.x86_64
--> Processing Dependency: libXpm.so.4()(64bit) for package: php54-gd-5.4.4-1.ius.el6.x86_64
---> Package php54-imap.x86_64 0:5.4.4-1.ius.el6 will be installed
--> Processing Dependency: libc-client.so.2007()(64bit) for package: php54-imap-5.4.4-1.ius.el6.x86_64
---> Package php54-interbase.x86_64 0:5.4.4-1.ius.el6 will be installed
--> Processing Dependency: libfbclient.so.2()(64bit) for package: php54-interbase-5.4.4-1.ius.el6.x86_64
---> Package php54-intl.x86_64 0:5.4.4-1.ius.el6 will be installed
--> Processing Dependency: libicuuc.so.42()(64bit) for package: php54-intl-5.4.4-1.ius.el6.x86_64
--> Processing Dependency: libicuio.so.42()(64bit) for package: php54-intl-5.4.4-1.ius.el6.x86_64
--> Processing Dependency: libicui18n.so.42()(64bit) for package: php54-intl-5.4.4-1.ius.el6.x86_64
--> Processing Dependency: libicudata.so.42()(64bit) for package: php54-intl-5.4.4-1.ius.el6.x86_64
---> Package php54-ioncube-loader.x86_64 0:4.2.1-1.ius.el6 will be installed
---> Package php54-ldap.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-litespeed.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-mbstring.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-mcrypt.x86_64 0:5.4.4-1.ius.el6 will be installed
--> Processing Dependency: libmcrypt.so.4()(64bit) for package: php54-mcrypt-5.4.4-1.ius.el6.x86_64
--> Processing Dependency: libltdl.so.7()(64bit) for package: php54-mcrypt-5.4.4-1.ius.el6.x86_64
---> Package php54-mssql.x86_64 0:5.4.4-1.ius.el6 will be installed
--> Processing Dependency: libsybdb.so.5()(64bit) for package: php54-mssql-5.4.4-1.ius.el6.x86_64
---> Package php54-mysql.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-mysqlnd.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-odbc.x86_64 0:5.4.4-1.ius.el6 will be installed
--> Processing Dependency: libodbc.so.2()(64bit) for package: php54-odbc-5.4.4-1.ius.el6.x86_64
---> Package php54-pdo.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-pear.noarch 1:1.9.4-1.ius.el6 will be installed
---> Package php54-pecl-apc.x86_64 0:3.1.10-1.ius.el6 will be installed
---> Package php54-pecl-geoip.x86_64 0:1.0.8-2.ius.el6 will be installed
--> Processing Dependency: libGeoIP.so.1()(64bit) for package: php54-pecl-geoip-1.0.8-2.ius.el6.x86_64
---> Package php54-pecl-memcache.x86_64 0:3.0.6-4.ius.el6 will be installed
---> Package php54-pecl-xdebug.x86_64 0:2.2.0-2.ius.el6 will be installed
---> Package php54-pgsql.x86_64 0:5.4.4-1.ius.el6 will be installed
--> Processing Dependency: libpq.so.5()(64bit) for package: php54-pgsql-5.4.4-1.ius.el6.x86_64
---> Package php54-pgsql84.x86_64 0:5.4.3-1.ius.el6 will be installed
---> Package php54-process.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-pspell.x86_64 0:5.4.4-1.ius.el6 will be installed
--> Processing Dependency: libpspell.so.15()(64bit) for package: php54-pspell-5.4.4-1.ius.el6.x86_64
--> Processing Dependency: libaspell.so.15()(64bit) for package: php54-pspell-5.4.4-1.ius.el6.x86_64
---> Package php54-recode.x86_64 0:5.4.4-1.ius.el6 will be installed
--> Processing Dependency: librecode.so.0()(64bit) for package: php54-recode-5.4.4-1.ius.el6.x86_64
---> Package php54-snmp.x86_64 0:5.4.4-1.ius.el6 will be installed
--> Processing Dependency: net-snmp for package: php54-snmp-5.4.4-1.ius.el6.x86_64
--> Processing Dependency: libnetsnmp.so.20()(64bit) for package: php54-snmp-5.4.4-1.ius.el6.x86_64
---> Package php54-soap.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-tidy.x86_64 0:5.4.4-1.ius.el6 will be installed
--> Processing Dependency: libtidy-0.99.so.0()(64bit) for package: php54-tidy-5.4.4-1.ius.el6.x86_64
---> Package php54-xcache.x86_64 0:2.0.0-1.ius.el6 will be installed
---> Package php54-xml.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-xmlrpc.x86_64 0:5.4.4-1.ius.el6 will be installed
--> Running transaction check
---> Package aspell.x86_64 12:0.60.6-12.el6 will be installed
---> Package autoconf.noarch 0:2.63-5.1.el6 will be installed
---> Package automake.noarch 0:1.11.1-4.el6 will be installed
---> Package enchant.x86_64 1:1.5.0-4.el6 will be installed
---> Package libXpm.x86_64 0:3.5.10-2.el6 will be installed
---> Package libc-client.x86_64 0:2007e-11.el6 will be installed
---> Package libicu.x86_64 0:4.2.1-9.1.el6_2 will be installed
---> Package libtidy.x86_64 0:0.99.0-19.20070615.1.el6 will be installed
---> Package libtool-ltdl.x86_64 0:2.2.6-15.5.el6 will be installed
---> Package net-snmp.x86_64 1:5.5-44.el6 will be installed
--> Processing Dependency: libsensors.so.4()(64bit) for package: 1:net-snmp-5.5-44.el6.x86_64
---> Package net-snmp-libs.x86_64 1:5.5-44.el6 will be installed
---> Package php54-interbase.x86_64 0:5.4.4-1.ius.el6 will be installed
--> Processing Dependency: libfbclient.so.2()(64bit) for package: php54-interbase-5.4.4-1.ius.el6.x86_64
---> Package php54-mcrypt.x86_64 0:5.4.4-1.ius.el6 will be installed
--> Processing Dependency: libmcrypt.so.4()(64bit) for package: php54-mcrypt-5.4.4-1.ius.el6.x86_64
---> Package php54-mssql.x86_64 0:5.4.4-1.ius.el6 will be installed
--> Processing Dependency: libsybdb.so.5()(64bit) for package: php54-mssql-5.4.4-1.ius.el6.x86_64
---> Package php54-pecl-geoip.x86_64 0:1.0.8-2.ius.el6 will be installed
--> Processing Dependency: libGeoIP.so.1()(64bit) for package: php54-pecl-geoip-1.0.8-2.ius.el6.x86_64
---> Package postgresql-libs.x86_64 0:8.4.13-1.el6_3 will be installed
---> Package recode.x86_64 0:3.6-28.1.el6 will be installed
---> Package t1lib.x86_64 0:5.1.2-6.el6_2.1 will be installed
---> Package unixODBC.x86_64 0:2.2.14-12.el6_3 will be installed
--> Running transaction check
---> Package lm_sensors-libs.x86_64 0:3.1.1-17.el6 will be installed
---> Package php54-interbase.x86_64 0:5.4.4-1.ius.el6 will be installed
--> Processing Dependency: libfbclient.so.2()(64bit) for package: php54-interbase-5.4.4-1.ius.el6.x86_64
---> Package php54-mcrypt.x86_64 0:5.4.4-1.ius.el6 will be installed
--> Processing Dependency: libmcrypt.so.4()(64bit) for package: php54-mcrypt-5.4.4-1.ius.el6.x86_64
---> Package php54-mssql.x86_64 0:5.4.4-1.ius.el6 will be installed
--> Processing Dependency: libsybdb.so.5()(64bit) for package: php54-mssql-5.4.4-1.ius.el6.x86_64
---> Package php54-pecl-geoip.x86_64 0:1.0.8-2.ius.el6 will be installed
--> Processing Dependency: libGeoIP.so.1()(64bit) for package: php54-pecl-geoip-1.0.8-2.ius.el6.x86_64
--> Processing Conflict: php54-mysql-5.4.4-1.ius.el6.x86_64 conflicts php54-mysqlnd
--> Processing Conflict: php54-pgsql84-5.4.3-1.ius.el6.x86_64 conflicts php54-pgsql
--> Processing Conflict: php54-xcache-2.0.0-1.ius.el6.x86_64 conflicts php54-pecl-apc
--> Running transaction check
---> Package libtool-ltdl.x86_64 0:2.2.6-15.5.el6 will be installed
--> Processing Dependency: libltdl.so.7()(64bit) for package: unixODBC-2.2.14-12.el6_3.x86_64
---> Package php54-interbase.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-mcrypt.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-mssql.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-mysql.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-pecl-geoip.x86_64 0:1.0.8-2.ius.el6 will be installed
---> Package php54-pgsql84.x86_64 0:5.4.3-1.ius.el6 will be installed
---> Package php54-xcache.x86_64 0:2.0.0-1.ius.el6 will be installed
--> Running transaction check
---> Package libtool-ltdl.x86_64 0:2.2.6-15.5.el6 will be installed
---> Package php54-odbc.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package unixODBC.x86_64 0:2.2.14-12.el6_3 will be installed
--> Running transaction check
---> Package aspell.x86_64 12:0.60.6-12.el6 will be installed
---> Package autoconf.noarch 0:2.63-5.1.el6 will be installed
---> Package automake.noarch 0:1.11.1-4.el6 will be installed
---> Package enchant.x86_64 1:1.5.0-4.el6 will be installed
---> Package libXpm.x86_64 0:3.5.10-2.el6 will be installed
---> Package libc-client.x86_64 0:2007e-11.el6 will be installed
---> Package libicu.x86_64 0:4.2.1-9.1.el6_2 will be installed
---> Package libtidy.x86_64 0:0.99.0-19.20070615.1.el6 will be installed
---> Package lm_sensors-libs.x86_64 0:3.1.1-17.el6 will be installed
---> Package net-snmp.x86_64 1:5.5-44.el6 will be installed
---> Package net-snmp-libs.x86_64 1:5.5-44.el6 will be installed
---> Package php54.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-bcmath.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-cli.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-common.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-dba.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-devel.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-embedded.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-enchant.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-fpm.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-gd.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-imap.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-intl.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-ioncube-loader.x86_64 0:4.2.1-1.ius.el6 will be installed
---> Package php54-ldap.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-litespeed.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-mbstring.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-mysqlnd.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-pdo.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-pear.noarch 1:1.9.4-1.ius.el6 will be installed
---> Package php54-pecl-apc.x86_64 0:3.1.10-1.ius.el6 will be installed
---> Package php54-pecl-memcache.x86_64 0:3.0.6-4.ius.el6 will be installed
---> Package php54-pecl-xdebug.x86_64 0:2.2.0-2.ius.el6 will be installed
---> Package php54-pgsql.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-process.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-pspell.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-recode.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-snmp.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-soap.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-tidy.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-xml.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package php54-xmlrpc.x86_64 0:5.4.4-1.ius.el6 will be installed
---> Package postgresql-libs.x86_64 0:8.4.13-1.el6_3 will be installed
---> Package recode.x86_64 0:3.6-28.1.el6 will be installed
---> Package t1lib.x86_64 0:5.1.2-6.el6_2.1 will be installed
--> Finished Dependency Resolution
 
Packages skipped because of dependency problems:
libtool-ltdl-2.2.6-15.5.el6.x86_64 from rhui-us-west-2-rhel-server-releases
php54-interbase-5.4.4-1.ius.el6.x86_64 from rightscale-epel
php54-mcrypt-5.4.4-1.ius.el6.x86_64 from rightscale-epel
php54-mssql-5.4.4-1.ius.el6.x86_64 from rightscale-epel
php54-mysql-5.4.4-1.ius.el6.x86_64 from rightscale-epel
php54-odbc-5.4.4-1.ius.el6.x86_64 from rightscale-epel
php54-pecl-geoip-1.0.8-2.ius.el6.x86_64 from rightscale-epel
php54-pgsql84-5.4.3-1.ius.el6.x86_64 from rightscale-epel
php54-xcache-2.0.0-1.ius.el6.x86_64 from rightscale-epel
unixODBC-2.2.14-12.el6_3.x86_64 from rhui-us-west-2-rhel-server-releases
 
Dependencies Resolved
 
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
php54 x86_64 5.4.4-1.ius.el6 rightscale-epel 2.5 M
php54-bcmath x86_64 5.4.4-1.ius.el6 rightscale-epel 22 k
php54-cli x86_64 5.4.4-1.ius.el6 rightscale-epel 2.4 M
php54-common x86_64 5.4.4-1.ius.el6 rightscale-epel 850 k
php54-dba x86_64 5.4.4-1.ius.el6 rightscale-epel 33 k
php54-devel x86_64 5.4.4-1.ius.el6 rightscale-epel 2.4 M
php54-embedded
x86_64 5.4.4-1.ius.el6 rightscale-epel 1.2 M
php54-enchant x86_64 5.4.4-1.ius.el6 rightscale-epel 14 k
php54-fpm x86_64 5.4.4-1.ius.el6 rightscale-epel 1.2 M
php54-gd x86_64 5.4.4-1.ius.el6 rightscale-epel 114 k
php54-imap x86_64 5.4.4-1.ius.el6 rightscale-epel 51 k
php54-intl x86_64 5.4.4-1.ius.el6 rightscale-epel 96 k
php54-ioncube-loader
x86_64 4.2.1-1.ius.el6 rightscale-epel 596 k
php54-ldap x86_64 5.4.4-1.ius.el6 rightscale-epel 31 k
php54-litespeed
x86_64 5.4.4-1.ius.el6 rightscale-epel 1.2 M
php54-mbstring
x86_64 5.4.4-1.ius.el6 rightscale-epel 905 k
php54-mysqlnd x86_64 5.4.4-1.ius.el6 rightscale-epel 233 k
php54-pdo x86_64 5.4.4-1.ius.el6 rightscale-epel 91 k
php54-pear noarch 1:1.9.4-1.ius.el6
rightscale-epel 380 k
php54-pecl-apc
x86_64 3.1.10-1.ius.el6
rightscale-epel 96 k
php54-pecl-memcache
x86_64 3.0.6-4.ius.el6 rightscale-epel 52 k
php54-pecl-xdebug
x86_64 2.2.0-2.ius.el6 rightscale-epel 106 k
php54-pgsql x86_64 5.4.4-1.ius.el6 rightscale-epel 82 k
php54-process x86_64 5.4.4-1.ius.el6 rightscale-epel 33 k
php54-pspell x86_64 5.4.4-1.ius.el6 rightscale-epel 13 k
php54-recode x86_64 5.4.4-1.ius.el6 rightscale-epel 8.2 k
php54-snmp x86_64 5.4.4-1.ius.el6 rightscale-epel 29 k
php54-soap x86_64 5.4.4-1.ius.el6 rightscale-epel 192 k
php54-tidy x86_64 5.4.4-1.ius.el6 rightscale-epel 27 k
php54-xml x86_64 5.4.4-1.ius.el6 rightscale-epel 142 k
php54-xmlrpc x86_64 5.4.4-1.ius.el6 rightscale-epel 42 k
Installing for dependencies:
aspell x86_64 12:0.60.6-12.el6
rhui-us-west-2-rhel-server-releases 648 k
autoconf noarch 2.63-5.1.el6 rhui-us-west-2-rhel-server-releases 781 k
automake noarch 1.11.1-4.el6 rhui-us-west-2-rhel-server-releases 550 k
enchant x86_64 1:1.5.0-4.el6 rhui-us-west-2-rhel-server-releases 49 k
libXpm x86_64 3.5.10-2.el6 rhui-us-west-2-rhel-server-releases 51 k
libc-client x86_64 2007e-11.el6 rhui-us-west-2-rhel-server-releases-optional
515 k
libicu x86_64 4.2.1-9.1.el6_2 rhui-us-west-2-rhel-server-releases 4.9 M
libtidy x86_64 0.99.0-19.20070615.1.el6
rhui-us-west-2-rhel-server-releases 127 k
lm_sensors-libs
x86_64 3.1.1-17.el6 rhui-us-west-2-rhel-server-releases 38 k
net-snmp x86_64 1:5.5-44.el6 rhui-us-west-2-rhel-server-releases 303 k
net-snmp-libs x86_64 1:5.5-44.el6 rhui-us-west-2-rhel-server-releases 1.5 M
postgresql-libs
x86_64 8.4.13-1.el6_3 rhui-us-west-2-rhel-server-releases 200 k
recode x86_64 3.6-28.1.el6 rhui-us-west-2-rhel-server-releases-optional
714 k
t1lib x86_64 5.1.2-6.el6_2.1 rhui-us-west-2-rhel-server-releases 160 k
Skipped (dependency problems):
libtool-ltdl x86_64 2.2.6-15.5.el6 rhui-us-west-2-rhel-server-releases 44 k
php54-interbase
x86_64 5.4.4-1.ius.el6 rightscale-epel 69 k
php54-mcrypt x86_64 5.4.4-1.ius.el6 rightscale-epel 22 k
php54-mssql x86_64 5.4.4-1.ius.el6 rightscale-epel 37 k
php54-mysql x86_64 5.4.4-1.ius.el6 rightscale-epel 108 k
php54-odbc x86_64 5.4.4-1.ius.el6 rightscale-epel 49 k
php54-pecl-geoip
x86_64 1.0.8-2.ius.el6 rightscale-epel 13 k
php54-pgsql84 x86_64 5.4.3-1.ius.el6 rightscale-epel 57 k
php54-xcache x86_64 2.0.0-1.ius.el6 rightscale-epel 80 k
unixODBC x86_64 2.2.14-12.el6_3 rhui-us-west-2-rhel-server-releases 378 k
 
Transaction Summary
================================================================================
Install 45 Package(s)
 
Total download size: 26 M
Installed size: 94 M
Is this ok [y/N]: y
Downloading Packages:
(1/45): aspell-0.60.6-12.el6.x86_64.rpm | 648 kB 00:00
(2/45): autoconf-2.63-5.1.el6.noarch.rpm | 781 kB 00:00
(3/45): automake-1.11.1-4.el6.noarch.rpm | 550 kB 00:00
(4/45): enchant-1.5.0-4.el6.x86_64.rpm | 49 kB 00:00
(5/45): libXpm-3.5.10-2.el6.x86_64.rpm | 51 kB 00:00
(6/45): libc-client-2007e-11.el6.x86_64.rpm | 515 kB 00:00
(7/45): libicu-4.2.1-9.1.el6_2.x86_64.rpm | 4.9 MB 00:00
(8/45): libtidy-0.99.0-19.20070615.1.el6.x86_64.rpm | 127 kB 00:00
(9/45): lm_sensors-libs-3.1.1-17.el6.x86_64.rpm | 38 kB 00:00
(10/45): net-snmp-5.5-44.el6.x86_64.rpm | 303 kB 00:00
(11/45): net-snmp-libs-5.5-44.el6.x86_64.rpm | 1.5 MB 00:00
(12/45): php54-5.4.4-1.ius.el6.x86_64.rpm | 2.5 MB 00:01
(13/45): php54-bcmath-5.4.4-1.ius.el6.x86_64.rpm | 22 kB 00:00
(14/45): php54-cli-5.4.4-1.ius.el6.x86_64.rpm | 2.4 MB 00:01
(15/45): php54-common-5.4.4-1.ius.el6.x86_64.rpm | 850 kB 00:00
(16/45): php54-dba-5.4.4-1.ius.el6.x86_64.rpm | 33 kB 00:00
(17/45): php54-devel-5.4.4-1.ius.el6.x86_64.rpm | 2.4 MB 00:00
(18/45): php54-embedded-5.4.4-1.ius.el6.x86_64.rpm | 1.2 MB 00:00
(19/45): php54-enchant-5.4.4-1.ius.el6.x86_64.rpm | 14 kB 00:00
(20/45): php54-fpm-5.4.4-1.ius.el6.x86_64.rpm | 1.2 MB 00:01
(21/45): php54-gd-5.4.4-1.ius.el6.x86_64.rpm | 114 kB 00:00
(22/45): php54-imap-5.4.4-1.ius.el6.x86_64.rpm | 51 kB 00:00
(23/45): php54-intl-5.4.4-1.ius.el6.x86_64.rpm | 96 kB 00:00
(24/45): php54-ioncube-loader-4.2.1-1.ius.el6.x86_64.rpm | 596 kB 00:01
(25/45): php54-ldap-5.4.4-1.ius.el6.x86_64.rpm | 31 kB 00:00
(26/45): php54-litespeed-5.4.4-1.ius.el6.x86_64.rpm | 1.2 MB 00:01
(27/45): php54-mbstring-5.4.4-1.ius.el6.x86_64.rpm | 905 kB 00:00
(28/45): php54-mysqlnd-5.4.4-1.ius.el6.x86_64.rpm | 233 kB 00:00
(29/45): php54-pdo-5.4.4-1.ius.el6.x86_64.rpm | 91 kB 00:00
(30/45): php54-pear-1.9.4-1.ius.el6.noarch.rpm | 380 kB 00:00
(31/45): php54-pecl-apc-3.1.10-1.ius.el6.x86_64.rpm | 96 kB 00:00
(32/45): php54-pecl-memcache-3.0.6-4.ius.el6.x86_64.rpm | 52 kB 00:00
(33/45): php54-pecl-xdebug-2.2.0-2.ius.el6.x86_64.rpm | 106 kB 00:00
(34/45): php54-pgsql-5.4.4-1.ius.el6.x86_64.rpm | 82 kB 00:00
(35/45): php54-process-5.4.4-1.ius.el6.x86_64.rpm | 33 kB 00:00
(36/45): php54-pspell-5.4.4-1.ius.el6.x86_64.rpm | 13 kB 00:00
(37/45): php54-recode-5.4.4-1.ius.el6.x86_64.rpm | 8.2 kB 00:00
(38/45): php54-snmp-5.4.4-1.ius.el6.x86_64.rpm | 29 kB 00:00
(39/45): php54-soap-5.4.4-1.ius.el6.x86_64.rpm | 192 kB 00:00
(40/45): php54-tidy-5.4.4-1.ius.el6.x86_64.rpm | 27 kB 00:00
(41/45): php54-xml-5.4.4-1.ius.el6.x86_64.rpm | 142 kB 00:00
(42/45): php54-xmlrpc-5.4.4-1.ius.el6.x86_64.rpm | 42 kB 00:00
(43/45): postgresql-libs-8.4.13-1.el6_3.x86_64.rpm | 200 kB 00:00
(44/45): recode-3.6-28.1.el6.x86_64.rpm | 714 kB 00:00
(45/45): t1lib-5.1.2-6.el6_2.1.x86_64.rpm | 160 kB 00:00
--------------------------------------------------------------------------------
Total 1.1 MB/s | 26 MB 00:22
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : php54-common-5.4.4-1.ius.el6.x86_64 1/45
Installing : php54-pdo-5.4.4-1.ius.el6.x86_64 2/45
Installing : php54-cli-5.4.4-1.ius.el6.x86_64 3/45
Installing : php54-5.4.4-1.ius.el6.x86_64 4/45
Installing : 1:php54-pear-1.9.4-1.ius.el6.noarch 5/45
Installing : lm_sensors-libs-3.1.1-17.el6.x86_64 6/45
Installing : 1:net-snmp-libs-5.5-44.el6.x86_64 7/45
Installing : autoconf-2.63-5.1.el6.noarch 8/45
Installing : automake-1.11.1-4.el6.noarch 9/45
Installing : 1:net-snmp-5.5-44.el6.x86_64 10/45
Installing : libc-client-2007e-11.el6.x86_64 11/45
Installing : libtidy-0.99.0-19.20070615.1.el6.x86_64 12/45
Installing : libXpm-3.5.10-2.el6.x86_64 13/45
Installing : recode-3.6-28.1.el6.x86_64 14/45
Installing : libicu-4.2.1-9.1.el6_2.x86_64 15/45
Installing : 1:enchant-1.5.0-4.el6.x86_64 16/45
Installing : postgresql-libs-8.4.13-1.el6_3.x86_64 17/45
Installing : t1lib-5.1.2-6.el6_2.1.x86_64 18/45
Installing : 12:aspell-0.60.6-12.el6.x86_64 19/45
Installing : php54-pspell-5.4.4-1.ius.el6.x86_64 20/45
Installing : php54-gd-5.4.4-1.ius.el6.x86_64 21/45
Installing : php54-pgsql-5.4.4-1.ius.el6.x86_64 22/45
Installing : php54-enchant-5.4.4-1.ius.el6.x86_64 23/45
Installing : php54-intl-5.4.4-1.ius.el6.x86_64 24/45
Installing : php54-recode-5.4.4-1.ius.el6.x86_64 25/45
Installing : php54-tidy-5.4.4-1.ius.el6.x86_64 26/45
Installing : php54-imap-5.4.4-1.ius.el6.x86_64 27/45
Installing : php54-snmp-5.4.4-1.ius.el6.x86_64 28/45
Installing : php54-devel-5.4.4-1.ius.el6.x86_64 29/45
Installing : php54-pecl-xdebug-2.2.0-2.ius.el6.x86_64 30/45
Installing : php54-pecl-memcache-3.0.6-4.ius.el6.x86_64 31/45
Installing : php54-pecl-apc-3.1.10-1.ius.el6.x86_64 32/45
Installing : php54-ioncube-loader-4.2.1-1.ius.el6.x86_64 33/45
Installing : php54-mysqlnd-5.4.4-1.ius.el6.x86_64 34/45
Installing : php54-litespeed-5.4.4-1.ius.el6.x86_64 35/45
Installing : php54-xml-5.4.4-1.ius.el6.x86_64 36/45
Installing : php54-fpm-5.4.4-1.ius.el6.x86_64 37/45
Installing : php54-bcmath-5.4.4-1.ius.el6.x86_64 38/45
Installing : php54-dba-5.4.4-1.ius.el6.x86_64 39/45
Installing : php54-mbstring-5.4.4-1.ius.el6.x86_64 40/45
Installing : php54-ldap-5.4.4-1.ius.el6.x86_64 41/45
Installing : php54-embedded-5.4.4-1.ius.el6.x86_64 42/45
Installing : php54-xmlrpc-5.4.4-1.ius.el6.x86_64 43/45
Installing : php54-soap-5.4.4-1.ius.el6.x86_64 44/45
Installing : php54-process-5.4.4-1.ius.el6.x86_64 45/45
Verifying : php54-tidy-5.4.4-1.ius.el6.x86_64 1/45
Verifying : php54-imap-5.4.4-1.ius.el6.x86_64 2/45
Verifying : php54-litespeed-5.4.4-1.ius.el6.x86_64 3/45
Verifying : php54-pecl-xdebug-2.2.0-2.ius.el6.x86_64 4/45
Verifying : php54-xml-5.4.4-1.ius.el6.x86_64 5/45
Verifying : php54-intl-5.4.4-1.ius.el6.x86_64 6/45
Verifying : 12:aspell-0.60.6-12.el6.x86_64 7/45
Verifying : php54-mysqlnd-5.4.4-1.ius.el6.x86_64 8/45
Verifying : php54-pecl-memcache-3.0.6-4.ius.el6.x86_64 9/45
Verifying : php54-fpm-5.4.4-1.ius.el6.x86_64 10/45
Verifying : php54-bcmath-5.4.4-1.ius.el6.x86_64 11/45
Verifying : php54-pgsql-5.4.4-1.ius.el6.x86_64 12/45
Verifying : automake-1.11.1-4.el6.noarch 13/45
Verifying : php54-dba-5.4.4-1.ius.el6.x86_64 14/45
Verifying : 1:net-snmp-libs-5.5-44.el6.x86_64 15/45
Verifying : php54-common-5.4.4-1.ius.el6.x86_64 16/45
Verifying : t1lib-5.1.2-6.el6_2.1.x86_64 17/45
Verifying : php54-pdo-5.4.4-1.ius.el6.x86_64 18/45
Verifying : php54-ioncube-loader-4.2.1-1.ius.el6.x86_64 19/45
Verifying : autoconf-2.63-5.1.el6.noarch 20/45
Verifying : php54-mbstring-5.4.4-1.ius.el6.x86_64 21/45
Verifying : php54-recode-5.4.4-1.ius.el6.x86_64 22/45
Verifying : postgresql-libs-8.4.13-1.el6_3.x86_64 23/45
Verifying : php54-snmp-5.4.4-1.ius.el6.x86_64 24/45
Verifying : php54-5.4.4-1.ius.el6.x86_64 25/45
Verifying : php54-cli-5.4.4-1.ius.el6.x86_64 26/45
Verifying : 1:enchant-1.5.0-4.el6.x86_64 27/45
Verifying : php54-ldap-5.4.4-1.ius.el6.x86_64 28/45
Verifying : php54-embedded-5.4.4-1.ius.el6.x86_64 29/45
Verifying : php54-pspell-5.4.4-1.ius.el6.x86_64 30/45
Verifying : libicu-4.2.1-9.1.el6_2.x86_64 31/45
Verifying : php54-pecl-apc-3.1.10-1.ius.el6.x86_64 32/45
Verifying : recode-3.6-28.1.el6.x86_64 33/45
Verifying : php54-gd-5.4.4-1.ius.el6.x86_64 34/45
Verifying : libXpm-3.5.10-2.el6.x86_64 35/45
Verifying : php54-xmlrpc-5.4.4-1.ius.el6.x86_64 36/45
Verifying : libtidy-0.99.0-19.20070615.1.el6.x86_64 37/45
Verifying : lm_sensors-libs-3.1.1-17.el6.x86_64 38/45
Verifying : php54-soap-5.4.4-1.ius.el6.x86_64 39/45
Verifying : php54-process-5.4.4-1.ius.el6.x86_64 40/45
Verifying : libc-client-2007e-11.el6.x86_64 41/45
Verifying : 1:php54-pear-1.9.4-1.ius.el6.noarch 42/45
Verifying : php54-devel-5.4.4-1.ius.el6.x86_64 43/45
Verifying : 1:net-snmp-5.5-44.el6.x86_64 44/45
Verifying : php54-enchant-5.4.4-1.ius.el6.x86_64 45/45
 
Installed:
php54.x86_64 0:5.4.4-1.ius.el6
php54-bcmath.x86_64 0:5.4.4-1.ius.el6
php54-cli.x86_64 0:5.4.4-1.ius.el6
php54-common.x86_64 0:5.4.4-1.ius.el6
php54-dba.x86_64 0:5.4.4-1.ius.el6
php54-devel.x86_64 0:5.4.4-1.ius.el6
php54-embedded.x86_64 0:5.4.4-1.ius.el6
php54-enchant.x86_64 0:5.4.4-1.ius.el6
php54-fpm.x86_64 0:5.4.4-1.ius.el6
php54-gd.x86_64 0:5.4.4-1.ius.el6
php54-imap.x86_64 0:5.4.4-1.ius.el6
php54-intl.x86_64 0:5.4.4-1.ius.el6
php54-ioncube-loader.x86_64 0:4.2.1-1.ius.el6
php54-ldap.x86_64 0:5.4.4-1.ius.el6
php54-litespeed.x86_64 0:5.4.4-1.ius.el6
php54-mbstring.x86_64 0:5.4.4-1.ius.el6
php54-mysqlnd.x86_64 0:5.4.4-1.ius.el6
php54-pdo.x86_64 0:5.4.4-1.ius.el6
php54-pear.noarch 1:1.9.4-1.ius.el6
php54-pecl-apc.x86_64 0:3.1.10-1.ius.el6
php54-pecl-memcache.x86_64 0:3.0.6-4.ius.el6
php54-pecl-xdebug.x86_64 0:2.2.0-2.ius.el6
php54-pgsql.x86_64 0:5.4.4-1.ius.el6
php54-process.x86_64 0:5.4.4-1.ius.el6
php54-pspell.x86_64 0:5.4.4-1.ius.el6
php54-recode.x86_64 0:5.4.4-1.ius.el6
php54-snmp.x86_64 0:5.4.4-1.ius.el6
php54-soap.x86_64 0:5.4.4-1.ius.el6
php54-tidy.x86_64 0:5.4.4-1.ius.el6
php54-xml.x86_64 0:5.4.4-1.ius.el6
php54-xmlrpc.x86_64 0:5.4.4-1.ius.el6
 
Dependency Installed:
aspell.x86_64 12:0.60.6-12.el6
autoconf.noarch 0:2.63-5.1.el6
automake.noarch 0:1.11.1-4.el6
enchant.x86_64 1:1.5.0-4.el6
libXpm.x86_64 0:3.5.10-2.el6
libc-client.x86_64 0:2007e-11.el6
libicu.x86_64 0:4.2.1-9.1.el6_2
libtidy.x86_64 0:0.99.0-19.20070615.1.el6
lm_sensors-libs.x86_64 0:3.1.1-17.el6
net-snmp.x86_64 1:5.5-44.el6
net-snmp-libs.x86_64 1:5.5-44.el6
postgresql-libs.x86_64 0:8.4.13-1.el6_3
recode.x86_64 0:3.6-28.1.el6
t1lib.x86_64 0:5.1.2-6.el6_2.1
 
Skipped (dependency problems):
libtool-ltdl.x86_64 0:2.2.6-15.5.el6
php54-interbase.x86_64 0:5.4.4-1.ius.el6
php54-mcrypt.x86_64 0:5.4.4-1.ius.el6
php54-mssql.x86_64 0:5.4.4-1.ius.el6
php54-mysql.x86_64 0:5.4.4-1.ius.el6
php54-odbc.x86_64 0:5.4.4-1.ius.el6
php54-pecl-geoip.x86_64 0:1.0.8-2.ius.el6
php54-pgsql84.x86_64 0:5.4.3-1.ius.el6
php54-xcache.x86_64 0:2.0.0-1.ius.el6
unixODBC.x86_64 0:2.2.14-12.el6_3
 
Complete!

4. Check & confirm PHP version

[root@ip-10-252-81-32 nordin]# php -v
PHP 5.4.4 (cli) (built: Jun 14 2012 17:30:51)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
with the ionCube PHP Loader v4.2.1, Copyright (c) 2002-2012, by ionCube Ltd., and
with Xdebug v2.2.0, Copyright (c) 2002-2012, by Derick Rethans

Yeay! my current PHP version is PHP5.4.4 🙂

Optional Step 5. I wanted my default timezone to be “Asia/Kuala_Lumpur”, so I’ve made an adjustment to date.timezone :-

[root@ip-10-252-81-32 nordin]# vi /etc/php.ini
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = "Asia/Kuala_Lumpur"

** DONE **

Source from : http://ithelpblog.com/os/linux/redhat/centos-redhat/howto-install-or-upgrade-php-5-4-on-centos-6-3-or-redhat-6-3-rhel/

Leave a Reply

Your email address will not be published. Required fields are marked *

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑