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

Shane Dalton
Shane Dalton
12,412 Points

Cannot load Website in MAMP

Hi Guys,

I am developing locally and I cannot load a pre-written website. I might be approaching this the wrong way.

I have installed wordpress into a site folder I created by using the directions discussed in the MAMP tutorials - by creating new tables, users, and defining the type of hosting - ie. Localhost.

All I want to do is display the website so I can see how it looked. I don't want to pay for hosting as I am re-creating the site for the owner.

I set WordPress up with the same Database details that are in the wp-config file of this website, but when I go to my WordPress dashboard the site isn't there, just the default theme.

I want WordPress to display the created content.

Any help would be much appreciated

4 Answers

Kevin Korte
Kevin Korte
28,148 Points

You'll want to make sure that you have all of the plugins and theme files installed in the correct folders, and also, to display the same data, you'll need to export the database of the other site, and import it into your localhost one, because the "content" will be stored in the database, not the theme.

Just an add on, I believe Kevin is correct here. Go to the backend of the old site and install all in one migrate db. export the files to the new site, by installing the same plugin and using the import settings. If you have migrate DB pro, then use that. all in one is free, and it works. you need to migrate the DB to the new folder, not just update wp-config.

The database is the theme.

Did you try to change the theme?

Shane Dalton
Shane Dalton
12,412 Points

Do you mean installing a .zip file? Should I navigate to the themes folder for the website?

.zip files only accepted, unless I load the entire site through the "add themes" button?

Shane Dalton
Shane Dalton
12,412 Points

Unpacking the packageโ€ฆ

Installing the themeโ€ฆ

The package could not be installed. The theme is missing the style.css stylesheet.

Theme install failed.