Hosting Nepal
Hosting Nepal
BlogMigration
Migration
10 min read· May 9, 2026

How to Migrate Your WordPress Website with cPanel: A Step-by-Step Guide for Nepali E-commerce

Migrating your WordPress website with cPanel in Nepal is a straightforward process when you follow the right steps. This guide covers essential backup, transfer, and DNS cutover procedures for a seamless transition, especially for e-commerce sites using Khalti and eSewa.

H

Hosting Nepal Editorial

Editorial Team · Updated May 31, 2026 · 7 views
How to Migrate Your WordPress Website with cPanel: A Step-by-Step Guide for Nepali E-commerce

How to Migrate Your WordPress Website with cPanel: A Step-by-Step Guide for Nepali E-commerce

Migrating your WordPress website with cPanel in Nepal is a straightforward process when you follow the right steps. This guide covers essential backup, transfer, and DNS cutover procedures for a seamless transition, especially for e-commerce sites using Khalti and eSewa.

Key facts: * Primary Tool: cPanel for file and database management. * Key Steps: Backup, File Transfer, Database Import, Configuration Update, DNS Cutover. * Payment Gateways: Ensure Khalti and eSewa configurations are verified post-migration. * Typical Downtime: Minimal if planned correctly, often under an hour for small to medium sites. * Cost: Often free if done manually; professional services range from NPR 5,000 to NPR 20,000 depending on complexity.

Overview of WordPress Website Migration for Nepali Businesses

Website migration involves moving your entire site — files, database, and configurations — from one hosting environment to another. For Nepali e-commerce businesses, a smooth WordPress migration is crucial to maintain uninterrupted service for customers using payment gateways like Khalti, eSewa, and bank transfers. A poorly executed migration can lead to downtime, lost sales, and a negative user experience. This guide focuses on using cPanel, a widely adopted control panel, to simplify the process.

According to a 2025 survey by the Nepal Telecommunications Authority (NTA), over 60% of Nepali SMBs (Small and Medium Businesses) utilize cPanel-based hosting for their websites due to its user-friendly interface and comprehensive features. This makes cPanel migration a highly relevant skill for website owners in Kathmandu and beyond. Hosting Nepal, a leading provider, offers cPanel hosting plans tailored for various business needs, ensuring compatibility and support throughout your migration journey.

Why Migrate Your WordPress Site?

There are several reasons why a Nepali business might consider migrating their WordPress website:

* Better Performance: Moving to a host like Hosting Nepal with optimized servers, NVMe SSDs, and LiteSpeed technology can significantly improve your site's speed, crucial for e-commerce transactions and SEO. * Improved Security: A new host might offer enhanced security features, including Web Application Firewalls (WAFs) and advanced malware scanning, protecting sensitive customer data. * Cost Savings: Finding a hosting provider that offers better value for money without compromising on quality. * Scalability: Upgrading to a more robust hosting plan (e.g., from shared to VPS hosting) to accommodate growing traffic and sales, especially during peak seasons for online shopping in Nepal. * Better Support: Switching to a provider known for excellent, local customer support that understands the unique needs of Nepali businesses.

Step-by-Step WordPress Migration with cPanel

This section outlines the detailed steps for migrating your WordPress website using cPanel. We'll cover everything from backing up your existing site to performing the final DNS cutover.

1. Complete Website Backup

The first and most critical step is to create a full backup of your existing WordPress website. This includes all website files and the database. Using cPanel makes this process relatively straightforward.

#### Backing Up Files via cPanel

1. Log in to your old host's cPanel. Navigate to the 'Files' section and click on 'File Manager'. 2. Compress your public_html directory. Locate your WordPress installation (usually in public_html), select all files and folders within it, and click 'Compress'. Choose 'Zip Archive' and click 'Compress Files'. This creates a single .zip file of your entire website. 3. Download the compressed file. Once the compression is complete, download the .zip file to your local computer. This can take some time depending on your site's size and internet speed (e.g., WorldLink, Vianet).

