怎样升级Kloxo控制面板里面PHP

Posted by zuzhihui in 控制面板 on 2013/11/21 with 1 Comment

怎样升级Kloxo控制面板里面PHP?我们提供的vps的Kloxo控制面板集成的PHP版本是5.2.6,本文介绍怎样升级到PHP 5.3和php5.4

升级到5.3

wget http://dl.iuscommunity.org/pub/ius/stable/CentOS/5/i386/ius-release-1.0-11.ius.centos5.noarch.rpm
wget http://dl.iuscommunity.org/pub/ius/stable/CentOS/5/i386/epel-release-5-4.noarch.rpm
rpm -ivh epel-release-5-4.noarch.rpm ius-release-1.0-11.ius.centos5.noarch.rpm
yum -y remove php php-common
yum -y install php53u php53u-cli php53u-devel php53u-gd php53u-imap php53u-mbstring php53u-mcrypt php53u-mysql php53u-pdo php53u-pear php53u-xml

升级到5.4

wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
wget http://rpms.famillecollet.com/el5.i386/remi-release-5-9.el5.remi.noarch.rpm
rpm -ivh remi-release-5-9.el5.remi.noarch.rpm epel-release-5-4.noarch.rpm
yum –enablerepo=remi install php-mbstring php-mhash php-mcrypt

另外修改下my.cnf注释掉下面3个配置
#skip-locking
#skip-bdb
#skip-innodb

1 Comment

1234 on 2014/02/24  · 

升级到5.4
yum –enablerepo=remi install php-mbstring php-mhash php-mcrypt
Error getting repository data for remi, repository not found
怎么解决?

Leave a Comment

Back to Top

2007-2013 © 北京瑞豪开源科技有限公司 京ICP备13004995号-2