Restore a WordPress Installation from 3rd party backup

jennifer ettia

Registered
Apr 21, 2016
2
0
1
sydney
cPanel Access Level
Reseller Owner
Hello

I am looking for information on how to install a full wordpress backup file to a new cpanel both on my reseller server. Can I do this through cpanel? How do I make sure the URLs get updated too?
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello :)

Could you elaborate on how the WordPress contents were backed up? Did it happen through a plugin, or manually?

Thank you.
 

MrL22

Active Member
Jul 11, 2003
36
1
158
Tamworth, United Kingdom
Hello Jennifer,

There is no single easy way to do this but here are some steps for you.

1. Create the cpanel account.
2. in cPanel - setup a mysql database, user and assign the user to the database.
3. Open the .sql dump file in a decent plain text editor and search/replace the old server path with your new path (may be something like /var/www/mysite.com/htdocs to /home/mysite/public_html)
4. Do the same for the website url if the address is changing (myoldsite.com to mysite.com)
5. Open phpmyadmin in cPanel and import the new (search/replaced) sql dump file.
6. Extract the tar.gz or upload the wordpress files to the public_html folder.
7. open the wp-config.php in a text editor and ensure that the database host is localhost and username/password/database are correct with your new settings.
8. Hopefully the site will work, unless you need to do soemthing with DNS.

Richard
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463