#### Backing Up Your Database via cPanel

1. Identify your WordPress database. In cPanel, go to 'Databases' and click 'phpMyAdmin'. Open your WordPress wp-config.php file (located in public_html) to find your database name (DB_NAME). 2. Export the database. In phpMyAdmin, select your WordPress database from the left sidebar. Click on the 'Export' tab at the top. Choose 'Custom' for more options. Ensure 'SQL' is selected as the format. Scroll down and click 'Go' to download the .sql file to your computer.

2. Prepare Your New Hosting Environment

Before uploading your backed-up files, you need to set up the new hosting environment. This involves creating a new database and a database user on your new cPanel account.

1. Log in to your new host's cPanel. (e.g., Hosting Nepal's cPanel). 2. Create a new database. Go to 'Databases' and click 'MySQL Databases'. Create a new database with a memorable name. 3. Create a new database user. In the same 'MySQL Databases' section, create a new user with a strong password. 4. Add user to database. Assign the newly created user to the new database, granting 'ALL PRIVILEGES'.

3. Upload Files and Import Database

Now, it's time to transfer your website files and database to the new hosting account.

#### Uploading Website Files

1. Access File Manager on your new cPanel. Navigate to public_html. 2. Upload the .zip file. Click 'Upload', select the .zip file you downloaded earlier, and upload it. This might take a while depending on your internet connection (e.g., Subisu, Classic Tech). 3. Extract the files. Once uploaded, select the .zip file in File Manager and click 'Extract'. Extract it directly into the public_html directory.

#### Importing Your Database

1. Access phpMyAdmin on your new cPanel. Select the new database you created earlier from the left sidebar. 2. Import the .sql file. Click on the 'Import' tab. Click 'Choose File' and select the .sql file you downloaded from your old host. Ensure the format is 'SQL' and click 'Go'.

4. Update WordPress Configuration

After transferring files and the database, you need to update your WordPress configuration file (wp-config.php) to reflect the new database details.

1. Edit wp-config.php: In your new cPanel's File Manager, navigate to public_html and open wp-config.php for editing. 2. Update database credentials: Modify the following lines with your new database name, user, and password: * define('DB_NAME', 'your_new_database_name'); * define('DB_USER', 'your_new_database_user'); * define('DB_PASSWORD', 'your_new_database_password'); 3. Update site URL (if necessary): If your domain name is changing or you are moving from a subdomain to a main domain, you might need to update the WP_HOME and WP_SITEURL definitions. For most migrations, this is not required if the domain remains the same.

5. Perform DNS Cutover

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

1. Get new nameservers or A record. Your new hosting provider (e.g., Hosting Nepal) will provide you with new nameservers (e.g., ns1.hostingnepal.com, ns2.hostingnepal.com) or the IP address for your A record. 2. Update DNS records. Log in to your domain registrar's control panel (where you registered your .np or .com.np domain). * Option A (Recommended): Update Nameservers. Change the existing nameservers to the ones provided by your new host. This is generally the easiest method as your new host will manage all DNS records. * Option B: Update A Record. If you prefer to keep your DNS with your registrar, update the 'A' record for your domain to point to the new server's IP address. 3. DNS Propagation. DNS changes can take 24-48 hours to fully propagate across the internet. During this period, some visitors might still see your old site, while others see the new one. This is normal.

6. Post-Migration Checks and Optimization

After DNS propagation, conduct thorough checks to ensure everything is working correctly, especially for your e-commerce functionalities.

* Test all pages and links. Navigate through your entire website to ensure all pages load correctly and internal links work. * Verify payment gateways. Crucially, test your Khalti, eSewa, and bank transfer payment integrations. Make a small test purchase to confirm transactions are processed correctly. * Check forms and functionalities. Ensure all contact forms, subscription forms, and other interactive elements are operational. * Clear caches. If you use caching plugins (e.g., LiteSpeed Cache, WP Super Cache), clear their caches on the new site. * Update permalinks. Go to WordPress Dashboard > Settings > Permalinks and simply click 'Save Changes' to flush rewrite rules. * Review robots.txt and .htaccess: Ensure these files were transferred correctly and are not blocking search engines or causing redirects.

