Scotech Scotech
Knowledge Base
[ Home | KB | Tools | Requests? ]


PHP 5.x and MySQL 5.x on CentOS 4.x


There's no easy way to upgrade CentOS 4 to 5, so if you want to run a newer version of PHP and MySQL, this is what you will need to do.

vi /etc/yum.repos.d/CentOS-Base.repo
#-----
[base]
exclude=http* mysql* php*
[update]
exclude=http* mysql* php*
[centosplus]
enabled=1
exclude=kernel*
#-----

With yum configured, it's time to upgrade.

rpm -e php-domxml
yum upgrade php
yum check-update
yum update *

Depending on what packages are also included in the centosplus repo, you may want to make additional excludes in the base to make sure you don't override them during future updates.

- Scotech



[ Home | KB | Tools | Email: info@scotech.com ]

© 1996-2010 Scotech. All rights reserved.