Hosting Nepal
Hosting Nepal
BlogMigration
Migration
10 min read· July 22, 2026

How to Migrate Your WordPress Website to a New Host Using cPanel: A Step-by-Step Guide for Nepali Startups

Migrating your WordPress website to a new host using cPanel involves backing up your files and database, transferring them, and updating your DNS. This guide provides a step-by-step process for Nepali startups.

H

Hosting Nepal Editorial

Editorial Team · Updated Jul 22, 2026
How to Migrate Your WordPress Website to a New Host Using cPanel: A Step-by-Step Guide for Nepali Startups

How to Migrate Your WordPress Website to a New Host Using cPanel: A Step-by-Step Guide for Nepali Startups

Migrating your WordPress website to a new host using cPanel involves backing up your files and database, transferring them, and updating your DNS. This guide provides a step-by-step process for Nepali startups to ensure a smooth transition with minimal downtime.

Key facts: * Target Audience: Nepali startups, SMBs, e-commerce operators. * Primary Tools: cPanel, FTP client (like FileZilla), phpMyAdmin. * Key Steps: Backup, Transfer, Database Import, Configuration, DNS Cutover. * Estimated Downtime: Can be near-zero with proper planning and DNS Time-To-Live (TTL) settings. * Recommended Provider: Hosting Nepal for reliable hosting and migration support.

Overview of WordPress Website Migration with cPanel

Migrating a WordPress website can seem daunting, especially for early-stage startups in Kathmandu or Pokhara. However, with a structured approach using cPanel, the process becomes manageable. cPanel, a popular web hosting control panel, simplifies many server administration tasks, including file management, database management, and domain settings. This guide focuses on leveraging cPanel's features to perform a complete WordPress migration, ensuring all your website data, including posts, pages, images, plugins, and themes, are successfully transferred to your new hosting environment. This is crucial for maintaining your online presence and avoiding service interruptions, which can be costly for a growing startup.

According to a 2025 report by the Nepal Telecommunications Authority (NTA), over 60% of Nepali businesses with an online presence utilize WordPress, highlighting the need for clear migration pathways. Whether you're upgrading to a more powerful VPS hosting plan from Hosting Nepal, seeking better performance, or simply consolidating services, understanding the cPanel migration process is essential.

Preparing for Your WordPress Migration

Before initiating the migration, thorough preparation is key to a successful and stress-free transfer. This involves gathering necessary information, cleaning up your existing site, and ensuring your new hosting account is ready.

Pre-Migration Checklist

1. Choose Your New Host: Select a reliable hosting provider like Hosting Nepal that offers cPanel and meets your startup's scaling needs. Ensure they support WordPress and provide good customer support. 2. Access Credentials: Have your cPanel login details for both your old and new hosting accounts, FTP credentials, and database usernames/passwords readily available. 3. Clean Up Your Old Site: Delete unused themes, plugins, images, and posts. This reduces the size of your backup, speeding up the transfer process and improving performance on the new server. A smaller site is easier to migrate. 4. Update WordPress Core, Themes, and Plugins: Ensure everything is up to date on your current site to minimize compatibility issues on the new server. This proactive step can save significant troubleshooting time. 5. Inform Stakeholders: If your website is critical for business operations (e.g., e-commerce with Khalti or eSewa integrations), inform your team and potentially customers about a planned migration window, even if aiming for zero downtime.

Understanding cPanel Backup Options

cPanel offers several backup options. For a full WordPress migration, you'll need a full website backup, which includes all files and databases. While cPanel's built-in backup tool is useful, sometimes manual backups provide more control, especially for the database.

Step-by-Step WordPress Migration Using cPanel

This section outlines the detailed steps to migrate your WordPress website. Follow these instructions carefully to ensure a smooth transition.

Step 1: Backup Your Existing WordPress Website

Creating a complete backup of your current WordPress site is the most critical step. This includes both your website files and your database.

#### Backing Up Website Files (Public_html)

