Web hosting on a VPS
Most small and mid-size websites run comfortably on 2 vCPU, 4 GB RAM, 40 GB NVMe for $4.25 a month in Europe, or on P4 in North America and Asia. The rest of this page shows how to size it from real memory numbers and how to set it up.
Recommended start: P1, $3.95/mo
How much RAM does a web server need?
Memory is the number that decides the plan, and it is easy to estimate. Nginx itself uses only a few megabytes per worker process. The real consumers are the PHP-FPM workers, the database and the operating system page cache that keeps your files fast.
A plain PHP application usually needs 40~80 MB per PHP-FPM worker while it serves a request. A CMS with many plugins can reach 100~150 MB. MariaDB or MySQL with a small buffer pool takes 300~600 MB. Ubuntu with SSH, cron and logging sits around 250 MB. Add it up and you get a reliable estimate:
| Site profile | PHP workers | Approx. memory | Plan |
|---|---|---|---|
| Static pages, landing pages | none | under 400 MB | P1 |
| One PHP site with a database | 6~10 | 1.2~1.8 GB | S4 |
| 5~15 small client sites | 15~25 | 2.5~4 GB | S8 |
| Busy shop or forum | 30~40 | 5~7 GB | S16 |
Leave at least a quarter of the RAM unused by processes. Linux fills that space with cached files, and a warm cache is what makes repeat page loads feel instant.
Which family and city should a web host use?
Pick the city first, then the family that is offered there. A visitor in Berlin waiting on a server in Sydney adds roughly 300 ms to every round trip, and no amount of CPU fixes that.
- Visitors mostly in Europe: the Shared vCPU family gives the lowest price per GB of RAM ($1.06 on S4) and every size includes 20 TB of outgoing traffic. It is sold in our European cities such as Frankfurt and Amsterdam.
- Visitors in the US, Canada or Asia: use the Performance family in Ashburn, Toronto, Singapore or Tokyo. Its newer EPYC cores also render PHP pages faster per request.
- A site that is busy all day: once PHP keeps the CPU above half load for hours, the Dedicated CPU family removes neighbour noise from your response times.
The monthly price is identical in every city, so the choice is only about where your audience lives.
Plans that fit
Sizes picked for this project, smallest first. Prices are per month; the order total is the shortest term that reaches $40.
| Plan | Why | Per month |
|---|---|---|
| P1 | Static sites or one light PHP site, sold in all 15 cities | $3.95 |
| S4 | One CMS site with its database, lowest cost per GB in Europe | $4.25 |
| S8 | A small agency server with 5~15 client sites | $6.35 |
| P4 | Web apps for North America or Asia, faster single core | $12.05 |
| D8 | Busy sites that keep PHP working all day | $25.85 |
How do I set up Nginx and PHP-FPM on a fresh server?
Start from the Ubuntu 24.04 image, log in as root and install the stack in one go:
apt update && apt -y upgrade
apt -y install nginx php8.3-fpm php8.3-mysql php8.3-curl php8.3-gd php8.3-mbstring php8.3-xml php8.3-zip mariadb-server certbot python3-certbot-nginx
mysql_secure_installationThen set the worker count to match your memory. Open /etc/php/8.3/fpm/pool.d/www.conf and change these lines (example for S4):
pm = dynamic
pm.max_children = 12
pm.start_servers = 3
pm.min_spare_servers = 2
pm.max_spare_servers = 5
pm.max_requests = 500Create one file per site in /etc/nginx/sites-available/, link it into sites-enabled, test with nginx -t and reload. Point the domain at the server IPv4 and IPv6 (see pointing DNS), then run certbot --nginx -d example.com -d www.example.com for free HTTPS that renews itself. The full walkthrough is in Nginx with HTTPS.
How many websites can one VPS hold?
Dozens, as long as their combined traffic fits the memory budget. Low-traffic brochure sites cost almost nothing while idle, because PHP-FPM only spawns workers when requests arrive.
For clean separation, give every site its own Linux user and its own PHP-FPM pool file, for example /etc/php/8.3/fpm/pool.d/shop.conf with user = shop and a separate socket. A compromised plugin on one site then cannot read the files of another. Set pm = ondemand with pm.process_idle_timeout = 30s on quiet sites so their workers exit when nobody is visiting.
Up to 10 servers fit in one account, so you can also split heavy clients onto their own server later without a second login.
What does the traffic allowance mean for a website?
Only data leaving the server counts, and incoming traffic is free. Divide the allowance by your average page weight to see how far it goes.
With 20 TB included in Europe and a typical page of 2 MB including images, that is about 10 million full page views a month before anything extra is billed. In North America P4 includes 1 TB, which still covers around 500,000 heavy page views; in Asia-Pacific it includes 1 TB. Beyond the allowance, each extra TB costs $0.72 in Europe and North America and $4.98 in Asia-Pacific and Sao Paulo.
Two habits stretch the allowance a long way: serve images as WebP or AVIF, and enable gzip or Brotli compression in Nginx for HTML, CSS and JavaScript.
How do I keep a web server secure?
Close everything except SSH and web ports, patch automatically, and keep PHP from writing where it should not.
- Firewall inside the OS:
ufw allow OpenSSH,ufw allow 80,443/tcp,ufw enable. Our firewall guide covers nftables too. - Log in with SSH keys and disable password logins, as described in SSH hardening.
- Install
unattended-upgradesso security patches land overnight. - Install
fail2banwith thenginx-http-authandsshdjails. - Keep site files owned by the site user and only the upload folder writable.
Network-level DDoS filtering is already in front of every server, so floods are handled before they reach your Nginx.
What does a web hosting server cost per year?
One year of S4 is $51.00, or $61.20 with seven daily backup copies included. If that server holds ten small client sites, each site costs you a fraction of what typical shared hosting bills per site.
For North American visitors, P4 is $12.05 a month and is sold from $72.30 for 6 months. Every term charges the same monthly rate, so a shorter term only means a smaller single payment, never a higher price. Each order is paid once in crypto and must total at least $40.
Web hosting VPS, answered
Can I install a control panel?
Yes. You have full root access, so free panels that support Ubuntu or AlmaLinux install normally. The AlmaLinux 9 image is a common base for panels built for Red Hat systems.
Is Apache supported instead of Nginx?
Any web server that runs on Linux works, since we do not limit what you install. Apache with mpm_event and PHP-FPM uses memory in a similar way to the Nginx setup above.
What if the site outgrows its plan?
Plans are not resized in place. Order the larger plan, copy the files and database across, switch DNS, then delete the old server. The steps are in moving to a bigger plan.
Do I get an IPv6 address for my sites?
Each server ships with a single IPv4 plus a /64 of IPv6. Add both an A and an AAAA record for each domain so visitors on IPv6 networks connect directly.
What happens if I forget to renew?
Seven days ahead of the term end, a renewal invoice shows up under Invoices. An unpaid server is paused and kept for 14 days, so your sites go offline but nothing is deleted until that window passes.
Build it on CheapVPS
Pick the plan, a city near your users and the image, then pay the order in crypto.