Hosting Nepal
Hosting Nepal
BlogMigration
Migration
11 min read· June 13, 2026

Setting Up WordPress Migration to cPanel: A Complete Nepal Guide

Migrating your WordPress website to a new cPanel host in Nepal doesn't have to be daunting. This guide walks you through the entire process, ensuring a smooth transition for your payment-integrated site with Khalti and eSewa.

H

Hosting Nepal Editorial

Editorial Team · Updated Jun 13, 2026
Setting Up WordPress Migration to cPanel: A Complete Nepal Guide

Setting Up WordPress Migration to cPanel: A Complete Nepal Guide

Migrating your WordPress website to a new cPanel host in Nepal doesn't have to be daunting. This guide walks you through the entire process, ensuring a smooth transition for your payment-integrated site, minimizing downtime, and preserving your Khalti and eSewa integrations.

Key facts: * Migration Type: WordPress to cPanel (shared, VPS, or dedicated). * Key Tools: cPanel's Backup Wizard, phpMyAdmin, FTP/SFTP client. * Payment Integrations: Khalti, eSewa, bank transfer. * Estimated Downtime: Minimal, often less than an hour with proper planning. * Cost: Typically free if done manually; professional services start from NPR 5,000.

Overview of WordPress Migration to cPanel

Website migration involves moving your entire site – files, database, and configurations – from one hosting environment to another. For WordPress users in Nepal, this often means moving to a new cPanel account, whether on a shared hosting plan, a Virtual Private Server (VPS), or a dedicated server. A successful migration ensures your website remains accessible, all functionalities (including crucial payment gateways like Khalti and eSewa) work flawlessly, and your SEO rankings are preserved.

According to a 2025 survey by the Nepal Telecommunications Authority (NTA), over 60% of Nepali SMBs now accept online payments, making seamless migration for payment-ready sites more critical than ever. This guide focuses on a manual migration process, which gives you granular control and a deeper understanding of your website's architecture. While plugins exist, manual methods are often preferred for critical e-commerce sites or those with complex payment integrations to avoid potential conflicts.

Why Migrate Your WordPress Site?

There are several compelling reasons for Nepali website owners to consider migrating their WordPress sites:

* Better Performance: Your current host might be slow, impacting user experience and SEO. Moving to a faster, more reliable provider like Hosting Nepal can significantly improve page load times, which is crucial for e-commerce sites accepting payments via Khalti and eSewa. * Enhanced Security: A new host might offer superior security features, including advanced firewalls, malware scanning, and regular backups, protecting your valuable customer data. * Scalability: As your business grows, your hosting needs evolve. Migrating to a more robust plan or a VPS can accommodate increased traffic and resource demands. * Cost Savings: While often a secondary concern, sometimes a new host can offer better features at a more competitive price point, especially for long-term contracts. * Improved Support: Access to responsive and knowledgeable technical support, especially from a local provider in Kathmandu, can be invaluable during critical times.

Preparing for Your WordPress Migration

Thorough preparation is the cornerstone of a successful WordPress migration. Skipping steps here can lead to significant headaches down the line, especially for sites that process transactions via Khalti, eSewa, or bank transfer.

1. Choose Your New Hosting Provider

Select a reliable hosting provider in Nepal that offers cPanel. Look for features like SSD storage, free SSL certificates, good uptime guarantees, and responsive customer support. Hosting Nepal provides optimized cPanel hosting perfect for WordPress sites, ensuring your payment gateways remain secure and fast. Ensure your new host supports the necessary PHP versions and MySQL databases for your WordPress installation.

2. Back Up Your Entire Website

This is the most critical step. A complete backup ensures you have a recovery point if anything goes wrong. You'll need two main components:

* Website Files: All files in your public_html directory, including WordPress core files, themes, plugins, and uploads. * Database: Your WordPress database, which stores all your posts, pages, comments, user data, and plugin settings. This is especially vital for e-commerce data and transaction logs.

Most cPanel installations come with a 'Backup Wizard' or 'Backups' tool. Use this to generate a full website backup (including both files and database) and download it to your local computer. Alternatively, you can use an FTP client (like FileZilla) to download all files and phpMyAdmin to export your database. For payment-integrated sites, consider a second, redundant backup.

3. Document Critical Information

Before initiating the transfer, gather all essential details:

