1、環境の確認
$ cat /etc/redhat-release CentOS release 6.3 (Final)
2、PHP5.3系の確認
# rpm -qa | grep php php-common-5.3.3-27.el6_5.x86_64 php-cli-5.3.3-27.el6_5.x86_64 php-5.3.3-27.el6_5.x86_64
3、PHP5.3の削除
# yum erase php*
4、epelとremiレポジトリの追加(64bit版)
# rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm # rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
5、yumで追加
yum install php --enablerepo=remi
6、確認
# rpm -qa | grep php php-cli-5.4.24-1.el6.remi.x86_64 php-common-5.4.24-1.el6.remi.x86_64 php-5.4.24-1.el6.remi.x86_64 # php -v PHP 5.4.24 (cli) (built: Jan 9 2014 07:32:12) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
以上