yum remove php* yum install php53
普通に上記でphp53をインストールしたら、下記のようなエラーで悩まされる。
yum-plugin-replaceをインストールしてあげると上手くいきます。
# yum install php-pecl-memcache ・ ・ ・ php53-common-5.3.3-1.el5_6.1.x86_64 from updates has depsolving problems --> php53-common conflicts with php-common Error: php53-common conflicts with php-common You could try using --skip-broken to work around the problem You could try running: package-cleanup --problems package-cleanup --dupes rpm -Va --nofiles --nodigest The program package-cleanup is found in the yum-utils package.
yum remove php53*
yum intall php-devel
# wget http://ftp-srv2.kddilabs.jp/Linux/distributions/fedora/epel/5/x86_64/epel-release-5-4.noarch.rpm # rpm -ivh epel-release-5-4.noarch.rpm # vi /etc/yum.repos.d/epel.repo 6 enabled=1 ↓ 6 enabled=0
# wget http://ftp-srv2.kddilabs.jp/Linux/distributions/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
# yum --enablerepo=epel install yum-plugin-replace
# wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1.0-11.ius.el5.noarch.rpm # rpm -ivh ius-release-1.0-11.ius.el5.noarch.rpm # vi /etc/yum.repos.d/epel.repo 6 enabled=1 ↓ 6 enabled=0
# yum --enablerepo=ius replace php --replace-with php53u
# yum --enablerepo=ius install php53u-pecl-memcache