# Move from a cPanel host

> Export a WordPress site from a cPanel host and move it to WP Waterfall with the free migration.

Source: https://docs.wpwaterfall.com/migrate/from-cpanel

This guide shows how to export a WordPress site from shared or reseller hosting with cPanel as one archive, hand it to WP Waterfall, and switch the domain.

## What you need

- A cPanel login and wp-admin access to the site.
- A free site license, and a backup file in a format that [Migrate a site to WP Waterfall](https://docs.wpwaterfall.com/migrate-a-site#what-do-i-need) lists.

## Export your site from cPanel

A **Full Backup** from **Backup** or **Backup Wizard** also works: WP Waterfall finds `public_html`, leaves out mail, and picks the database that `wp-config.php` names. Choose the backup type **cPanel backup** in the request. It holds your whole account, so the routes below make a smaller file that is safer to share.

**Route 1: File Manager and phpMyAdmin**

1. In File Manager, open **Settings**, tick **Show Hidden Files (dotfiles)**, and save. Open `wp-config.php` in the site's folder and note `DB_NAME` and `$table_prefix`.
2. Open **phpMyAdmin**, select that database, and open **Export**. Use **Quick** with the SQL format, or **Custom** with gzip compression for a large site. If the database holds another install's tables, choose **Custom** and select only your prefix's tables.
3. Upload the export next to `wp-content`. Select both, right-click, choose **Compress**, pick zip, and **Download** it.
4. Delete the export and the zip from the folder, because visitors can reach it.

**Route 2: Terminal or SSH (best for large sites)**

Open **Terminal** under **Advanced**, or use an SSH client. Your host must allow shell access.

```
cd ~/public_html
wp db export ~/site.sql --add-drop-table
zip -r ~/site-move.zip wp-content -x "wp-content/cache/*"
cd ~ && zip site-move.zip site.sql
```

No `wp`? Use `mysqldump --no-tablespaces -u DBUSER -p DBNAME > ~/site.sql`. Download the zip, then delete it and `site.sql`.

**Route 3: Softaculous or WP Toolkit**

Both can back up one installation. Open the backup. If it holds `wp-content` and one database export, send it. If not, use Route 1 or 2.

## Request the migration and switch the domain

Share the file as a public link, then follow [Migrate a site to WP Waterfall](https://docs.wpwaterfall.com/migrate-a-site) to request the migration. That article also covers what moves, what you set up again, how to switch the domain, and how to roll back. DNS sits at the registrar, at Cloudflare, or on the host's nameservers, so look them up first. On the host's, use cPanel's Zone Editor.

## Troubleshooting

- Compress fails or the zip is too large: use Route 2, and remove cache and old backups.

## Related

- [Migrate a site to WP Waterfall](https://docs.wpwaterfall.com/migrate-a-site)
- [Move it by hand](https://docs.wpwaterfall.com/migrate/from-generic-wordpress), for when a person must handle the archive or you prefer to do it yourself
- cPanel docs: [Backup Wizard](https://docs.cpanel.net/cpanel/files/backup-wizard/), [File Manager](https://docs.cpanel.net/cpanel/files/file-manager/), [Terminal](https://docs.cpanel.net/cpanel/advanced/terminal-in-cpanel/), [WP Toolkit](https://docs.cpanel.net/cpanel/domains/wp-toolkit-for-cpanel/)