* Current cPanel Login: Username and password for your old host. * FTP/SFTP Credentials: If you plan to manually transfer files. * Database Name, Username, Password: Found in your wp-config.php file. * Domain Registrar Login: Access to manage your Domain Name System (DNS) records. * Email Accounts: List all email addresses associated with your domain and their passwords if you need to recreate them. * Payment Gateway Credentials: While not directly migrated, ensure you have access to your Khalti, eSewa, and bank transfer merchant accounts for verification post-migration.

Step-by-Step WordPress Migration to cPanel

Follow these detailed steps to manually migrate your WordPress site to your new Hosting Nepal cPanel account.

1. Upload Website Files to New Host

Access your new cPanel account's File Manager or use an FTP/SFTP client. Navigate to the public_html directory (or the designated directory for your domain). Upload the compressed backup file (e.g., backup.zip or public_html.tar.gz) you downloaded earlier. Once uploaded, extract the files directly into the public_html directory.

2. Create a New Database and User

In your new cPanel, go to 'MySQL Databases'.

* Create a New Database: Give it a memorable name (e.g., your_site_db). * Create a New User: Create a new MySQL user with a strong password. * Add User to Database: Assign the newly created user to your new database and grant 'All Privileges'. Make a note of the database name, username, and password.

3. Import Your Database

Still in your new cPanel, open 'phpMyAdmin'. Select the new database you just created. Click on the 'Import' tab, then 'Choose File' to select the .sql database backup file you downloaded from your old host. Ensure the 'Format' is SQL and click 'Go'. This will import all your WordPress data.

4. Update wp-config.php File

Navigate to the public_html directory in your new cPanel's File Manager. Locate the wp-config.php file. Right-click and select 'Edit'. You need to update the following lines with your new database details:

``php define('DB_NAME', 'your_new_database_name'); define('DB_USER', 'your_new_database_user'); define('DB_PASSWORD', 'your_new_database_password'); define('DB_HOST', 'localhost'); // Usually 'localhost' `

Save the changes.

5. Update WordPress Site URL (if necessary)

