Website Hosting Explained

Website Hosting Explained

Website hosting is reserved space on a computer server that stores & serves files related to a website (ie, HTML, CSS, images, etc) to browsers when requested via the Internet. Website hosting is usually connected to a human-readable domain name.

As an analogy, website hosting is like a plot of physical land…but on the Internet. Like a physical plot of land, it’s usually connected to a known address, and it’s only truly useful if you build something on it. Also like physical land, website hosting can come with an infrastructure to make your project easier / cheaper. It also has many tradeoffs.

That’s the short version. But there’s more to website hosting than the definition. I’ll cover common questions like –

  • What is Web Hosting?
  • How Website Hosting Works?
  • How Does Website Hosting, Domains, Email and Website Software Work Together?
  • How Much Does It Cost To Host A Website?
  • Can You Get Free Web Hosting?
  • What Makes a Good Website Host?
  • How Do I Purchase Website Hosting?
  • Can You Transfer Website Hosting?
  • Website Hosting Company Examples & Next Steps

Disclosure – I receive customer referral fees from companies mentioned on this website. All data & opinions are based on my professional experience as a paying customer or consultant to a paying customer.

What is Website Hosting?

In plain language, website hosting stores & serves website files to be delivered to whomever asks for them via the Internet.

Everything that you access on the Internet is ultimately made up of files delivered by a server. Website hosting refers to the server or section of a server where the files that make up a website are “hosted”.

Technically, any computer configured as a server and connected to the Internet (e.g., your home computer) can provide website hosting.

However, in practice, website hosting almost always refers to space on a leased pre-configured server that has a high-capacity connection to major Internet network.

How Does Website Hosting Work?

Website hosting works by taking a server, putting website files on it, adding software that provides instructions to access those files, then connecting a domain name so that people on browsers can easily find those files.

Website Hosting HTML Files

Website hosting usually has software installed to make management simpler. This is referred to as a software “stack”. The most common “stack” is LAMP, which refers to

  • Linux – the operating system of the server. Some website hosts use Windows, but it’s much less common.
  • Apache – the software that sorts and filters requests for files. Some hosts use NGINX, which is usually faster, but is not as widely supported by website software.
  • MySQL – the default database that the server has for websites that use databases. Some hosts allow other types of databases.
  • PHP – a programming language used by many website software programs. The host will usually support other languages as well.

Most of these settings are pre-configured and only used by non-developers to shop around and compare apples to apples among hosting companies. Website hosts usually have server / hosting management software (e.g., cPanel) installed to make installing website software, managing files, changing settings accessible for non-developers.

Here’s an example from InMotion Hosting’s cPanel. You see this when you log into your account.

InMotion cPanel

How Does Website Hosting, Domains, Email and Website Software Work Together?

Hosting stores your files. Domains make finding your files easy. Website software (e.g., WordPress) makes it simple to create, manage and manipulate lots of website files. Email software can also live on your website host and will manage & sort email requests (and receipts) on your server. Due to spam, many companies use their domain settings to send emails elsewhere (e.g., Google Suite for Business or Outlook).

Here’s a real-life example.

A few seconds (or minutes) ago, you clicked on something that made your browser send a request to my website hosting for all the files located at https://www.shivarweb.com/21925/website-hosting-explained/

That request was sorted and routed via my domain name / DNS settings to a VPS server at InMotion Hosting‘s datacenter in Los Angeles. My website’s files live on a section of that server with dedicated resources to store & serve my files. In the screenshot, I have my domain “pointed” to InMotion’s servers.

Namecheap DNS Setup

The pre-installed Apache software looked at said “yep, this request is legit…go this location for everything that you need”.

At that location lives a bunch of files (created and managed by a piece of software called WordPress) that were executed. They went and pulled information from the mySQL database, built out the files that needed to be delivered, and handed them off to the server to send out.

Web Hosting Images

Those files were pulled in and loaded in the correct order by your browser to show what you are seeing now.

