Live Chat

Domain Scan

(empty)

Login


Migrate Your Website to Register.lk with No Downtime
(04-jul-2024)

Migrating website to Register.lk with no downtime

Migrating your website to Register.lk ensures that you benefit from reliable hosting services, a free SSL certificate, expert support, and superior performance. Whether you're looking to improve your website's speed, enhance its security, or take advantage of our comprehensive hosting solutions, Register.lk makes the migration process seamless and efficient. In this guide, we will walk you through the essential steps to migrate your site to Register.lk with no downtime, ensuring a smooth transition that keeps your website live and accessible throughout. Follow these simple steps to ensure a hassle-free migration and enjoy the full benefits of hosting with Register.lk.

Follow these simple steps to ensure a smooth transition:

Step 1: Purchase a Hosting Package with Register.lk

Before you begin the migration, you need a hosting package with us. If you already have one, you're set to go. If not, you can easily purchase a suitable hosting package from our hosting plans page.

Step 2: Create a Full cPanel Backup

From your current hosting provider, create a full cPanel backup. This should include all your website files, databases, and emails. Here's how you can do it:
  1. Log into your current hosting provider's cPanel.
  2. Go to the "Files" section. There you will be able to find the option "Backup".
  3. Find the Backup option under the Files section in your cPanel
  4. Select "Download a Full Backup" and follow the prompts to generate and download the backup file.
  5. Download a Full Backup by clicking on the option Download a Full Backup

Step 3: Upload the Backup to Register.lk's cPanel

Now it's time to upload the backup to your new hosting account with us:
  1. Log into your Register.lk cPanel. You can log in to the cPanel from your register.lk account or simply enter your domain '/cpanel' (yourdomain.com/cpanel).
  2. Go to the "Files" section. There you will be able to find the "File Manager" click on it.
  3. Find the File Manager option under the Files section in your cPanel
  4. Then the cPanel File Manager will open up on a new tab.
  5. The cPanel File Manager
  6. Create a folder named backup and navigate to it.
  7. Create a new folder named 'Backup'
  8. Upload the compressed backup file inside the backup folder that you newly created.
  9. Go inside to the newly created backup folder Upload the compressed backup file to the file manager
  10. Extract the uploaded backup file inside the backup folder.
  11. Extract the uploaded backup file
  12. Now you will be able to see the compressed backup file and the extracted backup folder.
  13. You will be able to see the compressed and the extracted backup files
  14. Navigate to the .../homedir/public_html folder inside the extracted backup folder. Move the files inside the .../homedir/public_html folder to the /public_html folder in the current hosting cPanel.
  15. Open the extracted backup file and open the homedir folder Click on the public_html folder in your backup folder Click on the Select all button and right click and Move the Files to the public_html folder in your cPanel
  16. Check the correct destination and click on "Move Files".
  17. Check the path that you want to move your files and click on the Move button (The path must be '/public_html')
  18. Navigate to the .../homedir/mail/yourdomain.com folder and move the files inside the mail/yourdomain.com folder (You may Select All of the files and move them as you did previously) to the /mail/yourdomain.com folder in the current hosting cPanel.
  19. Navigate to mail folder in your backup file Move the files inside homedir/mail/yourdomainname folder to mail/yourdomainname Check the correct folder path and click on move (The folder path must be /mail/yourdomainname)
  20. Navigate to the .../homedir/etc/yourdomain.com folder and move all the files inside to the /etc/yourdomain.com folder in the current hosting cPanel.
  21. Finally, navigate to the .../mysql folder and download the .sql file/s (database). Then go to the cPanel > Backup > Restore a MySQL Database Backup section and upload the downloaded .sql file/s.
  22. Download the .sql files in your backup files Restore it on the cPanel > Backup > Restore a MySQL Database Backup Upload The .sql files under the Restore a MySQL Database Backup option
  23. Go to the cPanel > MySQL Databases section and get the uploaded database name.
  24. Go to the cPanel > File Manager > public_html > wp_config.php file, open up the file in editor mode (Right click on the file and click on Edit). There you will be able to find the details of the databases.
  25. If the database name is different, replace it with the new database name. The Database name in the wp-config.php file and the database name in the MySQL Databases should be the same. If they are not, you may rename them.
  26. Get the database username and password from the file and create a database user in cPanel > MySQL Databases under Add New User (the database details in cPanel > MySQL Databases and the details of the relevant database in the wp-config.php file need to be similar).
  27. Then select the database and user under Add User to Database section and add user permission to the database.
Note: If your website was developed for an older PHP version, make sure to get it from the old hosting and update it in cPanel > MultiPHP Manager in our hosting cPanel.

Step 4: Update the Nameservers

The next step is to update your domain's nameservers to point to Register.lk. This is crucial for the propagation process.

Why Update Nameservers Last?
When you update the nameservers, your domain starts pointing to our servers. If the backup isn't uploaded yet, your website will not be available, resulting in downtime. By ensuring the backup is in place first, you minimize any disruption, allowing your site to be live and accessible as soon as the DNS changes propagate.

If you have purchased the domain from Register.lk, you can follow the steps below to update your nameservers. If your domain is registered with another provider, you will need to contact them to update the nameservers for your domain.
  1. Log into your domain register.lk account.
  2. Click on "Domains" and "My Domains". Then click on the dropdown button in front of the domain that you want to update the nameservers.
  3. Click on "Use custom nameservers" and replace the existing nameservers with the ones provided by Register.lk for your hosting.
  4. Save the changes.
The propagation process can take from a few minutes to 24 hours, though it is usually quicker. During this time, your website's traffic will gradually move to the new hosting environment.

Final Steps

Once the nameserver propagation process is completed, check whether the site is loading correctly and verify the restored files. If everything is functioning properly, you can terminate your previous hosting package.

Final Thoughts

Migrating your site to Register.lk ensures you benefit from our reliable hosting services, a free SSL, expert support, and superior performance. Follow these steps carefully to ensure a smooth transition with no downtime.

If you have any questions or need assistance at any point during the process, our support team is here to help. You can chat with one of our support agents and resolve any issues through the LiveChat or through the Phone.


Written by: Register.lk Support Hero - Tharik
BACK 2 BLOG