josue
By:
josue

How to fix cPanel after restore a droplet from snapshot

February 13, 2017 660 views
DigitalOcean Server Optimization CentOS

Hi, im trying to move my current droplet into a new droplet with a new IP address, i currently have 2 droplets with 2 different projects, and i would like to create a "bigger" droplet where both can work together, the problem is that when i create the new droplet and restore the snapshot cPanel is no longer accesible and have a lot of issues, when i log into WHM, i change the IP for the new ip address, but seems to broke my site anyway. and i still dont know why.

2 Answers

Can you be more specific besides "broke my site"? Did you update the DNS?

  • Hi Woet, i ended up by increasing the size of 1 of my droplets, and migrate my other project to the bigger droplet, thanks for your answer, what was happening is that my site was that i wasn't able to see my site, just blank page, and an internal 500 error.

    • What do the error logs say?

      • thanks for trying to help, i dont have the logs anymore, i decided to migrate my project 2 into my project 1 server, and it worked easier than creating a new droplet.

@josue

Since cPanel/WHM is licensed directly to the public IP of your Droplet, creating a snapshot and then restoring to a new Droplet is most likely going to result in licensing errors or an environment that just does not work (as you've indicated) unless you end up with the exact same IP (which is possible, but not guaranteed -- it's also random, so you have no control over it).

That said, when it comes to migrating the best way to handle this is:

1). Setup a new Droplet and get a temporary license, if possible**.

2). Use the built-in migration utility to migrate from one server to another.

3). Modify your DNS accordingly and then test to make sure it's working.

4). If the DNS is a go, take a snapshot of the old Droplet and destroy it.

** In regards to #1, a temporary license is only possible if that IP has never had a temporary license or a cPanel installation on it. If it has, you'd need to purchase a second license and then cancel your first after successful migration.

  • This is actually what i did recently in other server i had... and it worked much better... but cpanel version and mysql version should match between installations if possible

Have another answer? Share your knowledge.