Contents
Having cPanel on both ends makes a migration predictable: the same folder layout (public_html), the same database tools and the same backup format. The real decision is which method fits: a full backup of the whole account, or moving the files and database by hand. Either way, don’t touch DNS until the site works on the new server.
Full backup or files + database?
| Full backup | Files + database | |
|---|---|---|
| What moves | The whole account: files, databases, email, addon domains, DNS zone, cron jobs | Only what you pick |
| Who restores it | The new host, from WHM | You, from cPanel and phpMyAdmin |
| Best for | Moving an entire account with all its sites and mail | Moving one site, merging it into an existing account, or when the old host disables full backups |
| Watch out for | Needs free disk space in the old account to build the file | You edit the config file and recreate mailboxes yourself |
Before you start
- Logins for both the old and the new cPanel.
- Access to your domain registrar or DNS provider (such as Cloudflare).
- Free space in the old account, because the backup file is written inside it.
- A list of what runs in the account: addon domains, email accounts, cron jobs, and the PHP version shown in MultiPHP Manager.
- If you can, lower the TTL on your domain’s records to
300seconds a day before the move so the switch reaches visitors faster.
Method 1: full account backup
1. Generate the backup on the old cPanel
Go to Files > Backup and click Download a Full Account Backup. Set Backup Destination to Home Directory, enter an email address for the completion notice, and click Generate Backup. cPanel writes a file named like:
backup-11.26.2026_10-30-00_olduser.tar.gz
2. Download it or send it straight across
The file appears on the same page under Backups Available for Download. If it’s large, download it over FTP rather than the browser so the transfer doesn’t break halfway. If the new host gives you FTP or SCP details, you can pick Remote FTP Server or Secure Copy (SCP) in the previous step and the file goes directly to them.
3. Ask for the restore
A full backup is restored in WHM under Transfer or Restore a cPanel Account, which is a server-admin tool. If you have WHM (as a reseller, for example), restore it yourself; otherwise send the file to the new host’s support. Some hosts can also pull the account directly from the old server using its cPanel login, so you never download anything.
Method 2: files and database
1. Copy the site files
Open Files > Backup Wizard, then Back Up > Select Partial Backup > Home Directory, and download the file. It contains the entire home directory, including the mail folder. If you only want the site, open File Manager, enable Settings > Show Hidden Files (dotfiles) so .htaccess shows up, select the contents of public_html, click Compress, choose Zip Archive, and download the archive.
2. Export the database
In Backup Wizard > Back Up > MySQL Databases, click the database name to download a .sql.gz file, or in phpMyAdmin select the database and use Export > Quick > SQL. Not sure which database the site uses? Check its config: DB_NAME in wp-config.php, or DB_DATABASE in a Laravel .env.
3. Create a database and user on the new cPanel
Open Databases > Manage My Databases (called MySQL Databases in older versions), create a database and a user, then use Add User To Database and grant ALL PRIVILEGES. The MySQL database guide walks through it. Names are prefixed with the new username, e.g. newuser_wp.
4. Import the database
Open phpMyAdmin, select the new database in the sidebar, click Import, choose the file and click Import. If you hit a size limit, see phpMyAdmin import file too large.
5. Upload and extract the files
In File Manager, open public_html (or the addon domain’s folder), click Upload, upload the ZIP, then select it and click Extract. Make sure the files sit directly in public_html, not inside an extra subfolder.
6. Update the configuration
Point the config file at the new database. In WordPress:
define( 'DB_NAME', 'newuser_wp' );
define( 'DB_USER', 'newuser_wpuser' );
define( 'DB_PASSWORD', 'the-new-password' );
define( 'DB_HOST', 'localhost' );
Then search the files for the old path /home/olduser/ and replace it, select the same PHP version in MultiPHP Manager, and recreate cron jobs under Advanced > Cron Jobs. For WordPress specifically, the WordPress migration guide covers the extra steps.
Test the site before switching DNS
Find the new server’s IP under General Information in cPanel, then add one line to the hosts file on your own computer:
203.0.113.10 example.com www.example.com
The file is at C:\Windows\System32\drivers\etc\hosts on Windows and /etc/hosts on macOS and Linux. Browse the site, log in to the admin area, and try the forms and checkout. An SSL warning at this stage is expected because the certificate hasn’t been issued yet. Remove the line when you’re done.
Moving email
- With a full backup: mailboxes and messages come across with the account.
- With the manual method: create the same addresses under Email > Email Accounts, then move messages over IMAP: add the old and new accounts to a mail client and drag folders across, or ask support for an IMAP sync. See moving email to a new host.
- Back up Email Forwarders & Filters in Backup Wizard and restore them from Backup Wizard > Restore on the new account.
- Update phones and mail apps if the incoming and outgoing server names changed.
Switching DNS
Before you switch, copy any custom records from Domains > Zone Editor on the old account: verification TXT records, subdomains pointing at other services, external MX records. A full backup carries the DNS zone; the manual method doesn’t.
- Via nameservers: change them at the registrar to the new host’s nameservers. Steps are in the nameserver guide.
- Via the A record: if DNS stays at Cloudflare or another provider, point
@andwwwto the new server’s IP, and update MX if you moved email.
Then watch DNS propagation with the DNS lookup tool, and keep the old hosting active for a few days before cancelling it.
Common problems and fixes
Error establishing a database connection: the database details in the config file are wrong, or the user wasn’t added to the database.- 500 error after the move: often an old
.htaccessline that pins a PHP version, such asAddHandler application/x-httpd-ea-php74. Remove it and choose the version in MultiPHP Manager. - Arabic text shows as question marks: the import used the wrong character set. Re-export the database as
utf8mb4. - Broken images or links: old paths or URLs are hard-coded in the database or files.
- Full backup fails to generate: the account is close to its disk limit. Delete old backups or use partial backups instead.
- You still see the old site: your computer has the old address cached, or the
hostsline is still there.
On ArabyHost
ArabyHost accounts run cPanel, opened with one click from the Araby Panel, so Backup Wizard, phpMyAdmin and File Manager are exactly where you’re used to finding them. If you’d rather not do the move yourself, request free migration help and send the old account details or the full backup file. Once the domain points to ns1.arabicode.com and ns2.arabicode.com, a free SSL certificate is issued automatically, SPF and DKIM are set up for email, and daily JetBackup snapshots begin. Available PHP versions are 8.1 to 8.3, so if your site runs on something older, update and test it before moving. If an error shows up after the move, the Araby AI assistant reads the error log and explains the cause.
FAQ
Can I restore a full cPanel backup myself?
Usually not. cPanel's Backup page lets you generate and download a full backup, but restoring one happens in WHM with server-admin rights. Send it to the new host's support, or restore its parts (home directory and databases) yourself through Backup Wizard.
Will my site go down during the move?
Not if you follow the right order: copy everything, test on the new server, then change DNS. The old site keeps serving visitors whose DNS hasn't updated yet, so nobody sees an empty page.
What happens to email that arrives while DNS propagates?
Some of it can land on the old server for up to a day or two. Don't cancel the old hosting straight away; once propagation is done, open the old mailboxes in webmail and move anything that arrived there.
My new cPanel username is different. Does that matter?
It can. Database names start with the cPanel username, and config files may contain paths such as /home/olduser/. Update the database name and user in your config and replace the old path wherever it appears.