ServerNeed — This Year's Best Offers For You

ServerNeed — More Than Hosting
Hosting

What Is Web Hosting? A Beginner's Guide

Web hosting is the rented server space and service that keeps a website online. Here is how it works, how it differs from a domain, and what to check before choosing a plan.

7 min read 6 views
Rows of server racks in a bright data centre
Table of Contents
  1. How web hosting works, step by step
  2. Web hosting vs a domain name
  3. What a hosting plan usually includes
  4. The main types of web hosting
  5. How to tell what kind of hosting you need
  6. Questions to ask before choosing a host
  7. The hosting learning path
  8. Frequently Asked Questions
  9. Next steps
  10. Sources

Web hosting is a service that stores your website's files and databases on a server that is connected to the internet around the clock, so anyone who types your address can load the site. When you buy hosting, you are renting part (or all) of that server, plus the software, network and maintenance that keep it running.

That one-sentence answer hides a few moving parts. This guide explains what actually happens when someone visits your site, how hosting relates to your domain name, the main types of hosting, and the questions worth asking before you pay for a plan.

How web hosting works, step by step

When a visitor opens www.example.com, roughly this happens:

  1. The browser asks DNS where the site lives. The Domain Name System translates the name into the IP address of the server that hosts the site. (Our guide to how DNS works explains this lookup in detail.)
  2. The browser connects to that server. Usually over HTTPS on port 443, which encrypts the connection with an SSL/TLS certificate.
  3. The web server software answers. Programs such as Apache, Nginx or LiteSpeed receive the request and decide what to send back.
  4. Dynamic pages are built on the fly. If the site runs on WordPress, Laravel or another PHP application, the server runs PHP code, which usually reads from a MySQL or MariaDB database, and produces an HTML page.
  5. The response travels back. HTML, images, CSS and JavaScript are sent to the visitor's browser, which renders the page.

Your hosting account is everything on the server side of that exchange: storage for the files, the database, the web server, PHP, email services, security tools and the network connection.

Web hosting vs a domain name

People often buy both together, so they are easy to confuse:

Domain name Web hosting
What it is Your address on the internet (example.com) The server space where your site's files live
Who provides it A domain registrar, under a registry A hosting provider
How it is paid Registered yearly, renewed to keep it Billed monthly or yearly for the plan
What happens if it lapses The address stops pointing anywhere and can eventually be registered by someone else The files go offline (and may be deleted after a grace period)

The two are connected through DNS: the domain's nameservers or DNS records point to the hosting server. You can keep a domain with one company and hosting with another; the article on nameservers vs DNS records explains how that connection is made.

What a hosting plan usually includes

Plans vary, but most include some combination of:

  • Disk storage for files, databases and often email. Modern plans typically use SSD or NVMe drives.
  • Bandwidth or data transfer, which is the traffic sent from the server to visitors.
  • Server resources such as CPU time, memory (RAM) and the number of simultaneous processes. On shared hosting these are capped per account; see hosting resource limits explained.
  • A control panel, very often cPanel, for managing files, domains, email, databases and SSL.
  • Email accounts on your own domain.
  • SSL certificates so the site loads over HTTPS.
  • Backups, at a frequency and retention that differ a lot between providers, so read the details.
  • Support for server-side problems.

Read the limits, not just the headline numbers

"Unlimited" storage or bandwidth on shared plans is almost always governed by a fair-use policy and by limits on CPU, memory and inodes (the number of files). Those limits decide how a busy site actually behaves.

The main types of web hosting

Hosting is grouped by how much of a server you get and who manages it:

  • Shared hosting: many accounts share one server, each with its own limits. It is the most affordable and easiest option, and suits most small business sites, blogs and portfolios. See what is shared hosting.
  • Cloud hosting: the site runs on infrastructure spread across several machines, which can improve resilience and scaling. See cloud hosting vs shared hosting.
  • VPS (virtual private server): a virtual machine with guaranteed resources and root access. More power and control, more responsibility. See what is a VPS.
  • Dedicated server: a whole physical machine for one customer.
  • Reseller hosting: a hosting account that lets you create and sell separate hosting accounts to your own clients.

A fuller comparison is in types of web hosting explained.

How to tell what kind of hosting you need

Start from the website, not from the plan list:

  • A brochure site, portfolio or small blog with a few hundred to a few thousand visits a day usually runs well on good shared hosting.
  • An online store needs reliable performance at checkout, regular backups and room for traffic peaks. WooCommerce stores often outgrow entry-level shared plans; see WooCommerce hosting requirements.
  • A custom application (for example Laravel or Node.js) may need specific software versions, background workers or scheduled tasks, which points towards a VPS.
  • Several client sites you build and manage suggest reseller hosting.

If you are unsure, it is usually safer to start on a plan you can upgrade without moving providers than to overbuy resources you will not use.

Questions to ask before choosing a host

  • Which PHP and database versions are available, and can you switch between them?
  • What are the CPU, memory, process and inode limits on the plan?
  • How often are backups taken, how long are they kept, and can you restore them yourself?
  • Is a free SSL certificate included and renewed automatically?
  • Where are the servers located relative to your visitors?
  • How do you contact support, and what do they actually support?
  • What does the plan cost at renewal, not just in the first term?

Our checklist for choosing web hosting for a small business goes through these in more depth.

The hosting learning path

The Hosting guides build on each other. A sensible reading order:

  1. Choosing: types of web hosting, what is shared hosting, cloud vs shared hosting and how to choose web hosting for a small business.
  2. Sizing: how much storage and bandwidth you need and hosting resource limits explained.
  3. Managing: what is cPanel, which PHP version to use and MySQL vs MariaDB.
  4. Speed: why is my website slow, website caching explained, LiteSpeed explained and Redis object caching.
  5. Running it: website uptime monitoring, common hosting errors and moving to a new host without downtime.

Frequently Asked Questions

Can I host a website on my own computer?

Technically yes, but a home connection is rarely suitable: home IP addresses often change, upload speeds are limited, the computer must stay on permanently, and you take on all the security work. Hosting providers exist to handle those problems.

Do I need hosting if I already have a domain?

Yes, if you want a website or email on that domain. The domain is only the address; hosting is where the site and mailboxes actually live.

Is free hosting a good idea?

Free plans can be useful for experiments, but they usually come with tight limits, the provider's adverts or subdomain, and little or no support or backups. For a business site, paid hosting is the safer choice.

Can I move my site to another host later?

Yes. Websites are moved between hosts all the time; it involves copying files and databases and then updating DNS. See how to move a website to a new host without downtime.

Next steps

If you are setting up your first site, decide what the site needs to do, then compare plans on resources, backups and support rather than price alone. When you are ready to compare options, you can browse the ServerNeed shared hosting plans and see what each plan includes.

Some plans include a domain; see free domain with hosting for what to check.

Sources

Last updated 7 October 2026

View All Articles