由于5.2不是 centos 6.x 的标配。如果要php 5.2的话,就需要手动安装。这里使用atomic 软件源 来通过rpm包方式centos 6.5 下安装php 5.2。
yum install httpd
#http://www6.atomicorp.com/channels/atomic/centos/6/i386/RPMS/atomic-release-1.0-18.el6.art.noarch.rpm
rpm -Uvh atomic-release-1.0-18.el6.art.noarch.rpm
yum install libjpeg*
#http://www6.atomicorp.com/channels/atomic/centos/6/x86_64/RPMS/libmcrypt-2.5.7-5.el6.art.x86_64.rpm
rpm -ivh libmcrypt-2.5.7-5.el6.art.x86_64.rpm
yum install libX11-devel
yum install libXpm-devel
yum install freetype-devel
yum install libpng-devel
yum install t1lib-5.1.2-6.el6_2.1.x86_64
yum install libc-client-2007e-11.el6.art.x86_64
yum install mhash-0.9.9.9-3.el6.art.x86_64
yum install atomic-php52-php-pdo
yum install unixODBC-2.2.14-12.el6_3.x86_64
yum install libxslt-1.1.26-2.el6_3.1.x86_64
yum install atomic-php52-php
rpm -ivh atomic-php52-php-mbstring-5.2.17-3.el6.x86_64.rpm
rpm -ivh atomic-php52-php*
http://snippetinfo.net/media/117