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 trialSulema Martinez
1,535 PointsI did the local install but now I am getting a new computer. How do I transfer my work to my new computer?
I have downloaded MAMP and WordPress on my new machine. What steps do I need to take to transfer the sites I was working on my old machine to my new one?
4 Answers
Tim Kennedy
6,807 PointsSince you already have MAMP all set up on your new machine, all you need to do is copy over whatever directory you have your localhost pointing to on your old machine, to your new machine. Then point your localhost on your new machine to that same named directory. Everything should work the same as your old machine set up. It will make it easier to copy over the root directory that holds all your localhost projects. That way you won't need to worry about changing any paths to your wordpress projects locally.
Tim Kennedy
6,807 PointsAre your files in the mamp -> htdocs directory? Or do you have mamp pointing to another directory? Either way, get a copy of that directory (zip drive etc...) and point your new localhost on new machine to that directory.
Sulema Martinez
1,535 PointsI did that and most of the pages are missing when i go in to look at the site.
Sulema Martinez
1,535 Pointsok. I had named a blank file that same name. but now i don't have access to the admin section of the site. AHHH
Tim Kennedy
6,807 PointsDid you also export your database and import it into phpmyadmin on your new machine.....
Sulema Martinez
1,535 Pointsthat's where I keep getting the error message. I exported it and cant seem to get to import it
Tim Kennedy
6,807 PointsI assume you created the new database in phpmyadmin on new machine first, then once in that database you import the .sql file into it
Sulema Martinez
1,535 PointsI did. Now I can see the site but can't log into the admin part.
Sulema Martinez
1,535 PointsSulema Martinez
1,535 PointsHow do I copy the directory? I tried exporting it a few different ways and got error messages when I imported it on the new machine.