New: Complete Beginner's Guide to Coding is now available in Premium
Updated: Indian Govt Exam roadmaps now include salary breakdowns & timelines
Tip: Use the Career Hub to explore all career paths in one place
Infrastructure

Website Hosting

Everything you need to know to host a website — from domain to live

1-2 weeks Beginner Essential Skill 10 Steps
Website Hosting
Complete Guide
About This Guide

Every website needs hosting — it's the foundation that makes your site accessible to the world. Understanding hosting is not optional for any web developer or business owner. In India, you can get reliable hosting for as low as ₹99/month (Hostinger). This guide walks you through every step — from buying a domain to configuring DNS, SSL, email, and CDN — so your website is fast, secure, and professional from Day 1.

Who Is This For?
  • Anyone launching their first website or blog
  • Freelancers who need to host client websites
  • Students learning web development
  • Small business owners going online
What You Will Learn
Buy and configure a domain name
Set up shared hosting with cPanel
Install SSL and force HTTPS
Configure professional email and CDN
Progress: 0 / 10 steps completed
1
Choose a Domain Name Day 1

Pick a domain name that is short, memorable, and relevant. Use .com for business, .in for India-specific. Check availability on GoDaddy, Namecheap, or BigRock. Avoid hyphens and numbers.

GoDaddy Namecheap BigRock
2
Choose a Hosting Plan Day 1-2

Shared hosting (₹100-300/month) for beginners. VPS (₹500-2000/month) for growing sites. Cloud hosting (AWS, DigitalOcean) for advanced users. Recommended: Hostinger, SiteGround, or Bluehost for beginners.

Hostinger SiteGround Bluehost
3
Buy Domain + Hosting Day 2

Purchase domain and hosting (can be from same or different providers). If separate, you'll need to update nameservers. Most beginners buy both from the same provider for simplicity.

Hostinger GoDaddy BigRock
4
Set Up cPanel Day 3

Login to cPanel (your hosting control panel). Explore File Manager, phpMyAdmin, Email Accounts, and Domains. cPanel is where you manage everything about your hosting.

cPanel WHM Plesk
5
Install SSL Certificate Day 3

