Hosting Nepal
Hosting Nepal
BlogMigration
Migration
10 min read· August 1, 2026

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

Migrating your WordPress site with cPanel involves backing up your files and database, transferring them, and updating DNS, ensuring your Nepali e-commerce site accepting Khalti and eSewa payments remains online seamlessly.

H

Hosting Nepal Editorial

Editorial Team · Updated Aug 1, 2026
How to Migrate Your WordPress Site with cPanel: A Step-by-Step Guide for Nepali E-commerce

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

Migrating your WordPress site with cPanel involves backing up your files and database, transferring them, and updating DNS, ensuring your Nepali e-commerce site accepting Khalti and eSewa payments remains online seamlessly. This guide provides a detailed walkthrough for businesses in Nepal looking to move their WordPress website to a new hosting provider, such as Hosting Nepal, with minimal downtime.

Key facts: * Primary Tool: cPanel (Control Panel) * Key Steps: Backup, Transfer, Database Import, Configuration, DNS Cutover * Downtime Goal: Near-zero with proper planning * Target Audience: Nepali e-commerce sites, SMBs, startups using WordPress * Payment Gateways: Khalti, eSewa, bank transfer integration considerations

Overview of WordPress Migration with cPanel

Website migration, particularly for an active WordPress e-commerce site, can seem daunting. However, using cPanel simplifies the process significantly. cPanel provides robust tools for creating full backups, managing files, and administering databases, making it the preferred method for many Nepali website owners. A successful migration ensures your online store, which might be integrated with local payment gateways like Khalti and eSewa, continues to operate without interruption, preserving customer trust and sales.

According to a 2025 survey by the Nepal Telecommunications Authority (NTA), over 70% of Nepali SMBs now rely on their website for customer engagement and sales, highlighting the critical need for seamless online presence. A poorly executed migration can lead to lost revenue and a damaged reputation. This guide focuses on a methodical approach to minimize risks, especially for sites handling transactions via bank transfer, Khalti, or eSewa.

Why Migrate Your WordPress Site?

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

* Better Performance: Your current hosting might be slow, especially during peak traffic for your e-commerce store. Moving to a provider like Hosting Nepal, known for optimized WordPress hosting, can significantly improve loading times. * Improved Security: Outdated server environments or inadequate security measures from your current host can put your data and customer information at risk. A new host might offer advanced Web Application Firewalls (WAFs) and daily malware scanning. * Cost Savings: While often not the primary driver, some businesses find better value or more features for their budget with a new hosting plan. * Enhanced Support: Access to 24/7 expert support, especially for WordPress-specific issues, can be invaluable for e-commerce operations. * Scalability: As your business grows, you might need more resources (CPU, RAM, storage) than your current shared hosting plan offers. Migrating to a VPS or dedicated server can provide the necessary scalability.

Step-by-Step WordPress Migration Using cPanel

This section outlines the detailed process for migrating your WordPress site, ensuring all components, including your Khalti and eSewa payment integrations, are transferred correctly.

Step 1: Full Backup of Your Existing WordPress Site

The first and most crucial step is to create a complete backup of your current WordPress website. This includes all website files and the database. Most cPanel installations offer a 'Backup' or 'Backup Wizard' feature.

1. Log in to your old hosting cPanel: Access your cPanel dashboard using the credentials provided by your current host. 2. Navigate to Backup Wizard: Look for the 'Backup' or 'Backup Wizard' icon in the 'Files' section. 3. Generate a Full Backup: Select 'Full Backup' and choose a destination, typically your home directory. You can also provide an email address to be notified when the backup is complete. This process might take some time depending on your site's size. For a typical Nepali e-commerce site with product images and transaction data, this could be several gigabytes. 4. Download the Backup File: Once generated, download the full backup file (usually a .tar.gz archive) to your local computer. This file contains everything: WordPress core files, themes, plugins, uploads, and your database.

Step 2: Prepare Your New Hosting Account

Before transferring files, ensure your new hosting account is ready. If you've chosen Hosting Nepal, you'll receive cPanel login details upon account activation.

1. Log in to your new hosting cPanel: Use the credentials for your new hosting account. 2. Create a New Database and User: In your new cPanel, go to 'MySQL Databases'. Create a new database and a new user, assigning all privileges to this user for the new database. Make sure to note down the database name, username, and password, as you'll need them later.

Step 3: Transfer Website Files and Database

Now, upload the backup file to your new hosting and extract its contents.

1. Upload the Full Backup: Access 'File Manager' in your new cPanel. Navigate to the public_html directory (or the specific directory where your WordPress site will reside). Upload the .tar.gz full backup file you downloaded earlier. 2. Extract the Backup: Once uploaded, right-click the .tar.gz file and select 'Extract'. Extract it to the public_html directory. This will unpack all your website files. 3. Locate Database Backup: Inside the extracted files, you'll find a .sql file, which is your database backup. It's often located in the homedir/mysql directory within the extracted backup, or sometimes directly in the root of the extracted content. Move this .sql file to a more accessible location, like the public_html directory, for easy import. 4. Import Database: Go to 'phpMyAdmin' in your new cPanel. Select the new database you created in Step 2. Click on the 'Import' tab, choose the .sql file you located, and click 'Go' to import your database.

Step 4: Update WordPress Configuration and Database

After transferring files and importing the database, you need to update your WordPress configuration and potentially the database entries to reflect the new hosting environment.

