The Complete Explanation
How Web Hosting Works: Servers, Bandwidth & Everything In Between
What actually happens when someone visits your website — from the moment they type your URL to the page loading in their browser
📋 What’s in this guide
- What a Web Server Actually Is
- The Journey of a Web Request
- Hosting Types and How They Differ
- Bandwidth: What It Is and What It Isn’t
- Storage, RAM, and CPU Explained
- Uptime, Reliability and SLAs
- Web Servers: Apache, Nginx, LiteSpeed
- Databases and the Full Stack
- Control Panels: cPanel and Beyond
- Choosing the Right Setup
When someone types your website’s address into their browser and hits Enter, something remarkable happens in the fraction of a second before your page appears. A request travels across the internet, finds the right server among millions, that server retrieves your files and executes your code, and the result is transmitted back to the visitor’s browser — all before they’ve had time to blink.
Most website owners operate their sites without ever understanding this process. That’s fine until something goes wrong — until the site is slow, or down, or you’re trying to decide between hosting plans and don’t know what any of the specs mean. Understanding how web hosting actually works closes that gap.
This guide explains the full picture — from what a server physically is, to how bandwidth works, to why some hosting is ten times more expensive than other hosting that looks identical on paper. No jargon left unexplained, no important detail glossed over.
1. What a Web Server Actually Is
A web server is a computer — physically, just a computer — permanently connected to the internet and configured to respond to requests for web pages. The word “server” refers to both the hardware (the physical machine) and the software running on it that handles web requests. In common usage, people often mean both at once.
What distinguishes a server from your laptop or desktop is not exotic technology — it’s configuration and purpose. Servers are built to run continuously without interruption, often for years at a time. They’re optimised for handling many simultaneous connections rather than a single user’s interface. They live in data centres with redundant power, cooling, and internet connectivity designed to keep them running regardless of what happens outside.
What’s Inside a Server
A modern web server contains the same fundamental components as any computer:
- CPU (processor) — executes code, processes requests, runs your application logic
- RAM (memory) — holds data currently being processed, database query results, and application state in fast-access memory
- Storage (SSD or HDD) — stores your website’s files, database, email, and operating system permanently
- Network interface — the physical connection to the internet, typically at speeds of 1Gbps to 100Gbps in a data centre
What makes a data centre server different from a home computer is redundancy and reliability engineering. Multiple power supplies, enterprise-grade components rated for continuous operation, physically secured racks, and connections to multiple internet providers to ensure connectivity even if one network fails.
A data centre is a large, purpose-built facility that houses thousands of servers. They’re engineered environments: constant temperature and humidity control, multiple independent power feeds with generator backup, physical security, fire suppression systems, and redundant fibre optic connections to multiple internet providers. When you pay for web hosting, you’re renting space and resources inside one of these facilities.
Virtual Servers vs. Physical Servers
Most web hosting today doesn’t give you a dedicated physical machine. Instead, virtualisation software divides a single powerful physical server into multiple isolated virtual machines — each behaving as if it were its own separate computer. Your shared hosting account, your VPS, and most cloud instances are all virtual machines running on shared physical hardware.
Virtualisation is why you can get a “server” for a few dollars a month. The physical hardware is divided among many customers, each paying for a portion of its resources. The isolation between virtual machines is robust — one customer’s site can’t access another’s files or crash another’s environment — but resources (CPU cycles, memory bandwidth) are ultimately shared at the hardware level.
2. The Journey of a Web Request
Understanding what happens between a visitor typing your URL and your page appearing is one of the most useful mental models in web hosting. Here is the complete sequence.
From URL entry to rendered page — most of this completes in under 300ms for a well-configured site
Step 1: DNS Resolution
Before your browser can contact your web server, it needs to know the server’s IP address. It only has the domain name — yoursite.com — which is human-readable but meaningless to network infrastructure. The DNS system translates domain names to IP addresses. Your browser queries a DNS resolver, which consults the hierarchy of nameservers and returns the IP address associated with your domain. This step typically takes 20–100 milliseconds and is cached after the first lookup.
Step 2: TCP Connection and TLS Handshake
With the IP address in hand, the browser opens a TCP connection to the server. If the site uses HTTPS (it should), a TLS handshake follows — a cryptographic exchange that establishes an encrypted channel. Modern TLS 1.3 accomplishes this in a single round trip. This step typically adds 30–100 milliseconds depending on distance to the server.
Step 3: HTTP Request
The browser sends an HTTP request to the server: essentially a structured message saying “please give me the resource at this path.” For a page like /blog/my-post/, the request includes the path, accepted content types, cookies, browser information, and other headers the server may use to customise the response.
Step 4: Server Processing
This is where your hosting environment actually does work. The web server software (Apache, Nginx, or LiteSpeed) receives the request. For static files, it simply reads the file from storage and sends it. For dynamic pages — like a WordPress post — it executes PHP code, which queries the database, assembles the content, applies your theme’s template, and generates the final HTML. This step can take anywhere from 20 milliseconds (fast server, cached query) to several seconds (slow server, heavy uncached database queries).
Step 5: Response Transmission
The server sends back an HTTP response: a status code (200 for success, 404 for not found, 301 for redirect, etc.) followed by the content. For a typical webpage this means HTML first, then the browser parses it and makes additional requests for CSS files, JavaScript files, images, and fonts — each following the same request process, often in parallel.
Step 6: Browser Rendering
The browser assembles the downloaded files into the rendered page. The HTML provides the structure, CSS applies the visual styling, JavaScript adds interactivity, and images fill in the visual content. This is what the visitor finally sees.
Step 4 — server processing — is the one part of this journey entirely within your control as a site owner. DNS lookup time and network latency are determined by geography and infrastructure. But server response time is directly affected by your hosting plan quality, your application’s code efficiency, and your caching configuration. Google’s Core Web Vitals measure “Time to First Byte” — how quickly the server starts responding — as a key performance indicator.
3. Hosting Types and How They Differ
The fundamental difference between hosting types is how much of the underlying server resources are yours — and how much you share with other customers.
The “Noisy Neighbour” Problem
On shared hosting, all accounts on a server compete for the same pool of resources. If another site on your server suddenly receives a flood of traffic, or if a poorly coded script starts consuming excessive CPU, every other site on that server may slow down or become temporarily unavailable. This is the noisy neighbour problem, and it’s the primary reason to upgrade from shared hosting as your site grows.
Reputable shared hosting providers implement resource limits and monitoring to contain this problem — a single account can only consume so much CPU before being throttled. But the fundamental resource sharing means shared hosting is inherently less consistent than a VPS with dedicated resources.
“Managed” describes who is responsible for server administration — not the server type itself. A managed VPS means your host handles OS updates, security patches, monitoring, and backups. An unmanaged VPS gives you root access to a virtual machine and leaves all administration to you. Most small business owners and bloggers should choose managed hosting — the time saved on server administration is worth the price difference.
4. Bandwidth: What It Is and What It Isn’t
Bandwidth is one of the most misunderstood terms in web hosting — partly because it’s used to mean two different things, and partly because hosting providers market it in ways designed to obscure what you’re actually getting.
Network Bandwidth vs. Data Transfer
Technically, bandwidth refers to the capacity of a network connection — measured in bits per second (Gbps, Mbps). A server with a 1Gbps port can theoretically transfer up to 1 gigabit per second. This is like the width of a pipe — how much can flow through at once.
Data transfer — sometimes called monthly bandwidth in hosting marketing — refers to the total volume of data transferred over a billing period, measured in gigabytes or terabytes. This is the total amount of water that flowed through the pipe over a month.
When a hosting provider says you get “unlimited bandwidth,” they almost always mean unlimited data transfer — not unlimited network speed. Your actual network speed is shared with other customers on the same infrastructure.
What “Unlimited Bandwidth” Actually Means
Almost every shared hosting provider offers “unlimited” bandwidth (data transfer). This is a marketing term that means your account won’t be billed per gigabyte of data transferred. It doesn’t mean:
- You can use as much CPU and RAM as you want (those are still limited)
- You can host files for mass download distribution
- You can run bandwidth-intensive applications without consequence
- You’re exempt from fair use policies in the terms of service
In practice, shared hosting plans with “unlimited bandwidth” have terms of service that prohibit using disproportionate resources. If you’re genuinely transferring terabytes per month, you’ll be asked to upgrade or your account will be suspended. “Unlimited” means “more than you’ll realistically use for a normal website” — which is true for the vast majority of sites.
Every “unlimited” hosting plan has an acceptable use or fair use policy that defines what “unlimited” actually means in practice. It typically limits CPU usage, the number of simultaneous connections, inode counts (total files), and prohibits using the account as a file distribution server. These limits are rarely a problem for standard websites, but worth understanding before hosting something unusual.
How to Calculate Your Bandwidth Needs
For sites that do have bandwidth limits, a rough estimate is straightforward:
Monthly Transfer = Average Page Size × Average Monthly Pageviews
A typical webpage (HTML + CSS + JS + images) averages around 2–4MB. A site with 10,000 monthly pageviews and 3MB average page size needs approximately 30GB of monthly data transfer — well within even modest shared hosting allocations. Video hosting is the exception: video files are large, and high-traffic video sites need dedicated infrastructure or a CDN.
5. Storage, RAM, and CPU Explained
When comparing hosting plans, three resource specifications appear on almost every comparison: storage, RAM, and CPU. Understanding what each means in practice helps you evaluate plans honestly.
Storage (SSD vs. NVMe vs. HDD)
Storage is where your website’s files, database, email, and the server’s operating system live permanently. Three technologies are common in hosting:
| Storage Type | Speed | Relative Cost | Common Use |
|---|---|---|---|
| HDD (Hard Disk Drive) | ~100–150 MB/s | Cheapest | Legacy shared hosting, backups |
| SSD (SATA Solid State) | ~500–550 MB/s | Mid-range | Standard modern shared hosting |
| NVMe SSD | 3,000–7,000 MB/s | More expensive | Premium shared hosting, VPS, cloud |
For web hosting, storage speed directly affects how quickly the server can read your site’s files and database records. NVMe storage is 5–10x faster than SATA SSD for random read operations — the type of access pattern that web servers produce constantly. Modern hosting providers have largely standardised on NVMe as the performance baseline for quality plans.
RAM (Memory)
RAM determines how many operations the server can hold in fast-access memory simultaneously. For web hosting, the most RAM-intensive operations are:
- Database queries — MySQL caches frequently accessed data in RAM for fast retrieval
- PHP execution — each concurrent PHP request consumes memory while processing
- Caching layers — object caches like Redis store the results of expensive operations in RAM
- Application processes — Node.js, Python, and other runtimes hold application state in memory
On shared hosting, RAM is pooled across all accounts and not typically quoted per-account. On a VPS or cloud instance, RAM is guaranteed — it’s one of the primary specifications you choose when configuring your server.
CPU
CPU (processing power) is consumed whenever your server executes code — running PHP to generate a WordPress page, processing a database query, compressing an image, or running a background job. CPU is measured in cores (for dedicated/VPS plans) or in terms of usage limits (for shared hosting).
On shared hosting, CPU is typically limited by usage percentage rather than dedicated cores. A well-optimised WordPress site with good caching consumes minimal CPU — the cache serves most requests without executing PHP at all. A poorly optimised site with no caching might hit CPU limits with modest traffic, causing slow response times or rate limiting by the host.
Every time a WordPress page is served without caching, PHP executes, MySQL is queried, and your theme is assembled — consuming CPU and taking 200–800ms. With a page cache, the pre-built HTML file is served directly — consuming almost no CPU and taking under 20ms. A good caching plugin (WP Rocket, LiteSpeed Cache, or W3 Total Cache) is more impactful than upgrading to a more expensive hosting plan for most WordPress sites.
6. Uptime, Reliability, and SLAs
Uptime is the percentage of time your website is accessible to visitors. It sounds simple, but the details matter significantly when evaluating hosting providers.
What the Uptime Numbers Mean
| Uptime % | Downtime per Year | Downtime per Month |
|---|---|---|
| 99.0% | 87.6 hours | 7.3 hours |
| 99.5% | 43.8 hours | 3.6 hours |
| 99.9% | 8.76 hours | 43.8 minutes |
| 99.95% | 4.38 hours | 21.9 minutes |
| 99.99% | 52.6 minutes | 4.4 minutes |
The difference between 99.9% and 99.99% uptime sounds small — one decimal place. In reality it’s the difference between 8.76 hours of downtime per year and 52 minutes. For a business site, 8 hours of downtime is a serious event. For an eCommerce store, it’s potentially thousands of dollars in lost revenue.
SLAs: What They Actually Guarantee
An SLA (Service Level Agreement) is a contractual commitment from your host about uptime. The key detail that most people miss: an SLA is usually a compensation guarantee, not a prevention guarantee. If your host guarantees 99.9% uptime and falls short, you typically receive a credit on your account — not actual prevention of downtime.
The practical implication: an SLA tells you how seriously a provider takes reliability as a commitment, but it doesn’t eliminate the possibility of downtime. Evaluate uptime claims by checking independent monitoring services and third-party reviews, not just the provider’s own marketing.
What Causes Downtime
- Server hardware failure — disk failures, memory errors, power supply issues
- Network issues — connectivity problems between the data centre and internet providers
- DDoS attacks — malicious traffic floods that overwhelm server resources
- Software failures — OS bugs, web server crashes, database corruption
- Planned maintenance — server updates and migrations
- Resource exhaustion — your site consuming more resources than the plan allows
Don’t rely on your host to tell you when you’re down — set up independent monitoring. UptimeRobot’s free plan checks your site every 5 minutes and sends email or SMS alerts if it goes down. It also tracks historical uptime, giving you real data to compare against your host’s SLA claims. Five minutes to set up, runs forever in the background.
7. Web Servers: Apache, Nginx, and LiteSpeed
The term “web server” refers both to the physical machine and to the software running on it that handles HTTP requests. The three dominant web server software options each have meaningfully different performance characteristics and capabilities.
Apache — The Original Standard
Apache HTTP Server has been the most widely deployed web server software for most of the internet’s history. It’s extraordinarily flexible — its .htaccess file system allows per-directory configuration without touching the main server config, making it the preferred environment for shared hosting (where thousands of customers need isolated configuration).
Apache’s process-based architecture (spawning a new process or thread for each request) makes it memory-intensive under high concurrency. It handles thousands of simultaneous connections less efficiently than Nginx. For standard shared hosting with moderate traffic, Apache performs perfectly well. For high-traffic sites, its resource usage becomes a bottleneck.
Nginx — The Performance Standard
Nginx (pronounced “engine-x”) was designed specifically to handle high concurrency with minimal memory. Its event-driven, asynchronous architecture allows a single Nginx process to handle tens of thousands of simultaneous connections — tasks that would require significantly more RAM under Apache.
Nginx is now the default web server for many VPS and cloud environments, and is commonly used as a reverse proxy in front of Apache or application servers like Gunicorn or Node.js. It’s faster than Apache for serving static files, and its lower memory footprint makes it particularly suitable for VPS environments where RAM is a constrained resource.
LiteSpeed — The WordPress Accelerator
LiteSpeed is a commercial web server that’s fully compatible with Apache’s configuration format (including .htaccess files) while delivering significantly better performance — particularly for PHP-based applications like WordPress. Its LSCache technology (LiteSpeed Cache) provides server-level caching that integrates directly with WordPress via the free LiteSpeed Cache plugin.
Many modern shared hosting providers — including GreenGeeks, Hostinger, and HostArmada — have migrated to LiteSpeed precisely because of these performance advantages. For WordPress sites especially, LiteSpeed with LSCache delivers notably faster response times than equivalent Apache-based configurations.
| Web Server | Concurrency Handling | WordPress Performance | Common Use Case |
|---|---|---|---|
| Apache | Good (process-based) | Good | Traditional shared hosting, flexibility-focused setups |
| Nginx | Excellent (event-driven) | Very good | VPS, cloud, high-traffic sites, reverse proxy |
| LiteSpeed | Excellent | Best (with LSCache) | Modern shared hosting, WordPress-optimised environments |
8. Databases and the Full Stack
A modern website is rarely just static files. Most sites — WordPress, eCommerce stores, membership platforms, custom web apps — rely on a database to store and retrieve content dynamically. Understanding how the database fits into the hosting stack explains a lot about why site performance varies so dramatically between configurations.
The LAMP and LEMP Stacks
The technology stack that powers most of the web’s PHP-based sites has a name:
- LAMP — Linux (OS), Apache (web server), MySQL (database), PHP (language)
- LEMP — Linux, Nginx (replacing Apache), MySQL/MariaDB, PHP
These stacks describe the four layers of software that work together to serve a dynamic webpage. When you request a WordPress page, Linux manages the hardware resources, Nginx or Apache receives and routes the HTTP request, PHP executes the WordPress application code, and MySQL stores and retrieves the content, users, settings, and everything else.
MySQL vs. MariaDB
MySQL is the most widely used open-source relational database in web hosting. MariaDB is a community-maintained fork of MySQL — largely compatible with it, often marginally faster for certain workloads, and now the default database on many Linux distributions and hosting platforms. For the purposes of running WordPress or most web applications, they are functionally interchangeable.
How Database Performance Affects Your Site
Database queries are the most common bottleneck in dynamic website performance. Every time WordPress serves a page without caching, it runs multiple database queries — fetching the post content, the navigation menu, widget data, user roles, plugin settings, and more. Each query takes time. On a slow server with slow storage, these queries can add hundreds of milliseconds to every page load.
The solutions, in order of impact:
- Page caching — serve pre-built HTML instead of running queries on every request
- Object caching — cache expensive query results in memory (Redis or Memcached) so they don’t hit the database repeatedly
- Database optimisation — remove orphaned data, optimise tables, add appropriate indexes
- Upgrade server resources — more RAM means the database engine can cache more data in memory
9. Control Panels: cPanel and Beyond
A hosting control panel is the graphical interface through which you manage your hosting account — creating email addresses, installing WordPress, managing files, viewing usage stats, setting up SSL certificates, and hundreds of other tasks. The control panel is the layer between you and the underlying server, and its quality significantly affects how pleasant (or painful) day-to-day hosting management is.
cPanel — The Industry Standard
cPanel is the most widely deployed web hosting control panel in the world. It runs on Linux servers and provides a comprehensive interface covering file management, database management, email accounts, domain management, SSL certificates, cron jobs, and one-click application installers via Softaculous. Its ubiquity means that tutorials, documentation, and community knowledge are abundantly available.
cPanel’s pricing changes in 2019 caused many hosting providers to pass on significant cost increases, which has accelerated migration to alternatives. Despite this, it remains the reference standard that other panels are measured against.
Alternatives to cPanel
- Plesk — common on Windows hosting and some Linux servers, cleaner interface than cPanel, strong for agencies managing multiple sites
- DirectAdmin — lighter resource footprint than cPanel, often used by budget hosts as a cost-saving measure
- Custom panels — Hostinger’s hPanel, SiteGround’s Site Tools, WP Engine’s portal — host-developed interfaces optimised for their specific infrastructure and customer base
- No panel (VPS/dedicated) — bare Linux with SSH access, managed entirely via command line
Some newer hosting providers have replaced cPanel with their own custom dashboards. Hostinger’s hPanel and SiteGround’s Site Tools are purpose-built for their specific infrastructure and are often faster and cleaner than cPanel for common tasks. The tradeoff is that cPanel tutorials don’t apply directly — but most core concepts transfer, and the providers’ own documentation fills the gap.
10. Choosing the Right Setup for Your Needs
With all of the above as context, making a hosting decision becomes considerably more straightforward. Here is a practical framework.
Start With Your Site Type
- Blog, portfolio, or small business site — shared hosting on a LiteSpeed-based provider. GreenGeeks, Hostinger, or SiteGround. Enable caching, install SSL, done.
- WooCommerce or eCommerce — managed WordPress hosting or a mid-tier shared plan with sufficient resources. WPX, Kinsta, or SiteGround’s higher-tier plans.
- Custom web application (PHP, Python, Node.js) — VPS or cloud hosting with root access. Cloudways (managed), DigitalOcean, or Hetzner for the self-managed.
- High-traffic content site — managed cloud hosting or a CDN-backed solution. Cloudways on DigitalOcean, or Kinsta for WordPress.
- Enterprise or regulated workloads — dedicated servers or managed dedicated hosting with SLA guarantees. Liquid Web, InMotion, or directly with AWS/GCP.
The Specs That Actually Matter
- Storage type is NVMe — not HDD or SATA SSD
- Web server is LiteSpeed or Nginx — not legacy Apache alone
- PHP 8.x supported and switchable per account
- 24/7 support with live chat — not just ticket-based
- Automated daily backups included or available
- Free SSL (Let’s Encrypt) included and auto-renewing
- Data centre location is close to your primary audience
- Renewal pricing is acceptable — not just the intro rate
The Specs That Matter Less Than You Think
- “Unlimited” storage and bandwidth — meaningful only as a way of saying you won’t hit artificial caps on a normal site. Evaluate real performance instead.
- Number of websites allowed — useful if you’re managing multiple sites, but one well-chosen host beats five on a plan you don’t need.
- Exact gigabyte allocations — a 10GB limit and a 50GB limit are both irrelevant if your site is 2GB. Focus on performance, not storage numbers you’ll never approach.
Hosting Is Infrastructure.
Infrastructure Is Everything.
Web hosting is easy to overlook — it sits invisibly beneath your website, doing its job without fanfare when it works well. But the quality of your hosting shapes every visitor’s experience: how fast pages load, whether the site is available, how securely data is handled, and how much you pay for all of it over time.
Understanding how hosting works — what servers actually do, how requests travel, what bandwidth really means, why LiteSpeed outperforms Apache for WordPress, what a VPS gives you that shared hosting can’t — transforms hosting from a confusing expense into an informed decision. You know what you’re buying and why it matters.
Start with the right plan for where your site is today. Choose a provider whose infrastructure matches your needs. Enable caching, activate SSL, set up backups, and point a CDN at the front of it. That stack handles most of what the internet demands from a well-run website.
Good hosting is invisible.
Understanding it is how you make sure it stays that way.