懒人的点子,去哪里找CentOS 的php5.2安装包

CentOS 测试仓库
http://dev.centos.org/centos/

Oracle Enterprise Linux
http://oss.oracle.com/projects/php/files/

个人还是倾向于使用CentOS 测试仓库
这样更简单
建立这个文件
/etc/yum.repos.d/CentOS-Testing.repo

# CentOS-Testing:
# !!!! CAUTION !!!!
# This repository is a proving grounds for packages on their way to CentOSPlus and CentOS Extras.
# They may or may not replace core CentOS packages, and are not guaranteed to function properly.
# These packages build and install, but are waiting for feedback from testers as to
# functionality and stability. Packages in this repository will come and go during the
# development period, so it should not be left enabled or used on production systems without due
# consideration.
[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

如果你只想升级测试仓库的PHP,那么最好加上
includepkgs=php*

防止意外升级了其他组件。
默认的repo文件在这里: http://dev.centos.org/centos/5/CentOS-Testing.repo
呵呵,我是懒人