Merrill Cook
Merrill Cook

Reputation: 1208

How Do I Restore WP site from unzipped files and SQL dump?

I have a site I am supposed to migrate. The previous developer did not give me access to the Wordpress backend or a Wordpress back up file. I do, however, have access to FTP for the site. I've downloaded all of the site files including Wordpress, plugins, the theme, and I have a SQL dump file of the database. How can I restore the site (at another location) with these elements?

Upvotes: 0

Views: 86

Answers (2)

Bradley Gamboa
Bradley Gamboa

Reputation: 27

Assuming you have access to the database you can use a MD5 hash generator to change the password of the admin user then use a duplicator package plugin to copy and migrate the site wherever you need to.

Upvotes: 0

DubVader
DubVader

Reputation: 1072

Assuming you have the previous site's root in tact, meaning you extracted ALL the files, and not just wp-content (if you only did this, you should just download everything from the previous root).

1) Upload zipped file to new root directory
2) Unzip the file
3) Create new database and database user
4) Import SQL dump to new database
5) In wp-config file, adjust settings to point to new database
6) In database, change primary site URL to the new site domain (may be multiple instances so do search/replace)
7) In database, create a WP user so you can log in to Wordpress backend
8) Remove original zip file from root

Upvotes: 1

Related Questions