centos5.4安装好后通过yum来安装php的版本是5.1.6,现在很多站点都是在5.2.x上开发的
今天安装wordpress一个插件也同样遇到提示php版本要5.2x以上
找了很久找到一个官方的一个test repo里面有php5.2.x,安装centos官方的我表示很放心,有木有….
首先, vi /etc/yum.repos.d/CentOS-Testing.repo
再将下面内容粘贴进去,保存退出
[c5-testing]
name=CentOS-5 Testing
baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
priority=1
完成….直接用 yum update php 就可以直接升级了
发表回复