Skip to content
Server Handbook

Type at least two letters, for example “nginx 502” or “backup”.

~/how-we-test$

How we test every guide

Every command on this site has been run on a fresh server before it was published. This page explains how, where to find the proof on each guide, and what a run cannot tell you.

Updated

The seven steps behind every guide

  1. See what already ranks. Before writing, we read the pages people find today for the same question and note what they leave out or get wrong: a step that fails on the current release, no output, no way to check the result. We never copy their wording or trust a command we have not run.
  2. Read the source. When a step is needed because of how a program works, we find the reason in its source code at the version Ubuntu ships, and note the lines.
  3. Write the check. Each guide has a saved script that runs its commands in the page’s order, and turns every claim on the page (“Nginx answers on port 80”, “the old session stays open”) into a test.
  4. Run it on a fresh server. Every run starts on a new server and logs in over SSH as an ordinary user with sudo, the way you will. The failures a guide covers are run too: the typo, the closed port, the wrong permission. The run also records the server just before the first step and again after the last, on security guides audits the whole server with Lynis at both points, and on guides that open a port or set up HTTPS, scans the server from a second server on the internet.
  5. Fix the guide, never the check. If the server does something the draft did not expect, the guide is changed to match the server. If a single claim fails, nothing is published.
  6. Publish the proof. A run in which every claim held publishes its full log, and the page shows its output, the versions it ran on, and the source lines it rests on.
  7. Run it again. When a new Ubuntu release or update changes the answer, the check runs again and the page follows the new run.

Where a guide is run

Most guides run on a virtual machine we boot for that run alone, from Ubuntu’s official cloud image: its own kernel, systemd, firewall and real reboots. Before the run, the server gets only what a hosting provider gives you, a root login with your SSH key. After the run it is deleted.

Two Ubuntu releases, two separate runs

Many servers still run Ubuntu 24.04, and new ones get 26.04. So every new guide is run twice, on two fresh servers: once on Ubuntu 26.04 LTS and once on Ubuntu 24.04 LTS. Each run has its own run log; they are never merged. The guide follows 26.04, and where 24.04 needs a different step it is right under that step, in a section marked “On Ubuntu 24.04”.

Each guide also has a table, “Ubuntu 26.04 vs 24.04”, with the exact package versions each run installed and every difference the two runs showed: a changed command, a different output or default, or an error that only one release gave. If nothing differed, the table says so. Every guide on the site has been run again this way on both releases, each time on a server that was new for that run.

The exact releases our published guides ran on, read from the runs themselves: Ubuntu 26.04.1 LTS, Ubuntu 26.04 LTS, Ubuntu 24.04.5 LTS, Ubuntu 24.04.4 LTS.

A guide that needs the public internet, such as getting a Let’s Encrypt certificate, runs on a rented cloud server instead. It is rebuilt from the provider’s stock Ubuntu image before every run, and the result is also checked from another network, the way a visitor would reach it.

For those runs we also rent a second small server in a different data centre. It scans the test server from the outside with nmap (the ports a stranger can reach) and, on HTTPS guides, with testssl.sh (the certificate, the protocols and the ciphers the server offers). A scan from the same machine, or from our own laptop behind a VPN, would report what we can reach, not what the internet can, so the scanner is always a separate server. The tools are used as published: Lynis 3.1.7, nmap 7.94 from Ubuntu’s own package, and testssl.sh 3.2.5 at its release tag. None is installed on the server under test. A score or a grade is what that tool said about that one server on that day; we never call a server “secure” or “certified” because of it.

Either way, the commands are typed into a real SSH session as a sudo user, and anything a guide asks you to do in a browser is done in the same run and shown as a screenshot from it.

What you can check on any guide

