Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

How to migrate an existing wordpress site to the localhost?

I was able to create a localhost on my computer, but now I need to migrate my site to it, in order to being able to make changes to it. Is there any video that explains how to do this? If not, can you please suggest a step-by-step guide on how to overcome this problem.

3 Answers

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

Hi,

You do the same process in reverse:

  • Backup local site
  • Download remote files
  • Download remote database
  • Replace local files with remote ones
  • Remove local database and import remote one
  • You may need to run a search and replace plugin to make sure all URLS are correct
  • Make sure you didn't overwrite your wp-config.php file!

Hope this helps :)

Maja B.
Maja B.
12,984 Points

Hi, There is a video about this: Local WordPress Development

Thank you. I went through the whole course in that section today but didn't find anything that explains this.

I don't want to migrate from localhost, I want to migrate TO localhost at the moment.

Maja B.
Maja B.
12,984 Points

The video Installing WordPress Locally found in the course Local WordPress Development guides you through installing WordPress on your localhost.

There are also official guidelines at http://codex.wordpress.org/Installing_WordPress that guide you through the process of installation on your localhost.

Hope it helps. Don't hesitate to come back if you have more questions or get stuck in the installation process.

Maja