CustomBuild 2.x on CentOS 5.x after EOL

dino

New member
Joined
Jun 21, 2017
Messages
1
I'm sure that some of use may not or cannot upgrade from CentOS 5 to newer version because of many many reason.
Here is what you should do to at least upgrade DA from CustomBuild 1.x to CustomBuild 2.x

After many trial & error on my server. Here is some guideline to successfully upgrade to CustomBuild 2.x

Note### After you upgrade your DA to CustomBuild 2.x, the minimum version are:
- Apache 2.4
- PHP 5.3

1) update your yum repo file from using mirrors list (Which are no longer exist) to using Archive Repository
Code:
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the 
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=http://vault.centos.org/$releasever.11/os/$basearch
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#released updates 
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
baseurl=http://vault.centos.org/$releasever.11/updates/$basearch
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
baseurl=http://vault.centos.org/$releasever.11/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
baseurl=http://vault.centos.org/$releasever.11/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
baseurl=http://mirror.centos.org/$releasever.11/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
2) fixed the libexpat.so issue by following article
HTML:
https://help.directadmin.com/item.php?id=174
3) following the CustomBuild 2.x upgrade article
HTML:
https://help.directadmin.com/item.php?id=555

I've tested above method on CentOS 5.6, 5.7 & 5.11 both 32-bit and 64-bit kernel

For whom that manually install nginx as front end web server. Make sure that you remove it and make a change in options.conf as per article
HTML:
https://help.directadmin.com/item.php?id=556

If you wish to install 2 versions of php, it's now possible to have it. Following this article
HTML:
http://forum.directadmin.com/showthread.php?t=44743
, Section 6

I'm not sure if LetsEncrypt is work or not. I'll post the update once I've tested it.

Hope this help....
 
Good overview for people that still are forced to use CentOS. I don't think you will get SNI working out of the box without doing "weird" stuff to get SNI/Let's Encrypt working.
 
I've got CentOS 5 with Let's Encrypt working. It omits SNI support with a default OpenSSL though.
 
Back
Top