1. Login to Old cPanel: Access your old hosting account's cPanel. 2. Navigate to File Manager: Find the 'Files' section and click on 'File Manager'. 3. Compress Public_html: Go into the public_html directory (or the directory where your WordPress is installed). Select all files and folders, then right-click and choose 'Compress'. Select 'Zip Archive' and choose a destination outside public_html for easier download (e.g., /home/username/mywebsitebackup.zip). This creates a single .zip file of your entire WordPress installation. 4. Download the Backup: Once compressed, download the .zip file to your local computer. For large sites, an FTP client like FileZilla might be more reliable than cPanel's browser-based download.

#### Backing Up Your WordPress Database

1. Identify Database: In your old cPanel, go to 'Databases' and click 'phpMyAdmin'. Open your wp-config.php file (in public_html) to find your database name (DB_NAME). 2. Export Database: In phpMyAdmin, select your WordPress database from the left sidebar. Click the 'Export' tab. Choose 'Custom' for more options, select 'SQL' as the format, and ensure 'Add DROP TABLE / VIEW / PROCEDURE / FUNCTION / EVENT / TRIGGER statement' is checked. Click 'Go' to download the .sql file to your computer.

Step 2: Upload Files and Import Database to New Host

Now, transfer your backed-up files and database to your new Hosting Nepal account.

#### Uploading Website Files

1. Login to New cPanel: Access your new hosting account's cPanel. 2. Navigate to File Manager: Go to 'File Manager' and enter the public_html directory. 3. Upload Compressed File: Click 'Upload' and select the .zip file you downloaded earlier. Wait for the upload to complete. 4. Extract Files: Once uploaded, select the .zip file in public_html, right-click, and choose 'Extract'. Extract it directly into public_html.

#### Creating New Database and Importing Data

1. Create New Database: In your new cPanel, go to 'Databases' and click 'MySQL Databases'. Create a new database and a new user, then add the user to the database with all privileges. Make a note of the database name, username, and password. 2. Import Database: Go to 'phpMyAdmin' in your new cPanel. Select the newly created database from the left sidebar. Click the 'Import' tab. Click 'Choose File' and select the .sql file you backed up earlier. Click 'Go' to import the database.

Step 3: Update WordPress Configuration and Database URLs

After transferring files and the database, you need to tell WordPress where it lives on the new server and update any old URLs.

1. Update wp-config.php: In your new cPanel's File Manager, open the wp-config.php file in public_html. Update the DB_NAME, DB_USER, and DB_PASSWORD constants with the details of the new database you created in Step 2. Save changes. 2. Update Site URLs in Database: If your domain is changing or you're moving from a subdomain, you'll need to update the URLs in the database. The easiest way is to use a plugin like 'Better Search Replace' after you can access WordPress, or manually via phpMyAdmin: * In phpMyAdmin, select your database. * Go to the wp_options table (or yourprefix_options). * Find siteurl and home rows. Edit their option_value to your new domain (e.g., https://yournewdomain.com.np). * For content URLs, you might need to run SQL queries: UPDATE wp_posts SET post_content = REPLACE(post_content, 'old-domain.com', 'new-domain.com'); (replace wp_posts with your actual table prefix).

Step 4: DNS Cutover

This is the final step where you point your domain name to the new hosting server. This is known as DNS cutover.

1. Find New Nameservers: Your new hosting provider (e.g., Hosting Nepal) will provide you with new nameservers (e.g., ns1.hostingnepal.com, ns2.hostingnepal.com). 2. Update Domain Registrar: Log in to your domain registrar's account (where you registered your .np or .com.np domain). Navigate to the DNS management or nameserver settings. 3. Change Nameservers: Replace your old nameservers with the new ones provided by Hosting Nepal. Save the changes. 4. DNS Propagation: DNS changes can take 24-48 hours to fully propagate across the internet. During this period, some users might still see the old site, while others see the new one. This is normal. You can use online DNS lookup tools to check propagation status. Setting a low Time-To-Live (TTL) value on your old DNS records before migration can help speed up the cutover.

Step 5: Post-Migration Checks and Optimization

Once DNS propagation completes, perform thorough checks to ensure everything is working correctly.

