How to manually migrate a WordPress website to cPanel hosting


Note: This is an advanced guide and may take 1hr+ to complete. Please note that if the steps are followed incorrectly and the site fails to load, our support team will not be able to investigate or fix any development problems. If required, we could perform a manual migration to carry out these steps on your behalf. You can find more information in this guide.

The information in this guide is provided as a suggestion, and we can't provide detailed support for modifications to a Content Management System. If you require assistance with this, we'd recommend speaking to your website developer to ensure relevance and compatibility with your site.


You will need:


1 - A backup of your WordPress Files
2 - A backup of your WordPress SQL Database
3 - Your cPanel Login Details


Step 1 - Log into cPanel and use the cPanel File Manager to upload the website files into the public_html folder (click here for a guide on using the File Manager)

1f973f6a2580bf61f74be45aaa97740a220b4e49?t=f8ba2ffedff467cb72d82ad27b664449


Step 2 - Use the MySQL Database Wizard to create a new database. Make sure to copy > paste the full mysql database name, username and password (including the cpanelusername_ portion) into notepad or another text editor, as they'll be needed in the next step. Click here for a guide on using the MySQL Database Wizard.

2dd6b5afadb05b5afce697189354d4bfae9c95c1?t=88c4dae276b3f5141eb82d049d52b0ee


Step 3 - Using the cPanel File Manager, go into the public_html folder and edit the wp-config.php. You need to replace the old database name, user and password with the new ones created in Step 2. Make sure to put the data inside ' ' quotation marks.

ab1c8b2b211eec86de9309e326be229bd6f37435?t=77429a551eac59397d0f521d09dd309f


Step 4 - Import the .sql file from your backup into the database you just created. Click here for our guide on importing a database using PHPMyAdmin


Once that's done, the migration should be complete. Before updating the DNS, you can preview the website using a Hosts file edit (click here for a guide on doing that). You can then update your DNS by changing your domain's A record to point to the A record of your cPanel account.


For more tutorials on website development and Wordpress troubleshooting, view our List of Wordpress Guides.


Did you find this article useful?