Upgrade to centos 7 without reinstall

Alexander1974

Verified User
Joined
Mar 28, 2017
Messages
13
Location
Rotterdam
Hello dear people,

I have a server running on centos 6 with directadmin and all my websites and it is time to update to centos 7.
Is there a way to do this without reinstall everything?

Just update the centos version?

Kind regards
Alex
 

juansann

New member
Joined
Sep 16, 2019
Messages
1
Hello,

I am thinking about migrate to CentOS 7 and I don't know if I reinstall it, when I migrate users I will have any problem or I will loose the users. I will contract a new VPS and install CentOS 7 and migrate it. If all is ok I will halt old server and if I have problems I will be using the old server ;)
 

urgido

Verified User
Joined
Oct 28, 2008
Messages
335
I recommend to you reinstall CentOS because many years ago I did an upgrade on fly and the result not was succesuful. (CentOS 5 to 6)
 

Richard G

Verified User
Joined
Jul 6, 2008
Messages
4,217
Location
Maastricht
Upgrading is not advisable, but you're talking about migrating.
So doing a new Centos 7 installation an a new VPS and when finished, installing Directadmin on there and migrate your users. This can be done via admin backup/transfer.

You want to know if you will have any problem or loose users.
You won't loose users normally when transferring them all to the new VPS. As said, admin backup/transfer is normally a preferred way to do this.

However, things can change. To prevent certain issues occuring, it's best you match versions of what you're using on the old and new vps from Mysql/MariaDB and PHP.
You can install a newer version of php, but older scripts of customers could loose their functionality then, so check this before.

It's also possible to migrate the users from the old server Mysql to new vps with Mariadb, but you have to check versions!!! For example, if the old VPS is running mysql 5.7, it's wise to have MariaDB 10.2 running on the new server.

Most safe way of migrating is to have MySQL and PHP versions the same on the old an new VPS and if needed convert or upgrade them afterwards.
 
Top