Installing LAMP Part 2

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

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s