Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML HTML Text Quotes

localhost/

what is localhost/? how can I access it so I can follow along with with nick on my lesson? do I have to purchase a web server first? I didn't do that yet because I'm waiting until after my track to better understand html & css.

2 Answers

Andrew Shook
Andrew Shook
31,709 Points

Localhost is just the name that apache uses to identify the machine that it is installed on. You don't need to buy a web server, since there are plenty of software packages out there that you can install on you computer to make it act like a server. What operating system are you using?

ok so I can just download apache for mac os x? nice business site by the way!

Andrew Shook
Andrew Shook
31,709 Points

Actually, OSX already comes with PHP, MySQL and Apache installed (they are built into the OS). However, unless you has a good grasp of the command line I would just use mamp.

mac os x(macbook air)

Andrew Shook
Andrew Shook
31,709 Points

You can download MAMP here. Once you install it, put your website inside the htdocs folder inside mamp(if you go to application and like on mamp you will see it there). However, it you're just using html at the moment you shouldn't need mamp. If you right click on the file in finder and open with chrome/safari/firefox it should display the web page for you.