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

HTML HTML Forms Text Areas and Selects

Local Host Setup

how do i configure my browser so that i connect to <code>http://localhost</code> just like nickpettit have i am using sublime text3

4 Answers

Calvin Nix
Calvin Nix
43,828 Points

Hey Mohd,

This requires you to set up a local server using either MAMP or XAMPP depending on what Operating System you are using.

However, if you just want to see your HTML and CSS code that you are writing in sublime text you just need to paste the directory into the browser.

Thanks, Calvin

Mohd: You need to set up a web server on your machine. In the future, if you could provide a little more info-- such as, which operating system you're using-- we can better answer your questions.

That being said, if you should be running windows:

https://www.youtube.com/watch?v=dC84NQqjYEc

Linux

Again, sir, more information! What flavor [Ubuntu;Fedora;Mint] are you running? What kind of processor does your machine have and how much RAM is it working with? Do you have a second computer? What are it's specifications?

I'm not trying to complicate your question, I promise. The information I'm asking for can lead to several different suggestions. For instance, if your machine's on the slower side, I would suggest Nginx in lieu of Apache.

https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=nginx%20vs%20apache

If you have a second machine, I would suggest installing your web server on that so that you can familiarize yourself with FTP vs SSH, etc.