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 How to Make a Website Sharing a Website Pick a Web Host

Jonthue Michel
Jonthue Michel
1,462 Points

Do I have to get a domain name & hosting now if I already done it before with someone site?

What other reasons is their to launch a site besides just knowing how to get a domain and hosting?

3 Answers

Colin Marshall
Colin Marshall
32,861 Points

You can develop websites locally on your computer without having to put them on a live server. I would recommend doing this because the page load time will be greatly reduced if you don't have to send requests across the internet to see every little change you make to the site. Plus it's free, which is always nice.

If you're just using HTML and CSS you can just open HTML files on your hard drive right in your web browser. If you're using PHP or anything that requires a server, you can run a server locally on your computer with something like MAMP for OS X or XAMPP for Windows.

Hopefully that helps answer your question, if not please let me know.

Fábio Tavares da Costa
Fábio Tavares da Costa
11,985 Points

[...] have? no.

It's handy to turn transferring files UpAndDown second nature. You can also, for instance, use services like GitHub and Heroku to host your projects.

Domain name & hosting work together but are distinct. That is, you can get a custom domain name like example.com from a service like dnsimple and use it wit GitHub too. Later you can get a hosting plan and use a sub domain.example.com for GitHub and the main will be your public_html folder on the chosen hosting service.

You will also stumble upon CPanel soon or later. That's about learning by doing.

No pressure. It is a sample configuration among many options.

Hope it helps!

Jonthue Michel
Jonthue Michel
1,462 Points

So I guess it would be good if I got one anyways for php development and cpanel!

Fábio Tavares da Costa
Fábio Tavares da Costa
11,985 Points

You do not need it to get acquainted with PHP. You can do an AMP variant as Colin Marshall said.

Depending on what course you take, Treehouse will provide virtual machines that are ready out of the box.

I would take a look at a service like Bitnami in this case too. It's free for users.

If you are interested in a topic like WordPress a one-click-install may be handy. But you will find it at Bitnami as well.

You will see control panels soon or later. No need to hurry.

Happy coding!

Shawn Boyd
Shawn Boyd
14,345 Points

You're certainly not required to purchase a domain and hosting as part of this course. It's just walking you through the process should you want to.