CentOSのPHPパッケージは古いのですが、ソースからインストールはあまりしたくありません。かといって、自分でビルドするのも。。。
という方は別のYUMリポジトリからインストールするのが簡単で良いでしょう。
[remi][epel]リポジトリの追加
# wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
--2010-04-30 18:27:29-- http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
Resolving download.fedora.redhat.com... 209.132.183.67
Connecting to download.fedora.redhat.com|209.132.183.67|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11989 (12K) [application/x-rpm]
Saving to: `epel-release-5-3.noarch.rpm'
100%[==================================================>] 11,989 --.-K/s in 0.05s
2010-04-30 18:27:29 (252 KB/s) - `epel-release-5-3.noarch.rpm' saved [11989/11989]
# wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
--2010-04-30 18:27:40-- http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
Resolving rpms.famillecollet.com... 88.191.60.189
Connecting to rpms.famillecollet.com|88.191.60.189|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4855 (4.7K) [application/x-rpm]
Saving to: `remi-release-5.rpm'
100%[====================================================>] 4,855 28.2K/s in 0.2s
2010-04-30 18:27:40 (28.2 KB/s) - `remi-release-5.rpm' saved [4855/4855]
# rpm -ivh remi-release-5*.rpm epel-release-5*.rpm
warning: remi-release-5.rpm: Header V4 DSA signature: NOKEY, key ID 00f97f56
warning: epel-release-5-3.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 217521f6
Preparing... ########################################### [100%]
1:epel-release ########################################### [ 50%]
2:remi-release ########################################### [100%]
リポジトリを有効にしてインストール
yum --enablerepo=remi,epel -y install php
私はサードパーティーのリポジトリは基本的に無効にしてあるのですが、yum-priorityなどで優先度を設定しておいたり、除外パターンを書いたりと、人によって違うと思いますので、後は管理し易い様にリポジトリを設定してください。