π Hosting Basics
New to hosting? Learn about domain names, shared hosting, FTP and how to get your website online β no technical background needed.
A domain name is the human-readable address of a website (e.g. google.com, mysite.com). It maps to an IP address via DNS so you don't have to remember numbers.
A domain has two parts:
- Second-level domain β the name you choose (e.g.
mysite) - Top-level domain (TLD) β the extension (e.g.
.com,.net,.org)
When you buy a domain from a registrar (e.g. GoDaddy, Namecheap), you point its DNS to your hosting server's IP address. When visitors type your domain, DNS resolves it to your server.
These are the three main types of web hosting:
- Shared Hosting β Your website shares a server with hundreds of others. Cheapest option (~$3β10/month). Good for beginners and small sites. Limited performance.
- VPS (Virtual Private Server) β A virtual machine on a shared physical server, but with dedicated resources. More control, better performance (~$10β50/month).
- Dedicated Server β An entire physical server just for you. Maximum performance and control, most expensive (~$80β400+/month). Used by large sites.
FTP (File Transfer Protocol) lets you transfer files between your computer and your web hosting server. It's how you upload your HTML, CSS and JS files to make your website live.
Steps to use FTP:
- Download a free FTP client like FileZilla
- Get your FTP credentials from your hosting control panel (host, username, password, port)
- Connect β you'll see your local files on the left and server files on the right
- Drag and drop files from local to server
21; SFTP (secure FTP) uses port 22.On most shared hosting plans, your website files go inside the public_html folder (sometimes called www or htdocs). This is the web root β whatever is here is accessible via your domain.
public_html/
βββ index.html β Your homepage (yourdomain.com)
βββ style.css
βββ main.js
βββ about.html β yourdomain.com/about.html
βββ images/
βββ logo.png
index.html (or index.php) β the server looks for this file automatically when someone visits your domain root.cPanel is a web-based control panel that most shared hosting providers offer. It gives you a graphical interface to manage everything about your hosting account without using the command line.
Common things you can do in cPanel:
- π Manage files (File Manager β upload/edit/delete files in browser)
- π§ Create email accounts
- ποΈ Manage databases (MySQL)
- π Install SSL certificates
- π Manage domains and subdomains
- π View visitor statistics