Question

How to upgrade CentOS 6.8 x64 to Cent OS 7.6 x64

I am using CentOS 6.8 x64 and vesta CP. Now I need to update my OS to Cent OS 7.6 x64 as I need to update my PHP version.

Now, Is there any way to upgrade **CentOS 6.8 x64 to Cent OS 7.6 x64 ** without losing any files or settings? Or I have to do it manually? Please be noted that I have around 5+ sites hosted in my Current system.

Please suggest to me a possible solution so that I can upgrade CentOS 6.8 x64 to Cent OS 7.6 x64


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
January 3, 2021
Accepted Answer

Hi there @shariar4you,

There is no official upgrade procedure for CentOS 6 to CentOS 7.

What you would need to do is set up a new CentOS 7 server, then configure it so that it matches your current server setup, and finally migrate your websites from the old CentOS 6 server to the new CentOS 7 server.

Once all of the sites have been migrated and tested on the new server, you can shut down the old one and then delete it once you are sure that it is no longer needed.

Regards, Bobby

alexdo
Site Moderator
Site Moderator badge
January 3, 2021

Hello, @shariar4you

There is no officially supported upgrade from CentOS 6 to 7 at all.

For a brief period around 7.0 time there was a vaguely working utility but it never worked very well and was prone to errors. Once 7.1 came along even that stopped working and has never worked since and never will.

You will need to spin up a new droplet and then migrate your data from the old server over to the new CentOS 7 droplet.

If you run any websites you can migrate them to the new server and test them using hosts file before switching the DNS over in order to make sure that everything is working as expected.

Hope that this helps! Regards, Alex

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel