SOLVED yum not working and php upgrade

rhm.geerts

Well-Known Member
Jul 29, 2008
147
15
68
Maastricht
cPanel Access Level
Root Administrator
A friend of mine rented a cpanel server a long time ago somewhere, but that is still running Centos 5.11 final.
Centos went end of life march 31st, but I thought end of support would be a bit later.

However we got 2 questions now.
1.) If trying to do anything with yum, the following error occurs:
Code:
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. Invalid release/
removing mirrorlist with no valid mirrors: /var/cache/yum/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base
This is probably due to the fact that 5.x went end of life.
Is there a way around this or to fix this so we still can use yum to install centos 5 packages?
I tried to do a yum clean all and enabling basurl in the Centos-Base.repo but this did not help.

2.) Very soon my friend needs to upgrade from php 5.3 (yeah tool old too) to version 5.6.
It this still possible via Easyapache with yum not working anymore?
Or is this working some other way and can Easyapache being used like always?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello,

The following thread will help you update the YUM mirrors on CentOS 5:

CentOS, CloudLinux RHEL 5 - End of Life Notice

You can't use EasyApache 4 on CentOS 5, however EasyApache 3 will continue to function on the system.

Thank you.
 
  • Like
Reactions: rhm.geerts

rhm.geerts

Well-Known Member
Jul 29, 2008
147
15
68
Maastricht
cPanel Access Level
Root Administrator
Thank you very much for the quick reply.
I change my CentOS-Vault.repo to what the post in the link said and disabled the Base repo.
Now yum works again, great!

As for EasyApache, we are using EasyApache 3 so we don't need to worry.

Now I have to get my friend to update server and os soon. ;)

Thank you! Solved!
 
  • Like
Reactions: cPanelMichael

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
I'm happy to see that thread helped. Thank you for updating us with the outcome.