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 Local WordPress Development Local WordPress Development Installing a Local Web Server on a Mac

Mark Shepherd
Mark Shepherd
746 Points

MAMP is working but I can't see the files in localhost as shown in the lesson?

So I installed MAMP 3.4. I did the TEST page in it works fine, however I can't see the testsites.com folder or the localwp.com folder. so the path is;

Sites > localwp.com Sites > testsites.com > test (page)

If I change the root one step along the path I can see the flyers either in localwp.com or testsites.com

Is it because I need to create an Index Folder as such?

2 Answers

Hi Mark.

Well when installing MAMP you get a folder htdocs -> this is your root - index folder. Every folder you make in this folder you have to access it through http://localhost/foldername .

You need a index file in that folder so that your page is rendered (if no index file is present you'll get a list of items in that folder.

So to see your different pages you have to address them absolutely or you can create a index file with the links to your sufolders.

Another way is creating virtual hosts -> VirtualHosts Walkthrough

Hope this shines some light on the question at hand.

Happy Coding!!!

Mark Shepherd
Mark Shepherd
746 Points

Thanks Nejc, I ended up working out that index file was not present. In fact there was no files in the htdocs folder. I created one and its working that way it should. I will definitely have look at the VirtualHosts Walkthrough as well. I am totally new to Wordpress as I am an owner rather than a developer, but I a excited to learn what it takes to become both. Thanks again for your support. Blessings Mark

Welcome Mark.

That's why we are here - to help each other.

When you get the hang of MAMP and VirtualHosts ( next step, if you find the time for it ) and you're felling ready to take up a challenge then try to compile Apache,MySQL and PHP from sources.

It's quicker to go with MAMP but when compiling the MAMP stack on your own you get a deeper know-how on the matter and it could prove worthy someday :)

And this knowledge applies to other CMS and Front-End & Back-End Development. You don't have to know it 100% but a little will help you in the long run.

In the meantime : Happy Coding!