Menu
Theme

Web hosting

Internet Based Programming

Habari! Ready to Find a Home for Your Website?

Imagine you've just built a fantastic new house. You designed it, painted it, and put in all the furniture. But there's one problem... it's just floating in the air! To make it a real home, you need a piece of land (a shamba) with an address so people can find you. In the world of websites, that piece of land is called web hosting. It's the space on the internet where your website files live, and the address is your domain name. Let's get you ready to find the perfect plot for your amazing web project!

What is Web Hosting? The Shamba for Your Website

At its core, web hosting is a service that allows you to post your website onto the internet. A web hosting company provides the technologies and services needed for your website to be viewed online. Here’s what they give you:

  • Server Space: This is the actual physical computer (called a server) where your website's files (HTML, CSS, images, etc.) are stored. Think of it as the size of your plot of land.
  • Bandwidth: This is the amount of data that can be transferred between your website and your visitors. Imagine it as the width of the road leading to your house. A wider road allows more visitor traffic at once without causing a jam!
  • Domain Name: This is your website's unique address, like www.myshop.co.ke. It's how people find your "shamba" on the vast internet.

Image Suggestion: An illustration of a vibrant Kenyan landscape. In the middle is a server rack that looks like a modern building. Digital roads made of light connect this server building to small houses and shops, each with a sign showing a '.co.ke' domain name. The style should be colourful and futuristic but with a distinct Kenyan feel.

Types of Web Hosting: From Apartments to Standalones

Just like there are different types of housing in Kenya, there are different types of web hosting. Your choice depends on your budget and your website's needs.

  1. Shared Hosting (The Apartment Block):

    This is the most popular and affordable option. You share a single server and its resources (like memory and processing power) with hundreds of other websites. It’s like living in an apartment block in Roysambu or Pipeline – cheap and great for starting out, but noisy neighbours (a popular website on the same server) can sometimes slow you down.

    • Best for: Beginners, personal blogs, small business websites.
    • Pros: Very cheap, easy to manage.
    • Cons: Limited resources, can be slow if another site on the server gets a lot of traffic.
  2. VPS (Virtual Private Server) Hosting (The Townhouse):

    With VPS, you still share a physical server with others, but you get your own dedicated "virtual" section. It's like owning a townhouse in a gated community. You have your own space and resources, offering more freedom and stability than a crowded apartment, but you still share the main compound's infrastructure.

    • Best for: Growing businesses, websites with medium traffic.
    • Pros: More control and resources than shared hosting, more stable.
    • Cons: More expensive, requires some technical knowledge.
  3. Dedicated Hosting (Your Own Standalone House):

    This is the big league! You rent an entire physical server for yourself. It’s like owning a standalone house in Karen or Runda. All the resources are yours. You have complete control, top-notch security, and amazing performance. Of course, this luxury comes at a high price.

    • Best for: Large e-commerce sites, high-traffic websites, applications with special security needs.
    • Pros: Maximum power and control, highly secure.
    • Cons: Very expensive, requires expert technical skills to manage.

Let's Do Some Hesabu: Calculating Your Needs

Before you choose a plan, you need to estimate your needs. Let's calculate the two most important things: storage and bandwidth.

1. Storage Space Calculation

How much space will your website files take up?


    Let's estimate for a small portfolio website:
    - 15 Web Pages (HTML/CSS/JS)  ~ 5 MB
    - 50 High-Quality Images (avg. 1MB each) = 50 MB
    - 5 PDF Documents (avg. 2MB each)      = 10 MB
    - Email Accounts & Database         ~ 100 MB
    --------------------------------------------------
    Total Estimated Storage: 165 MB

Conclusion: A basic hosting plan offering 1 GB (which is about 1000 MB) of storage is more than enough to start with!

2. Bandwidth Calculation

Bandwidth is the data transferred when people visit your site. Let's estimate it for one month.


    Formula: Avg. Page Size x Monthly Visitors x Avg. Pages per Visit

    - Average Page Size: 2 MB
    - Expected Monthly Visitors: 1,000
    - Average Pages a Visitor Clicks: 3

    Calculation:
    2 MB * 1,000 visitors * 3 pages/visitor = 6,000 MB

    Total Estimated Bandwidth: 6 GB per month

Conclusion: A hosting plan that offers at least 10 GB of monthly bandwidth would be a safe choice.

Domain Names & DNS: Your Website's Address & Post Office

A domain name is the friendly name you type in the browser (e.g., safaricom.co.ke). But servers don't understand names; they understand numbers called IP Addresses (e.g., 196.201.214.200).

The Domain Name System (DNS) is the internet's phonebook. It translates the human-friendly domain name into a computer-friendly IP address, connecting your visitors to your website's server. In Kenya, an organization called KeNIC (Kenya Network Information Centre) manages the .ke domain registry.

Here’s how it works:


  You (Visitor)                     DNS Server (The Post Office)       Web Server (Your Shamba)
  [ Type 'myshop.co.ke' ]  ------>  [ "Where is 'myshop.co.ke'?" ]
                                             |
                                             |
                                             v
                                    [ "It's at IP 192.168.1.5!" ]  ----> [ Hello! I am 192.168.1.5 ]
                                             |                                    ^
                                             |                                    |
  [ Browser connects to IP ] <---------------                                    |
           |                                                                      |
           v                                                                      |
  [ Website Loads! ]  <-----------------------------------------------------------

A Real-World Kenyan Scenario: Asha's Online Mitumba Store

Asha, a student just like you, has created a beautiful website to sell high-quality second-hand clothes online. She needs to get it hosted. She expects about 500 visitors in her first month. Her website has lots of photos, so she calculates she needs about 200MB of storage and 2GB of bandwidth.

She looks at local hosts like Kenya Web Experts and Sasahost. She sees a "Starter" Shared Hosting plan for Ksh 1,500 per year. It offers 5GB of storage, 50GB of bandwidth, and a free .co.ke domain name. This is perfect for her! It's affordable, gives her more than enough space and bandwidth to grow, and she gets her professional domain name for free. Asha signs up, uploads her files, and her business, "Asha's Closet," is officially live on the internet!

Ready to Plant Your Flag?

Congratulations! You now understand the essentials of web hosting. You know the different types, how to estimate your needs, and how domain names work. Your next step is to explore different hosting providers, compare their plans, and choose the one that's right for your project. Don't be afraid to start small with shared hosting – you can always upgrade as your website grows. Now go on and find that perfect piece of digital shamba!

Pro Tip

Take your own short notes while going through the topics.

Previous JavaScript basics
KenyaEdu
Add KenyaEdu to Home Screen
For offline access and faster experience