Beginner · 12 lessons

What is Hosting

Web hosting is the foundation of every website on the internet. A hosting provider stores your site files (HTML, CSS, images, databases) on a server that runs 24/7 and connects to the global network. When a visitor types your domain name, DNS points them to this server, and the web server software (Apache or Nginx) delivers your pages to their browser.

Key Concepts

Shared Hosting VPS (Virtual Private Server) Dedicated Servers Cloud Hosting cPanel / Plesk Uptime SLA Bandwidth & Storage PHP & MySQL Versions

Key Takeaways

  • ✓ Every website needs hosting — it is where files live and are served from.
  • ✓ Shared hosting is cheapest; VPS and cloud give more control and resources.
  • ✓ Choose hosting based on traffic, tech stack, budget, and growth plans.
  • ✓ Control panels simplify domain, email, database, and file management.

Lessons in This Topic

1

What is Web Hosting?

How servers store and deliver website files.

A web server is a computer running software like Apache or Nginx. It listens on port 80 (HTTP) or 443 (HTTPS) for incoming requests. When a browser requests yoursite.com/index.html, the server finds that file and sends it back. Hosting companies manage the hardware, network, power, cooling, and security so you focus on your website.
2

Shared vs VPS vs Dedicated vs Cloud

Compare all hosting types and when to upgrade.

Shared hosting puts hundreds of sites on one server — cheap but limited. VPS gives you a virtual slice with guaranteed RAM and CPU. Dedicated means an entire physical machine is yours. Cloud hosting uses virtual machines across data centers with auto-scaling. Start shared for blogs; move to VPS/cloud when traffic or custom software demands it.
3

How a Website Loads (Full Cycle)

Browser → DNS → CDN → Server → Database → Response.

When you visit a site: (1) Browser checks DNS for the IP address. (2) CDN may serve cached static files from a nearby edge. (3) If not cached, request hits the origin server. (4) Server runs PHP/app code, queries MySQL if needed. (5) HTML is assembled and sent back. (6) Browser renders the page and loads CSS/JS/images.
4

Control Panels: cPanel & Plesk

Manage everything from one dashboard.

Control panels provide GUI for tasks that would otherwise need SSH. You can add domains, create email accounts, manage MySQL databases, install WordPress with one click, view error logs, and set up SSL certificates. cPanel is most common on Linux shared hosting; Plesk supports both Linux and Windows.
5

Choosing the Right Hosting Plan

Traffic, storage, PHP version, and scalability.

Evaluate: expected monthly visitors, disk space for media, whether you need SSH access, PHP 8.x support, free SSL, daily backups, staging environments, and support quality. E-commerce and SaaS apps need more resources than static brochure sites. Always check renewal pricing, not just introductory offers.
6

Web Server Software: Apache vs Nginx

The software that serves your pages.

Apache uses .htaccess for per-directory config — great for shared hosting. Nginx handles more concurrent connections with less memory — ideal for high-traffic and reverse proxy setups. Many production stacks use Nginx as reverse proxy in front of Apache or PHP-FPM.

Related Topics

Ask AI