Install a free SSL certificate (Let's Encrypt) from cPanel. This gives your site HTTPS — essential for security and Google ranking. Most hosts provide free SSL.

Let's Encrypt cPanel SSL Cloudflare
6
Upload Your Website Files Day 4

Upload your website files via cPanel File Manager or FTP (FileZilla). Place files in the public_html folder. For WordPress, use the one-click installer in cPanel (Softaculous).

FileZilla cPanel File Manager Softaculous
7
Set Up Database Day 4

Create a MySQL database in cPanel. Create a database user and assign permissions. For WordPress, enter these details in wp-config.php. phpMyAdmin lets you manage the database visually.

phpMyAdmin cPanel MySQL MySQL Workbench
8
Set Up Professional Email Day 5

Create a professional email (you@yourdomain.com) in cPanel Email Accounts. Configure it in Gmail using SMTP/IMAP settings. Professional email builds trust with clients.

cPanel Email Gmail SMTP Zoho Mail
9
Configure DNS & CDN Day 5-6

Point your domain to your hosting server using nameservers or A records. Set up Cloudflare (free) as CDN for faster loading and DDoS protection. Cloudflare also provides free SSL.

Cloudflare DNS Manager cPanel DNS Zone
10
Test & Monitor Day 7

Test your website on multiple devices and browsers. Set up Google Search Console and Google Analytics. Configure uptime monitoring (UptimeRobot — free). Set up automated backups in cPanel.

Google Search Console UptimeRobot UpdraftPlus

Deep Dive Topics

Shared Hosting — What You Need to Know

Shared hosting means your website shares a server with hundreds of other websites. It's the most affordable option and perfect for beginners, small businesses, and sites with under 10,000 visitors/month.

Pros & Cons:

ProsCons
Very affordable (₹99–₹300/month)Shared resources — slow under high traffic
Easy to manage with cPanelLimited RAM and CPU
Free SSL includedNoisy neighbour effect
One-click WordPress installNo root server access

Best shared hosting providers in India:

ProviderPrice/monthBest For
Hostinger₹99Best value, beginners
SiteGround₹499Speed + support
Bluehost₹299WordPress official recommendation
BigRock₹149Indian support, .in domains
MilesWeb₹99India-based servers

When to upgrade: Move to VPS when your site consistently gets 10,000+ visitors/month, or when you need custom server software, dedicated resources, or root access.

VPS & Cloud Hosting

A VPS (Virtual Private Server) gives you a dedicated slice of a physical server. You get guaranteed RAM, CPU, and storage — no sharing with other sites. Cloud hosting (AWS, DigitalOcean) takes this further with auto-scaling and global infrastructure.

TypePriceBest ForDifficulty
Shared Hosting₹99–₹300/moBeginners, <10K visitorsEasy
VPS (Hostinger)₹599–₹2,000/moGrowing sites, 10K–100K visitorsMedium
DigitalOcean Droplet$6–$48/moDevelopers, custom stacksHard
AWS EC2Pay-as-you-goEnterprise, high trafficExpert
Linode (Akamai)$5–$40/moDevelopers, good docsHard

Basic DigitalOcean LAMP setup (Ubuntu):

# Update system sudo apt update && sudo apt upgrade -y # Install Apache sudo apt install apache2 -y # Install MySQL sudo apt install mysql-server -y sudo mysql_secure_installation # Install PHP sudo apt install php libapache2-mod-php php-mysql -y # Restart Apache sudo systemctl restart apache2

When you need VPS: Your site gets 10,000+ visitors/month, you need custom PHP extensions, you run multiple high-traffic sites, or you need SSH access for deployment automation.

Choosing & Managing Your Domain

Your domain name is your online identity. A good domain is short, memorable, easy to spell, and relevant to your brand. Avoid hyphens, numbers, and unusual TLDs.

TLD comparison for India:

TLDBest ForPrice/year
.comAny business — most trusted globally₹800–₹1,200
.inIndia-specific businesses₹500–₹800
.co.inIndian companies₹400–₹700
.orgNGOs, non-profits₹900–₹1,400
.ioTech startups₹3,000–₹5,000

Where to buy:

  • GoDaddy — largest registrar, frequent discounts, good for .com
  • Namecheap — competitive pricing, free WhoisGuard privacy
  • BigRock — India-based, good for .in domains, Hindi support
  • Hostinger — free domain with hosting plans

Domain privacy & renewal tips:

  • Enable WHOIS privacy (free on Namecheap) to hide your personal details from public WHOIS lookup
  • Set auto-renew — losing your domain is catastrophic
  • Register for 2–5 years upfront — Google may give a slight ranking boost to longer registrations
  • Buy common misspellings and redirect them to your main domain

SSL Certificates & HTTPS

SSL (Secure Sockets Layer) encrypts data between your visitor's browser and your server. HTTPS is now a Google ranking factor and browsers show a "Not Secure" warning on HTTP sites. Every website needs SSL — and it's free.

How to install Let's Encrypt SSL in cPanel:

  1. Login to cPanel → Security → SSL/TLS
  2. Click "Let's Encrypt SSL" (or "AutoSSL")
  3. Select your domain and click Install
  4. Wait 2–5 minutes for the certificate to issue
  5. Verify at https://yourdomain.com

Force HTTPS in .htaccess:

RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Cloudflare SSL (alternative — free):

  • Sign up at cloudflare.com → Add your site → Change nameservers
  • Cloudflare provides free SSL + CDN + DDoS protection
  • Set SSL mode to "Full (strict)" for best security

Why Google requires HTTPS: Chrome marks HTTP sites as "Not Secure". Google confirmed HTTPS is a ranking signal. Payment processors (Razorpay, Stripe) require HTTPS. User trust increases significantly with the padlock icon.

Website Speed & CDN Optimization

Google uses Core Web Vitals as a ranking factor. A 1-second delay in page load time reduces conversions by 7%. Fast sites rank higher, retain visitors longer, and convert better.

Cloudflare CDN setup (free):

  1. Sign up at cloudflare.com
  2. Add your domain → Cloudflare scans your DNS records
  3. Change your domain's nameservers to Cloudflare's nameservers
  4. Enable "Auto Minify" (HTML, CSS, JS) in Speed settings
  5. Enable "Rocket Loader" for JS optimization

Speed optimization checklist:

OptimizationToolImpact
Image compressionTinyPNG, ShortPixelHigh
Browser cachingWP Rocket, W3 Total CacheHigh
CDNCloudflare (free)High
Minify CSS/JSAutoptimize, CloudflareMedium
Lazy load imagesWordPress built-in (5.5+)Medium
Use WebP imagesImagify, ShortPixelMedium
Database cleanupWP-OptimizeLow-Medium

Testing tools: Use GTmetrix and Google PageSpeed Insights to measure your site speed. Aim for a GTmetrix Grade A and PageSpeed score above 80.

Tools You Need
Hostinger
Hosting provider
Paid
Cloudflare
CDN + DNS + SSL
Free
FileZilla
FTP client
Free
cPanel
Hosting control
Paid
phpMyAdmin
Database manager
Free
UptimeRobot
Uptime monitoring
Free
Let's Encrypt
Free SSL
Free
Google Analytics
Traffic analytics
Free
Salary Guide
Freelance Setup ₹2K-10K/site
Server Admin ₹4-12 LPA
DevOps Engineer ₹8-30 LPA
Cloud Architect ₹20-60 LPA
Pro Tips
Hostinger is the best value for Indian beginners — ₹99/month with free domain
Always use Cloudflare — it's free and makes your site faster and safer
Set up automated daily backups before anything else
Shared hosting is fine for up to 10,000 visitors/month