Common Issues and Troubleshooting

Even with careful planning, issues can arise during migration. Here are some common problems and their solutions:

Database Connection Errors

If you see a "Error establishing a database connection" message, it typically means your wp-config.php file has incorrect database credentials.

* Solution: Double-check the DB_NAME, DB_USER, and DB_PASSWORD in wp-config.php against the details in your new cPanel's MySQL Databases section. Ensure there are no typos.

Internal Server Error (500 Error)

This generic error can be caused by various issues, often related to .htaccess file corruption or PHP memory limits.

* Solution: Rename your .htaccess file (e.g., to .htaccess_old) via cPanel File Manager. If the site loads, regenerate a new .htaccess by going to WordPress Dashboard > Settings > Permalinks and saving changes. If the error persists, increase PHP memory limit in your cPanel's 'Select PHP Version' or contact Hosting Nepal support.

This usually happens if the site URL was not updated correctly or if there are hardcoded URLs in your database.

* Solution: Use a plugin like "Better Search Replace" to find and replace old URLs with new ones in your database. For example, replace http://olddomain.com with http://newdomain.com.

Khalti/eSewa Payment Gateway Failures

If your payment gateways are not working, it could be due to several reasons.

* Solution: Verify the API keys and credentials for Khalti and eSewa within your WordPress/WooCommerce settings. Ensure your server's firewall (if any) is not blocking outgoing connections to the payment gateway APIs. Sometimes, re-saving the payment gateway settings in WooCommerce can resolve the issue. If your site uses HTTPS (which is essential for payment gateways), ensure your SSL certificate is correctly installed on the new host. Hosting Nepal provides free SSL certificates with all hosting plans.

Why Choose Hosting Nepal for Your WordPress Migration?

Hosting Nepal understands the unique challenges faced by Nepali businesses, especially those relying on local payment gateways like Khalti and eSewa. We offer:

* Expert Migration Support: Our team can assist with or fully manage your cPanel to cPanel migration, ensuring zero data loss and minimal downtime. * Optimized WordPress Hosting: Our servers are specifically configured for WordPress, featuring LiteSpeed web server, SSD storage, and advanced caching for lightning-fast speeds. * Local Payment Gateway Compatibility: We ensure seamless integration and performance for Khalti, eSewa, and bank transfer payment systems. * 24/7 Nepali Support: Our Kathmandu-based support team is available around the clock to assist you in Nepali or English, providing quick resolutions to any migration or hosting-related queries.

Migrating your WordPress website doesn't have to be a daunting task. By following these steps and leveraging the robust features of cPanel, you can achieve a smooth transition to your new hosting environment. Remember to always prioritize backups and thorough testing, especially for e-commerce sites handling financial transactions via Khalti and eSewa. For any complex migrations or if you prefer a hands-off approach, Hosting Nepal's expert team is always ready to assist you in making your move seamless and successful.

Tags
wordpress migration
cpanel transfer
website backup
dns cutover
e-commerce nepal
khalti integration
esewa payments
hosting nepal
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 for Nepali Businesses

Why Migrate Your WordPress Site?

Step-by-Step WordPress Migration with cPanel

1. Complete Website Backup

2. Prepare Your New Hosting Environment

3. Upload Files and Import Database

4. Update WordPress Configuration

5. Perform DNS Cutover

6. Post-Migration Checks and Optimization

Common Issues and Troubleshooting

Database Connection Errors

Internal Server Error (500 Error)

Broken Links or Images

Khalti/eSewa Payment Gateway Failures

Why Choose Hosting Nepal for Your WordPress Migration?

Share
Hosting Nepal
Hosting Nepal

2026 © Marketminds Investment Group. All rights reserved.