🌏 Hosting Basics

New to hosting? Learn about domain names, shared hosting, FTP and how to get your website online β€” no technical background needed.

🌍 Domain Names
Q1What is a domain name and how does it work?Beginnerβ–Ό

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.

πŸ’‘ Buying a domain and buying hosting are two separate things. You can buy them from the same provider or different ones.
Q2What is the difference between shared, VPS and dedicated hosting?Beginnerβ–Ό

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.
πŸ’‘ For a beginner starting out with a learning/Q&A site, shared hosting is perfectly fine and very affordable. You can always upgrade later.
πŸ“ FTP β€” File Transfer Protocol
Q3What is FTP and how do I use it?Beginnerβ–Ό

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
πŸ’‘ Your hosting provider's cPanel usually has an "FTP Accounts" section where you can find or create FTP credentials. The default FTP port is 21; SFTP (secure FTP) uses port 22.
Q4Where do I upload my website files on my hosting server?Beginnerβ–Ό

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
⚠️ Make sure your homepage is named index.html (or index.php) β€” the server looks for this file automatically when someone visits your domain root.
Q5What is cPanel and why do hosting companies use it?Beginnerβ–Ό

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
πŸ’‘ For uploading HTML files, you can use cPanel's built-in File Manager instead of FTP β€” just drag and drop in your browser. No extra software needed!