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

Shannon Malloy
Shannon Malloy
911 Points

Moving live WordPress site to Local Errors

Hello,

I'm having an issue with moving my live site to localhost.. I've followed the steps I've seen here on tree house and elsewhere but there must be something I'm missing..

I've downloaded my files from my FTP I've created a database I've exported my live site's database and imported it into the new database I have a folder in htdocs where the files live (xampp is running) I've updated wp-config.php with the database name, user, pass etc.

The result I'm getting is: "This site can’t be reached localhost refused to connect."

This is driving me nuts! Does any one have an idea of what the problem could be?

Your help is appreciated!

When does the error occur? When you try to reach www.domain.com/wp-admin? When you attempt to log in? Or somewhere else.

Shannon Malloy
Shannon Malloy
911 Points

Hi Chris! Thanks for your response, the error is occuring in both localhost/thefoldername and /wp-admin.

2 Answers

Hi Shannon,

Have you parsed all the code to update your URL's to the match that of the local version?

Craig

What was your export process? did you install a fresh install of Wordpress locally first? then exported the database into the local folder? then ftp'd the files into the folder?