Migrating a WordPress website from one cPanel to another is a common task when switching hosting providers. In this guide, you’ll learn the safe, manual method to transfer your entire website without losing data.
Video Tutorial
What You Need Before Starting
- Access to the old cPanel
- Access to the new cPanel
- FTP/File Manager access
- Basic understanding of files and databases
Step 1: Backup Website Files from Old cPanel
- Log in to your old cPanel
- Open File Manager
- Go to the
public_htmlfolder - Select all files
- Click Compress → Download the ZIP file
Step 2: Export WordPress Database
- Go to phpMyAdmin in the old cPanel
- Select your WordPress database
- Click Export
- Choose Quick → Format: SQL
- Download the
.sqlfile
Step 3: Upload Files to New cPanel
- Log in to your new cPanel
- Open File Manager
- Go to
public_html - Upload the ZIP file
- Extract it
Step 4: Create a New Database
- Open MySQL Databases in new cPanel
- Create:
- New database
- Database user
- Assign the user to the database with ALL PRIVILEGES
Step 5: Import Database
- Open phpMyAdmin in a new cPanel
- Select the newly created database
- Click Import
- Upload your
.sqlfile - Click Go
Step 6: Update the wp-config.php File
- Go to
public_html→ findwp-config.php - Edit the following details:
define('DB_NAME', 'new_database_name');
define('DB_USER', 'new_database_user');
define('DB_PASSWORD', 'new_password');
define('DB_HOST', 'localhost');
Step 7: Update Domain (If Changed)
If you are changing the domain:
- Go to phpMyAdmin
- Open
wp_optionstable - Update:
siteurlhome
Step 8: Test Your Website
- Visit your domain
- Check pages, images, and login
- Clear browser cache if needed
Common Issues & Fixes
Website Not Loading
- Check
wp-config.phpcredentials
Database Connection Error
- Recheck the database name, user, and password
Broken Links / Images
- Update URLs using the search & replace plugin
Pro Tips
- Always take a full backup before migration
- Use a temporary URL to test before pointing the domain
- Lower DNS TTL before migration for faster switching
Want Hassle-Free Migration?
Manual migration can be risky if not done correctly.
👉 Choose hosting that offers free WordPress migration + expert support
Conclusion
Migrating WordPress from one cPanel to another is straightforward if you follow the correct steps. With proper backups and configuration, you can move your site safely without downtime.