Updated November 2026

How to self-host a website on a $5 VPS

You do not need a control panel or a $40 cloud instance to put a static site or a small app on the internet. You need a public IP, a domain, SSH, and a process that serves port 80 and 443.

What a $5 VPS is good for

At around $5 a month you typically get 1 vCPU and 1 GB of RAM. That is plenty for static HTML, a small Dockerized blog, or a single low-traffic app. It is a tight fit for Coolify plus several apps, especially if you build images on the server. For Coolify, see the Coolify sizing guide and start at 2 GB when you can.

1. Buy a basic KVM VPS

Look for KVM virtualization, a public IPv4 address, root SSH, and Ubuntu 24.04 or Debian 12. Hostinger’s cheaper KVM plans can land near this budget on a longer-term promo; confirm the RAM and term length on the checkout page. If you only need a simple WordPress site and you do not want to manage a server, shared hosting is usually the better buy.

2. Point your domain at the server

In your DNS host, add an A record for the hostname you want (for example www or guides) to the VPS IPv4 address. Wait until it resolves from the public internet before you request a certificate. If you also have an AAAA (IPv6) record, it must point at this same machine, or some visitors will hit a dead address.

3. Lock the box down just enough

Log in over SSH as root (or a sudo user). Create a non-root user if you will use the machine day to day, enable automatic security updates, and allow only the ports you need:

ufw default deny incoming
ufw default allow outgoing
ufw allow 22
ufw allow 80
ufw allow 443
ufw enable

Keep port 80 open even if you want HTTPS-only. Let’s Encrypt’s HTTP-01 check uses it.

4. Serve the site and get a certificate

Two simple paths:

A bare-minimum Caddyfile for a static site looks like this:

example.com {
    root * /var/www/html
    file_server
    encode gzip
}

Caddy will request a Let’s Encrypt certificate once the DNS record is live and port 80 reaches the server.

5. Backups and the boring stuff that saves you later

Once the site loads on https:// your domain without a browser warning, you are done. Everything else — CI, staging, object storage — can wait until you have a reason for it.

Compare current Hostinger VPS prices if you want a starter KVM box for this setup, and only buy a plan with enough RAM for what you will actually run.