Step 6: Updating PHP
First we need to go to the yum.repos.d directory by issuing this command
[root@localhost ~]# cd /etc/yum.repos.d
We then have to save the centos-Testing.repo to the yum.repos.d directory by installing it from the centos website
Please note: This command is case sensitive and all one line
[root@localhost yum.repos.d]# wget http://dev.centos.org/centos/5/CentOS-Testing.repo
Now we need to update all the php modules. When prompted by each command “is this ok” type y and press enter.
Please note: some may be up to date so you will get an output of “no packages marked for update”
[root@localhost yum.repos.d]# yum –enablerepo=c5-testing update php
[root@localhost yum.repos.d]# yum –enablerepo=c5-testing update mysql
[root@localhost yum.repos.d]# yum –enablerepo=c5-testing update php-mysql
[root@localhost yum.repos.d]# yum –enablerepo=c5-testing update php-gd
[root@localhost yum.repos.d]# yum –enablerepo=c5-testing update php-mbstring
[root@localhost yum.repos.d]# yum –enablerepo=c5-testing update httpd