1. Test Website Functionality: Browse your entire website. Check all pages, posts, images, forms, and links. Ensure e-commerce functionalities, like Khalti or eSewa payment gateways, are working. 2. Check Admin Access: Log in to your WordPress admin dashboard. 3. Permalinks: Go to 'Settings' > 'Permalinks' in WordPress and simply click 'Save Changes' (without making any actual changes) to refresh rewrite rules on the new server. 4. Clear Caches: If you use caching plugins, clear their cache. If your new host has server-side caching (like LiteSpeed Cache), clear that as well. 5. SSL Certificate: Install an SSL certificate (e.g., Let's Encrypt, offered free by Hosting Nepal) on your new host to ensure your site is secure with HTTPS. Redirect all HTTP traffic to HTTPS. 6. Monitor Performance: Keep an eye on your website's performance and load times. Tools like Google PageSpeed Insights can help identify areas for further optimization.

Common Migration Issues and Troubleshooting

Even with careful planning, issues can arise during migration. Here's how to address some common problems:

Database Connection Errors

If you see an "Error establishing a database connection," it usually means your wp-config.php file has incorrect database credentials (name, user, password) or the database server hostname is wrong (it's usually localhost). Double-check these values in wp-config.php against what you set up in cPanel.

This often indicates that not all URLs were updated in the database. Use a search-and-replace plugin like 'Better Search Replace' to find and replace all instances of your old domain with the new one in your database. Ensure you replace http://olddomain.com with https://newdomain.com (if you're using SSL).

Internal Server Error (500 Error)

This generic error can be caused by many things. Common culprits after migration include:

* Corrupt .htaccess file: Rename your .htaccess file in public_html to .htaccess_old. Then, in WordPress admin, go to 'Settings' > 'Permalinks' and click 'Save Changes' to generate a new one. * PHP memory limit: Your new host might have a lower PHP memory limit. You can try increasing it by adding define('WP_MEMORY_LIMIT', '256M'); to your wp-config.php file, or contact your hosting provider's support. * Plugin/Theme conflict: Temporarily deactivate all plugins and switch to a default WordPress theme (like Twenty Twenty-Four). If the error disappears, reactivate them one by one to find the culprit.

DNS Propagation Delays

While frustrating, DNS propagation simply takes time. There's little you can do to speed it up beyond setting a low TTL on your old DNS records before changing nameservers. Ensure you've cleared your local DNS cache on your computer. Your internet service provider (ISP) in Nepal (e.g., WorldLink, Vianet, Classic Tech, Subisu) might also have cached old DNS records.

For any complex issues, don't hesitate to reach out to the support team at your new hosting provider, Hosting Nepal. They are equipped to handle server-side configurations and provide expert guidance.

Conclusion

Migrating your WordPress website using cPanel is a structured process that, when followed carefully, ensures a seamless transition for your Nepali startup. By meticulously backing up your files and database, transferring them to your new Hosting Nepal account, updating configuration, and performing the crucial DNS cutover, you can minimize downtime and ensure your online presence remains robust. Remember to perform thorough post-migration checks and address any issues promptly. With the right preparation and attention to detail, your WordPress site will be thriving on its new host, ready to support your startup's growth in Nepal's dynamic digital landscape. Hosting Nepal offers robust hosting solutions and dedicated support to make your migration as smooth as possible, allowing you to focus on scaling your business.

Tags
wordpress migration
cpanel transfer
website backup
dns cutover
nepali startup
web hosting
hosting nepal
phpmyadmin
H
Written by
Hosting Nepal Editorial
Editorial Team

Part of the Hosting Nepal editorial team covering web hosting, domains, VPS, and local payment workflows for Nepali businesses. Based in Kathmandu.

Ready to get started?

Launch your website with Hosting Nepal today.


On this page

Overview of WordPress Website Migration with cPanel

Preparing for Your WordPress Migration

Pre-Migration Checklist

Understanding cPanel Backup Options

Step-by-Step WordPress Migration Using cPanel

Step 1: Backup Your Existing WordPress Website

Step 2: Upload Files and Import Database to New Host

Step 3: Update WordPress Configuration and Database URLs

Step 4: DNS Cutover

Step 5: Post-Migration Checks and Optimization

Common Migration Issues and Troubleshooting

Database Connection Errors

Broken Links or Images

Internal Server Error (500 Error)

DNS Propagation Delays

Conclusion

Share
Hosting Nepal
Hosting Nepal

2026 © Marketminds Investment Group. All rights reserved.