If your domain is changing or you're moving from a subdomain to a main domain, you'll need to update the WordPress site URL. This can be done in phpMyAdmin. In your new database, find the wp_options table (the prefix might be different, e.g., wp_xyz_options). Locate the siteurl and home rows and update their option_value to your new domain (e.g., https://www.yourdomain.com.np).

Alternatively, you can add these lines to your wp-config.php file (above the / That's all, stop editing! Happy publishing. / line):

`php define('WP_HOME','https://www.yourdomain.com.np'); define('WP_SITEURL','https://www.yourdomain.com.np'); `

Remember to remove these lines after the migration is complete and you've verified everything, as they can override database settings.

6. Perform a Search and Replace for Old URLs

This is crucial for ensuring all internal links, image paths, and plugin settings point to your new domain. Using a plugin like 'Better Search Replace' (install it on your new site before the DNS cutover) or a script like 'Search and Replace DB' is highly recommended. Search for http://olddomain.com (or https://olddomain.com) and replace with https://newdomain.com.np.

7. Configure DNS Cutover

Once your site is fully migrated and tested on a temporary URL (if provided by your host), it's time for the DNS cutover. Log in to your domain registrar (e.g., Mercantile, Webhost Nepal) and update your domain's nameservers to those provided by your new hosting provider (e.g., ns1.hostingnepal.com, ns2.hostingnepal.com).

DNS changes can take 24-48 hours to propagate globally, though often much faster within Nepal. During this period, some visitors might still see your old site, while others see the new one. This is normal. To minimize downtime, perform the DNS update during off-peak hours.

8. Test Your Website Thoroughly

After DNS propagation, access your website using your domain name. Test every aspect:

* Frontend: Browse pages, posts, images, and links. * Backend: Log in to your WordPress admin dashboard. * Forms: Test contact forms, subscription forms. * Payment Gateways: Crucially, perform test transactions using Khalti, eSewa, and bank transfer options to ensure they are fully functional. Check transaction logs. * Email: Send and receive test emails if your email accounts are hosted with cPanel. * SSL: Ensure your site loads with HTTPS and the padlock icon is visible.

Common Issues and Troubleshooting

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

* "Error Establishing a Database Connection": Double-check your wp-config.php file for correct database name, username, and password. Ensure the user has all privileges on the database. * Broken Links or Images: This usually indicates a missed search and replace for old URLs. Run the search and replace tool again, ensuring you've covered all instances of your old domain. * Internal Server Error (500): This can be due to incorrect file permissions or a corrupt .htaccess file. Try resetting permalinks in WordPress (Settings > Permalinks > Save Changes) or regenerating the .htaccess file. * Website Not Loading After DNS Update: DNS propagation takes time. Use a DNS checker tool to verify if your domain's nameservers have updated. Clear your browser cache or try accessing the site from a different network. * Payment Gateways Not Working: Verify your Khalti, eSewa, or bank transfer integration settings within your WordPress (usually WooCommerce or a dedicated plugin). Ensure API keys or merchant IDs are correctly configured and that your site is accessible to the payment gateway's servers. Sometimes, a simple re-save of payment settings can resolve this.

For persistent issues, don't hesitate to contact your new hosting provider's support team. Hosting Nepal's support staff are well-versed in WordPress migrations and can assist with cPanel-related problems.

Post-Migration Best Practices

Once your WordPress site is successfully migrated and running smoothly, consider these best practices:

* Update DNS TTL: If your old DNS records had a very long Time To Live (TTL), consider reducing it before future migrations to speed up propagation. * Monitor Performance: Keep an eye on your website's speed and performance using tools like Google PageSpeed Insights. Your new host should offer better performance. * Implement SSL: Ensure an SSL certificate is installed and active. Hosting Nepal provides free Let's Encrypt SSL certificates, crucial for security and SEO, especially for payment sites. * Regular Backups: Set up automated daily or weekly backups on your new host. This is vital for disaster recovery. * Security Audit: Conduct a security audit to ensure all files are clean and permissions are correctly set. Consider a Web Application Firewall (WAF) for enhanced protection. * Optimize Database: Regularly optimize your WordPress database to remove unnecessary data and improve performance.

Migrating your WordPress website to a new cPanel environment in Nepal, especially one integrated with local payment solutions like Khalti and eSewa, is a critical process. By following these detailed steps, from thorough backup to careful DNS cutover and post-migration testing, you can ensure a smooth and successful transition. Hosting Nepal is committed to providing the robust hosting environment and expert support needed to make your migration a hassle-free experience, empowering your online business or organization in Nepal.

FAQ

Q: How long does a typical WordPress migration take?

A: The actual migration process, including file and database transfer, can take anywhere from 30 minutes to a few hours, depending on your website's size and your internet speed. DNS propagation, however, can take 24-48 hours globally, though often faster within Nepal. Planning and preparation are key to minimizing downtime.

Q: Can I migrate my WordPress site without any downtime?

A: While 100% zero downtime is challenging, you can achieve near-zero downtime. By migrating files and the database to the new host first, testing it on a temporary URL, and then performing the DNS cutover during off-peak hours, you can significantly reduce the period when your site might be inaccessible to visitors.

Q: What if my website uses Khalti or eSewa for payments? Will they still work after migration?

A: Yes, your Khalti and eSewa integrations should work seamlessly after migration, provided you correctly update your site's URLs in the database and ensure all plugin settings are transferred. Always perform test transactions post-migration to confirm full functionality of all payment gateways.

Q: Do I need to buy a new domain name for migration?

A: No, you do not need a new domain name. You will simply update the nameservers of your existing
.np or .com.np` domain to point to your new hosting provider. This is done through your domain registrar's control panel.

Q: Is it safe to migrate my website manually?

A: Yes, manual migration is generally safe and offers more control, provided you follow all steps carefully, especially creating a complete backup before starting. For those less technically inclined or with very complex sites, considering a professional migration service from your hosting provider (like Hosting Nepal) is a viable option.

Tags
wordpress migration
cpanel hosting
website transfer
dns cutover
backup website
khalti integration
esewa payments
nepal web hosting
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 to cPanel

Why Migrate Your WordPress Site?

Preparing for Your WordPress Migration

1. Choose Your New Hosting Provider

2. Back Up Your Entire Website

3. Document Critical Information

Step-by-Step WordPress Migration to cPanel

1. Upload Website Files to New Host

2. Create a New Database and User

3. Import Your Database

4. Update `wp-config.php` File

5. Update WordPress Site URL (if necessary)

6. Perform a Search and Replace for Old URLs

7. Configure DNS Cutover

8. Test Your Website Thoroughly

Common Issues and Troubleshooting

Post-Migration Best Practices

FAQ

Q: How long does a typical WordPress migration take?

Q: Can I migrate my WordPress site without any downtime?

Q: What if my website uses Khalti or eSewa for payments? Will they still work after migration?

Q: Do I need to buy a new domain name for migration?

Q: Is it safe to migrate my website manually?

Share
Hosting Nepal
Hosting Nepal

2026 © Marketminds Investment Group. All rights reserved.

WordPress Migration to cPanel in Nepal: A Complete Guide