WhatWhere to find itWhat it tells you
That it passedThe heading of the “Tested on” box: “Tested on live Ubuntu …”, “Passed all N checks”The release it ran on, how many claims it tested, and when it ran.
The run itself“Read the run log” in the same boxA plain-text log: the time, every version, every command with what it printed, every claim with what it saw, and the check’s own code.
The versionsThe “Tested on” boxThe OS release, the kernel, and the exact version of every package the guide uses, all read from the server during the run.
Why a step is needed“Checked against the source” in the same boxThe source files a step depends on, each opened at the tested version with the lines marked.
The outputUnder each commandWhat the server printed in that run. A long output shows its start or end and says how many lines are not shown.
Earlier runs“Earlier live checks” in the same boxEvery earlier passing run, with its date, versions and log. None is ever replaced or deleted.
What changed“Article history” under the boxOne dated row for each change a reader would notice, linked to the run log of that version.
What the guide changed“What this guide changed on the server” in the “Tested on” boxEvery package added or upgraded, service started, port now listening and file changed in /etc between the first step and the last, and the disk space used. Recorded on the test server, never typed.
An outside audit (security guides)The “Lynis hardening index: before → after” line in the same boxThe score Lynis, a free security auditing tool, gave the whole server before and after the steps, and which of its findings the steps resolved. The tool, its version and its full output are in the run log.
What the internet sees (guides that open a port)The “Open from the internet: before → after” line in the same boxThe ports an nmap scan found open on the server, before the steps and after, scanned from a second server in another data centre. It shows what a stranger can reach, not what the server thinks it offers.
The HTTPS setup (guides that serve a site over HTTPS)The “testssl.sh … grade” line in the same boxWhat testssl.sh found when it connected from the second server: the grade it gave, the protocol versions the server offers and refuses, and every finding it raised, with its severity.
The same checks on YOUR server (guides that change a server)The “Check it on your server” part of the same boxA short read-only script that runs the guide’s end checks on your own server and prints PASS or FAIL for each, with the step that fixes a FAIL. It changes nothing. Before we offer it, the run proves it twice: it must fail on the stock test server and pass every check once the steps are done. Both results are in the run log, and the page gives its SHA-256 so you can compare the file before you run it.

All of it in one place, for every guide: every guide and the run that proved it, with the package versions each one ran on.

Names and addresses you see are examples

Guides use example.com, example.net and addresses such as 203.0.113.10, which are reserved for documentation. When a run uses a real domain and server, the real name and address are swapped for these in every saved output, and the published log is checked for any that slipped through. Put your own domain and address in their place.

When a new release comes out

There is one page for each task, never a copy for each Ubuntu version. When a new release comes out, the check runs on it. If everything still passes, the page moves to the new release and the earlier run stays listed. If the answer changed, the page is updated, a row is added to its history, and the old steps stay on the same page in a collapsed section for readers who still run the older release.

What a run cannot prove

  • Your server may differ from ours: another provider’s image, an older release, or software you installed earlier. The “Tested on” box says exactly what ours had.
  • A run proves the steps worked on that day, with those versions. Updates can change output; that is why the versions and the date are on every page.
  • An audit score is that tool’s own score for our test server on that day, at the version shown. It is not a certification, and it does not mean a server is secure.
  • The check-your-server script tests the end state the guide describes, nothing more. A PASS means those few checks match; it does not review the rest of your server.
  • Take a backup or a snapshot before you change a server that matters. See the disclaimer.

Standards we write to

A standard is listed here only when it changes how a guide is written or built. Each link opens the standard itself.

Our primary sources are the software itself, run on the server, and its source code and documentation from the project that makes it. We are not affiliated with Canonical, Debian or any vendor we write about.

Corrections

If a command does not behave on your server the way a guide says, answer “No” under “Did this work for you?” at the end of the guide, or write to hello@serverhandbook.com with the page, your Ubuntu release and what you saw. We run the guide again, fix what is wrong, and add a dated row to its history. We never change a guide silently, and its date moves only when it has been run again.

Every guide names the person who tested it, and each person has a profile that says who they are.