In this tutorial we’ll share the easiest method to migrate your wordpress website from cpanel hosting to DigitalOcean SSD cloud server VPS, this can be easily done by using serverpilot (serverilot is kind of cpanel for vps).
Tutorial on Migrating Existing WordPress Website and Database to DigitalOcean Droplet Using Serverpilot
Step #1 : First Of all you have to create a droplet (Server) On DigitalOcean (watch below provided 15 sec video tutorial) to do so (make sure at least select 10$ droplet option otherwise wordpress will not work)
Step #3 : Now you have to create a new app on serverpilot. Follow this tutorial.
Step #4 : After that create new database in serverpilot for your new app (remember its username and password) & make sure to name it as existing database name, otherwise you’ll not be able to import database existing database into it.
Example : if your existing database named as devilhax-wp_1 then you’ll create new database using server pilot with the same name as devilhax-wp_1
Step #5 : Now login into your existing shared cpanel hosting > go to file manager > and download all WordPress existing files and folders from files to your (public directory)
Step # 6 : After that you’ll have to upload all existing wordpress files to digitalocean server (in public directory) using SFTP Client i Prefer WinSCP SFTP Client.
Step # 7 : after moving all existing wordpress files edit > wp-config.php “file” (the one present on DigitalOcean). change database password and username with the new username and password for database created with serverpilot in step #4. and also change mysql hostname as localhost
Step # 8 : Save changes made to “wp-config.php” > Now export your old wordpress database using phpmyadmin present on your cpanel hosting. Follow this tutorial.
Step # 10 : Now you have to Change existing domain nameservers (Follow this tutorial). but before changing name servers login into your domain registrar “account” and check your zone file for any existing A record “if there is any existing A record” remove that A record and create a new one and point it to your droplet (server IP address)
(godaddy settings example for pointing domain)
Step # 11 : Login into DigitalOcean.com and Click DNS tab. and add your domain > after that create zone file. below provided screenshot will give you an idea.
(godaddy DNS settings On DigitalOcean example for pointing domain to droplet)
That’s it you have successfully migrated your wordpress website from shared or cpanel hosting to DigitalOcean VPS “if you still have any problem let me know via commenting below”. 🙂