Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
server-administration:upgrade-centos-4-to-5 [2012-09-27 23:55:17]
shaun.reitan
server-administration:upgrade-centos-4-to-5 [2014-02-11 02:08:30]
shaun.reitan
Line 1: Line 1:
-===== Upgrading CentOS 4.x to 5.x =====+===== Upgrading CentOS 32bit 4.x to 32bit 5.x =====
  
 We have found the following guide very useful in this process. This works for both dedicated servers as well as VPS nodes: We have found the following guide very useful in this process. This works for both dedicated servers as well as VPS nodes:
 +
 +==== cPanel Servers ====
 +If your server has cPanel installed you first need to remove filesystem from the exclude line in /etc/yum.conf.  If you don't the yum upgrade procedures below will fail.
 +
  
 ==== Setting file attributes ==== ==== Setting file attributes ====
Line 29: Line 33:
 </code> </code>
  
-==== Ensure CentOS 4.x is the latest and greatest ====+==== Ensure CentOS 4.x is up-to-date ====
  
 <code console> <code console>
Line 65: Line 69:
 yum clean all yum clean all
 yum upgrade yum upgrade
 +</code>
 +
 +==== Fix RPM System ====
 +
 +<code console>
 rm -f /var/lib/rpm/__db.00* rm -f /var/lib/rpm/__db.00*
 rpm --rebuilddb rpm --rebuilddb
 +rpm -Uvh --force http://vault.centos.org/5.0/os/i386/CentOS/python-elementtree-1.2.6-5.i386.rpm http://vault.centos.org/5.0/os/i386/CentOS/python-sqlite-1.1.7-1.2.1.i386.rpm
 yum clean all yum clean all
 </code> </code>
 +
 +==== One Last Upgrade ====
 +
 +<code console>
 +yum upgrade
 +</code>
 +
 +==== cPanel Servers Only ====
 +
 +The filesystem and perl excludes have to be removed from the /etc/yum.conf otherwise you will see dependency issues.
 +
 +Once the upgrade has completed you will need to do the following so that the cPanel/WHM software picks up the version change.
 +
 +<code console>
 +rm -f /var/cpanel/sysinfo.config
 +/scripts/gensysinfo
 +/scripts/upcp --force
 +/scripts/mysqlup --force
 +/scripts/easyapache --build
 +</code>
 +
 +
 +
 +
  
 {{tag>centos guide cpanel}} {{tag>centos guide cpanel}}