Saved by the bell (Vultr)

For limited time Vultr give you $50 free credit . Use this link to get the offer.

One of my client dedicated server crash due to electrical failure. They want the service run as soon as possible.

The problem is their service run with old centos 5 because they use old php 5.2 for the web based app. New version of app is not ready yet. Still baked by the programmer teams.

Vultr come to rescue by providing custom iso service. They let us using iso simply by providing link to the iso then mounting the iso then reboot to start install.

For my case, I use 64 bit iso 5.11 from centos vault here.

Get yum update work on centos 5.11

nano /etc/yum.repos.d/CentOS-Base.repo

put these lines :

[base]

name=CentOS-$releasever - Base
baseurl=http://vault.centos.org/5.11/os/x86_64/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

[updates]

name=CentOS-$releasever - Updates
baseurl=http://vault.centos.org/5.11/updates/x86_64/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

[extras]

name=CentOS-$releasever - Extras
baseurl=http://vault.centos.org/5.11/extras/x86_64/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

[centosplus]

name=CentOS-$releasever - Plus
baseurl=http://vault.centos.org/5.11/centosplus//x86_64/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

[contrib]

name=CentOS-$releasever - Contrib
baseurl=http://vault.centos.org/5.11/contrib/x86_64/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

yum clean all

yum update

For php 5.2.17 section I use this guide.