What is web hosting and why do I need it?

Last updated: 26 August 2026 · Reviewed: 26 August 2026 · By: Alston Antony

Quick answer

Web hosting is rented space on an always-on computer (a server) that stores your website's files and sends them to any browser that asks for your address. Without hosting there is nothing for a browser to load, even if you own the domain. A basic shared plan for a Sri Lankan small business costs LKR 400 to 1,500 per month billed annually (checked 27 August 2026), which is what most brochure and lead-gen sites need.

What web hosting actually does when a page loads

Web hosting runs a four-step handshake every time someone opens your site. First the browser asks DNS "where does yourbusiness.lk live?" DNS answers with an IP address, usually one owned by the host. The browser then opens a TCP connection to that IP, does a TLS handshake for the padlock, and asks the web server (Apache, LiteSpeed or Nginx) for the page. The server either reads a pre-built HTML file off disk or, for WordPress, runs PHP against a MySQL database, then streams the response back.

From a Colombo broadband connection to an Indian data-centre that whole loop usually completes in 120 to 320 ms for a cached page, and 500 to 1,200 ms for an uncached WordPress render. Slow hosting is almost always the PHP step, not the network.

Why "just build the site" without hosting does not work

A website is a stack of files (HTML, CSS, JavaScript, images) plus, for WordPress, a database. A domain is only a label that points somewhere. Without hosting the label points to nothing, so typing yourbusiness.lk into a browser returns a DNS error. The common myth that "the .lk domain is the website" mixes the two up. LK Domain Registry sells the .lk name; a separate host runs the server. The registrar you buy the domain through and the host you buy the server from can be, and often should be, different companies.

What a Sri Lankan small business site actually costs to host

A typical brochure or lead-gen site in Sri Lanka runs on entry shared hosting priced in three ranges. Hostinger's Premium plan is roughly USD 2.99 per month intro, USD 7.99 renewal, about LKR 1,020 intro and LKR 2,720 renewal at USD/LKR 340 (checked 27 August 2026). Namecheap's Stellar Plus is USD 1.99 intro, USD 4.44 renewal, roughly LKR 680 to LKR 1,510 per month. A well-vetted local host bills in LKR direct at around LKR 500 to 1,200 per month on annual terms. Domain and business email sit on top: LKR 3,500 to 6,500 per year for a .lk name and LKR 7,000 to 15,000 per year for Google Workspace or similar.

Where the intuition fails - hosting is not storage on your PC

Many first-time buyers picture hosting as "space on a computer somewhere". The picture is technically true but misleading, because a hosting server also runs PHP, MySQL, mail, DNS, SSL certificate renewal, backups and a control panel like cPanel or hPanel. The 5 to 20 GB of disk on a shared plan is the least interesting thing you are renting. The interesting things are CPU minutes, RAM, PHP workers and IOPS, which is why cheap "unlimited storage" plans still throttle when WordPress fires too many queries at once.

The Sri Lanka context that changes the choice

Three things separate a Sri Lankan buyer from a UK or US one. Billing currency matters: international hosts charge in USD and the LKR card rate moves, whereas local hosts invoice in LKR and issue a local tax receipt. Payment method matters: not everyone has an international-enabled card, and local hosts accept LKR bank transfer and mobile wallets. Support language matters: local hosts usually offer Sinhala or Tamil support during Colombo business hours, while international hosts run English chat round the clock. Server location matters least, because a well-configured CDN closes most of the Colombo TTFB gap for cached content.

What hosting does not include

Buying hosting does not build the website. The host gives you a blank server and, on WordPress plans, a WordPress install. Design, content, plugin choices, security hardening and speed optimisation are still separate work, either by you or by a designer. Hosting also usually excludes professional business email at a custom domain; most hosts include free mailbox space on shared plans, but the deliverability of any mail server that also serves web traffic is unreliable. Budget for Google Workspace or Microsoft 365 as a separate line.

Next: how to choose web hosting

Frequently asked questions

Is web hosting the same as a domain?

No. A domain is the address people type (yourbusiness.lk); hosting is the rented server that stores the site and answers when browsers ask for it. You need both. See our domain vs hosting guide for the full breakdown.

Do I need web hosting if I use a website builder like Wix or Shopify?

Hosting is included in the builder's subscription. Wix, Shopify and Squarespace all run their own servers, so you pay one bill instead of hosting plus a builder licence. The trade-off is you cannot move the site to another host without exporting and rebuilding.

Can I host a website for free in Sri Lanka?

Yes for hobby sites, no for a real business. Free tiers on Cloudflare Pages, Netlify or GitHub Pages host static sites well, but they do not run WordPress or WooCommerce, and their subdomains hurt trust. A basic paid plan from LKR 400 per month solves both.

How long does it take to set up hosting?

About 15 minutes for account creation and DNS pointing, then up to 24 hours for the domain's DNS to fully propagate. Most reputable hosts offer free migration if a live site already exists elsewhere.

Sources

  1. Hostinger - shared hosting pricing — Public plan pricing (USD) (checked 26 Aug 2026)
  2. LK Domain Registry — .lk registry operator (formerly nic.lk) (checked 26 Aug 2026)

Related reading