1. Edit wp-config.php: In your new cPanel's 'File Manager', navigate to public_html and find the wp-config.php file. Right-click and select 'Edit'. Update the following lines with the new database details you created in Step 2: * DB_NAME * DB_USER * DB_PASSWORD * DB_HOST (usually localhost, but confirm with your new host) 2. Update Site URL (if domain is changing or for internal consistency): If you are changing your domain name or if your site was previously configured with temporary URLs, you might need to update the siteurl and home options in the WordPress database. This can be done via phpMyAdmin. In phpMyAdmin, select your database, go to the wp_options table (prefix might vary, e.g., hn_options), and edit the option_value for siteurl and home to your new domain name (e.g., https://yournewdomain.com). For most migrations where the domain remains the same, this step is often not strictly necessary but good to check.

Step 5: DNS Cutover

This is the final step to point your domain name to your new hosting server. This is where the magic happens and your site goes live from the new host.

1. Update Nameservers: Log in to your domain registrar's control panel (e.g., Nepal Clearing House for .np domains, or international registrars for .com domains). Locate the DNS management section and update the nameservers to those provided by your new hosting provider (e.g., ns1.hostingnepals.com, ns2.hostingnepals.com). 2. DNS Propagation: DNS changes can take anywhere from a few minutes to 48 hours to fully propagate across the internet. During this period, some users might still see your old site, while others see the new one. This is normal. Tools like DNS Checker can help monitor propagation.

Post-Migration Checks and Optimization

Once the DNS cutover is complete, thoroughly test your migrated WordPress site, especially your e-commerce functionalities.

Verify E-commerce Functionality

* Payment Gateways: Test Khalti, eSewa, and bank transfer integrations. Perform a small test transaction to ensure payments are processed correctly. * Product Pages: Check all product pages, images, and pricing. * Cart and Checkout: Ensure the add-to-cart and checkout processes work flawlessly. * User Accounts: Verify existing customer accounts and login functionality. * Order History: Confirm that past order history is accessible.

General Site Checks

* Broken Links: Use a broken link checker to identify and fix any internal or external broken links. * Forms: Test all contact forms and other interactive elements. * Image Paths: Ensure all images are loading correctly. * SSL Certificate: Verify your SSL certificate is active and your site loads securely via HTTPS. Hosting Nepal offers free Let's Encrypt SSL certificates. * Permalinks: Go to WordPress Dashboard > Settings > Permalinks and simply click 'Save Changes' without making any modifications. This refreshes your permalink structure and can resolve 404 errors.

Performance Optimization

After migration, consider further optimizing your site for speed. Hosting Nepal's servers are optimized for WordPress, but additional steps can always help.

* Caching Plugin: Install and configure a caching plugin like LiteSpeed Cache (if your host uses LiteSpeed Web Server, which Hosting Nepal does), WP Super Cache, or W3 Total Cache. This significantly speeds up page load times. * Image Optimization: Use plugins like Smush or EWWW Image Optimizer to compress images without losing quality. * Content Delivery Network (CDN): For sites with a global audience or high traffic, a CDN can distribute your content closer to users, reducing latency. While many Nepali sites primarily serve local traffic, a CDN can still benefit users on different ISPs like WorldLink, Vianet, or Classic Tech.

Common Issues and Troubleshooting

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

1. Database Connection Error

This usually means your wp-config.php file has incorrect database credentials.

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

2. 404 Errors on All Pages Except Homepage

This is a common permalink issue after migration.

* Solution: Go to WordPress Dashboard > Settings > Permalinks and simply click 'Save Changes'. This should regenerate your .htaccess file and resolve the issue.

3. Mixed Content Warnings (HTTPS Issues)

Your site loads via HTTPS, but some resources (images, scripts) are still loaded over HTTP, causing browser warnings.

* Solution: Install a plugin like 'Really Simple SSL' or manually update your database to replace all http://yourdomain.com instances with https://yourdomain.com. Remember to backup your database before making direct changes.

4. Khalti/eSewa Payment Gateway Errors

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

* Solution: * Plugin Settings: Re-check the API keys and settings for your Khalti or eSewa WordPress plugins. Ensure they are correctly configured for your live environment. * Callback URLs: Verify that any callback or webhook URLs configured with Khalti or eSewa (in their merchant dashboards) point to your new domain. * Firewall: Ensure your new hosting's firewall isn't blocking outgoing connections required by the payment gateways. Contact Hosting Nepal support if you suspect this.

Conclusion

Migrating your WordPress e-commerce site with cPanel is a manageable process when approached systematically. By following these steps – from creating a comprehensive backup to performing a careful DNS cutover and post-migration checks – you can ensure a smooth transition for your online business in Nepal. Remember to thoroughly test all functionalities, especially your Khalti, eSewa, and bank transfer payment integrations, to maintain customer trust and uninterrupted service. Should you encounter any challenges, Hosting Nepal's expert support team is always ready to assist Nepali website owners with their migration needs, ensuring your online presence remains robust and reliable.

Tags
wordpress migration
cpanel transfer
website backup
dns cutover
nepal e-commerce
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 Migration with cPanel

Why Migrate Your WordPress Site?

Step-by-Step WordPress Migration Using cPanel

Step 1: Full Backup of Your Existing WordPress Site

Step 2: Prepare Your New Hosting Account

Step 3: Transfer Website Files and Database

Step 4: Update WordPress Configuration and Database

Step 5: DNS Cutover

Post-Migration Checks and Optimization

Verify E-commerce Functionality

General Site Checks

Performance Optimization

Common Issues and Troubleshooting

1. Database Connection Error

2. 404 Errors on All Pages Except Homepage

3. Mixed Content Warnings (HTTPS Issues)

4. Khalti/eSewa Payment Gateway Errors

Conclusion

Share
Hosting Nepal
Hosting Nepal

2026 © Marketminds Investment Group. All rights reserved.

WordPress Site Migration with cPanel: Nepali E-commerce Guide