A little bit later today, I might log into my server or WordPress installation and edit this page.

Ok.

That might all sounds *massively* complicated. And it is. But your house or car or dishwasher might also sound that complicated with every step involved.

Like your house or car or dishwasher thought, most everything is pre-configured and set up to work well every time. The important thing to know is that the process is not magic and every website on the Internet goes through a very similar process.

How Much Does It Cost To Host A Website?

It depends 🙂

The cost of hosting a website usually depends on the amount of resources that you want / need. Resources include not only memory & storage space, but also human customer support, bandwidth, software, security, company reputation, etc. Here’s an example from the company that hosts this website.

Example Web Hosting

The vast majority of websites can run just fine on shared hosting. Shared hosting is where a hosting company leases out accounts on a server and manages resources among them all. Shared hosting will usually run from $5 to $20 per month depending on features, plans, and discounting.

Get a sense of different shared plans on my Guide to Shared hosts here.

The pricing spectrum beyond shared hosting gets a bit tricky to price out. A VPS hosting plan is where a hosting company divides up the resources of a server so that you have known resources. VPS pricing usually runs $25 to $150 per month depending on features, plans and discounting.

Get a sense of different VPS plans on my Guide to VPS hosts here.

Now – the top end with dedicated hosting, managed hosting, specialized WordPress hosting, reseller, etc gets out of the scope of this explainer. However, I do want to touch on Cloud hosting. Cloud hosting is where you (usually) pay for use on one of the big cloud networks like Google, Amazon or Microsoft. It can be incredibly cheap…or way more expensive than you’d want. That’s because shared / VPS hosting operates on a bundled pricing and cloud is straight a la carte.

Get a sense of different WordPress hosting plans, Reseller hosting plans, and Dedicated hosting plans here.

Additionally, even shared hosting accounts will usually allow you to host multiple websites on a single account. So when you are comparing costs, be sure to look at *your* total value for your use.

Can You Get Free Web Hosting?

Yes…but there will be strings attached, so you’ll pay in some form or fashion.

You will either pay with advertising (Wix Free Plans, WordPress.com Free Plans, etc), poor service and hard limits (Blogger, Google Sites, etc) or with complexity (Google Cloud).

There are some companies that claim to offer free web hosting…but I would be *extremely* wary. Remember that if you are not paying for the product…you are the product.

What Makes a Good Website Host?

A good website host matches your budget & goals. They provide what they promise. I am not one to preach that there is “one best host” or a single way to be a good host, because everybody needs different things.

Some people value cost above all – and do not mind poor performance or limited customer support if they get a genuinely good deal. Some people want excellent service no matter what. Some people want a company that is independently owned and some want a big name-brand.

There are absolutely hosting companies that are better than others, but the biggest factor is your own goals and expectations.

I have a guide to choosing the best shared hosting for your project here (along with similar guides to WordPress and VPS hosting).

How Do I Purchase Website Hosting?

Find a hosting company that meets your goals, pick your plan and buy! Most established hosting companies are pretty good at “onboarding” – ie, moving a new customer to an active customer.

Go to my guide to best shared hosting companies, take the quiz, and head over. Once you’ve purchased hosting, you’ll also need a domain name to “connect” to your account. From there you can install website software (like WordPress). I wrote a start to finish setup guide here.

Can You Transfer Website Hosting?

Yes! Absolutely. One of the best things about self-hosting rather than using a hosted website builder is that you can generally pick up and leave for better pastures.

You will need to make sure that the plan and company that you’ve picked have the same “tech stack” – (ie, Linux). Many times hosting companies will do the transfer for you for free, but I also have a somewhat dated but still accurate guide to transferring manually.

Next Steps

Now that you know about website hosting, be sure to put your knowledge to use. Find the right hosting company for you or learn how to optimize the account that you already have or check out the related post below to learn more!

The post Website Hosting Explained appeared first on ShivarWeb.

“”