登录博客一看wp出了3.2版本,但对php版本要求高了,得升级

对linux初学者的我来说又得靠linux高手及搜索引擎了。

这次打算直接升级最新版本的php,网上有N多重复最终找到了一个,先拿韩国的测试看看升级

yum install httpd

yum remove php php-*

yum install yum-priorities

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm

rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/i386/ius-release-1.0-6.ius.el5.noarch.rpm

yum install -y php53u-pear php53u php53u-cli php53u-common php53u-devel php53u-gd php53u-mbstring php53u-mcrypt php53u-mysql php53u-pdo php53u-soap php53u-xml php53u-xmlrpc php53u-bcmath php53u-snmp

升级成功 但这个是32位系统

在国内的服务器,64位系统测试结果,

file /usr/lib64/php/modules/xsl.so from install of php53u-xml-5.3.6-1.ius.el5.x86_64 conflicts with file from package php-xml-5.1.6-27.el5_5.3.x86_64

出现类似这样的错误一堆

使用以下方法成功升级centos5.6升级php5.3.6

yum install httpd

yum remove php*

yum install yum-priorities

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

rpm -Uvh http://mirrors.sohu.com/fedora-epel/5/x86_64/epel-release-5-4.noarch.rpm

rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1.0-6.ius.el5.noarch.rpm

rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1.0-10.ius.el5.noarch.rpm

yum install -y php53u-pear php53u php53u-cli php53u-common php53u-devel php53u-gd php53u-mbstring php53u-mcrypt php53u-mysql php53u-pdo php53u-soap php53u-xml php53u-xmlrpc php53u-bcmath php53u-snmp

如果成功的话使用

service httpd restart

重新启动apache就可以了

发表回复