CentOS 5.x 安装 PHP 5.2.x

发布者:站点默认
2011/11/2 浏览数(1,535) 分类:CentOS/RockyLinux, PHP CentOS 5.x 安装 PHP 5.2.x已关闭评论

通过yum来安装php的版本是5.1.6,现在很多站点都是在5.2.x上开发的,所以我们要添加其他的yum repo,以下yum repo提供有php5.2.10(另有一篇文章《CentOS 5.6安装php5.2.17》):

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 install php

<完>

点击返回顶部
  1. 留言
  2. 联系方式