Skip to content
Server Handbook

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

~/courses$

Free courses, from basic to advanced

Pick a course, start at lesson 1 and follow the numbers to the end. Every lesson is one real task, run on a fresh Ubuntu server, with the output it printed.

~/courses/dspace$ls lessons/

DSpace server course

DSpace is the open-source repository many universities use for theses, articles and research data. This course takes you from a bare Ubuntu server to a DSpace you can run for years, one tested lesson at a time.

4 of 20 lessons ready

Set it up: From a fresh server to a DSpace people can use.

  1. 1How to install DSpace 10 on Ubuntu 26.04 and 24.04PostgreSQL, Solr, the backend and the web interface as services.
  2. 2Put DSpace behind Nginx with HTTPS Coming soonA real name, a free certificate, and the REST API on the same address.
  3. 3Your first community, collection and item Coming soonThe structure every repository needs, in the web interface.
  4. 4Send DSpace email Coming soonRegistration and workflow mail through an SMTP relay, and how to test it.

Run it: The jobs a repository manager does every month.

  1. 5Bulk import items (Simple Archive Format) Coming soonHundreds of items from the command line, with the import report.
  2. 6Turn on OAI-PMH and check what it serves Coming soonSo Google Scholar and library systems can harvest your records.
  3. 7Back up and restore DSpace Coming soonDatabase, assetstore and Solr, restored on a new server to prove it works.
  4. 8Upgrade DSpace to the next version Coming soonBackend and web interface, with the database migration and a way back.
  5. 9DSpace cron jobs: the scheduled tasks DSpace 10 needs, testedThe crontab for the search index, thumbnails, statistics and email alerts, and how to check each ran.
  6. 10DSpace command-line reference Coming soonEvery /dspace/bin/dspace command a server admin uses, with the output it prints.

Connect it: DSpace next to the other systems a library or a journal runs: each lesson tests both ends.

  1. 11Get DSpace items into Google Scholar Coming soonThe citation tags Scholar reads, the sitemaps, and how to check what it sees.
  2. 12Receive OJS articles in DSpace (SWORD) Coming soonTurn on DSpace’s SWORD v2 endpoint and accept deposits from an OJS journal.
  3. 13Harvest another repository or journal into DSpace Coming soonA collection that pulls records from an OAI-PMH source such as OJS, on a schedule.
  4. 14Show DSpace items in Koha’s search: the DSpace side Coming soonThe OAI-PMH feed and records Koha harvests, checked from outside.

Fix it: The errors DSpace servers show, each reproduced on a test server and fixed. Titled with the message as DSpace prints it.

  1. 15Reset a forgotten DSpace admin password from the command lineFrom the command line, when nobody can sign in.
  2. 16DSpace “Expected mime type application/octet-stream but got text/html”: the Solr fixSolr is not answering where DSpace looks: the causes, in order, and the fix for each.
  3. 17“No _links section found” Coming soonThe web interface and the REST API disagree on the address: find which setting.
  4. 18“Access is denied. Invalid CSRF token” Coming soonWhy sign-in fails with 403, and the HTTPS and host settings that fix it.
  5. 19DSpace shows “500 Service unavailable” Coming soonThe browser cannot reach the REST API: backend down, port closed or proxy wrong.
  6. 20“Flyway migration error” after a DSpace upgrade Coming soonRead the Caused by line, database info, and the safe way through.
Open the DSpace server course

~/courses/moodle$ls lessons/

Moodle server course

Moodle is the open-source learning platform schools and universities use for their courses. This course covers the server side: setting Moodle up, keeping it fast and safe, and fixing it when it breaks, one tested lesson at a time.

0 of 22 lessons ready

Set it up: The server every other lesson builds on.

  1. 1Install Moodle Coming soonNginx, PHP-FPM, PostgreSQL, moodledata outside the web root, the command-line installer.
  2. 2Moodle behind Nginx with HTTPS Coming soonA certificate, the right wwwroot, and the redirect loop it prevents.
  3. 3Run Moodle’s cron every minute Coming soonAnd clear “The admin/cli/cron.php script has never been run”.
  4. 4The PHP settings Moodle asks for Coming soonmax_input_vars, upload size, memory and OPcache, until the environment check passes.
  5. 5Send Moodle email through SMTP Coming soonAnd find out why mail is not sent.
  6. 6Install Moodle with MariaDB Coming soonThe differences from PostgreSQL that the runs show.

Run it: Keep it fast, safe and up to date.

  1. 7Redis for sessions and the cache Coming soonMeasured before and after.
  2. 8Size PHP-FPM and OPcache for Moodle Coming soonFrom a load test on the server, not rules of thumb.
  3. 9Back up and restore Moodle Coming soonDatabase, moodledata, code and config, restored on a new server.
  4. 10Upgrade Moodle to the next version Coming soonMaintenance mode, the command-line upgrade, and rolling back.
  5. 11Upgrade PHP for a new Moodle Coming soonTwo PHP versions side by side, then switch.
  6. 12Install and remove plugins from the command line Coming soonWithout clicking through the web installer.
  7. 13Move Moodle to a new server or domain Coming soonDatabase search-and-replace from the command line.
  8. 14Secure a Moodle server Coming soonFile permissions, dataroot, and the Security checks report passing.
  9. 15Moodle maintenance from the command line Coming soonMaintenance mode, caches, one scheduled task, a password reset.
  10. 16Monitor a Moodle server Coming soonmoodledata disk, cron health, PHP-FPM status and an uptime check.

Fix it: The errors Moodle servers show, reproduced and fixed.

  1. 17“Error reading from database” Coming soonDatabase down, wrong password, or connections full.
  2. 18Moodle stuck in maintenance mode Coming soonAfter a failed upgrade.
  3. 19A large course backup or restore fails Coming soonTimeouts, upload limits and a full disk.
  4. 20“Invalid permissions” on moodledata Coming soonAfter a move or an upgrade.
  5. 21Scheduled tasks stuck or failing Coming soonThe task queue and its locks.
  6. 22Moodle is slow: find the cause Coming soonSlow queries, the cache, and cron overlap.
Open the Moodle server course

~/courses/ojs$ls lessons/

OJS server course

Open Journal Systems (OJS) is the open-source platform thousands of university journals publish with. This course covers running it on your own server, one tested lesson at a time.

0 of 15 lessons ready

Set it up: From a fresh server to a journal that accepts submissions.

  1. 1Install OJS Coming soonNginx, PHP-FPM, the database, and the files folder outside the web root.
  2. 2OJS behind Nginx with HTTPS Coming soonA certificate and the base URL settings that go with it.
  3. 3Send OJS email through SMTP Coming soonSo submission and review mail arrives.
  4. 4Run OJS scheduled tasks Coming soonReminders, statistics and the job queue, from cron or a systemd timer.
  5. 5PHP limits for large submissions Coming soonUpload and post size, and how to check them.

Run it: Keep the journal safe and current.

  1. 6Back up and restore OJS Coming soonDatabase, files folder and config, restored on a new server.
  2. 7Upgrade OJS to the next version Coming soonThe command-line upgrade, and rolling back.
  3. 8Move OJS to a new server or domain Coming soonAnd the settings that must follow it.

Connect it: OJS next to a repository: each lesson tests both ends.

  1. 9Deposit OJS articles in DSpace Coming soonThe SWORD plugin, the DSpace collection it fills, and the deposit checked on both sides.
  2. 10OJS OAI-PMH: what harvesters see Coming soonThe endpoint, the records it serves, and a repository harvesting them.

Fix it: The errors OJS servers show, reproduced and fixed.

  1. 11“The directory specified for uploaded files does not exist or is not writable” Coming soonThe installer’s files-folder error: three causes and the fix.
  2. 12OJS email is not sent Coming soonWhere OJS writes why, each cause with its log line, and DMARC.
  3. 13A file upload fails Coming soonSize limits, Nginx’s 413, permissions and a full disk, each with its message.
  4. 14HTTP ERROR 500 or a blank page Coming soonThe one log line that names the cause, and six causes fixed.
  5. 15Reset the admin password Coming soonFrom the server, with no email, and why the old SHA1 answer fails.
Open the OJS server course

~/courses/ollama-open-webui$ls lessons/

Self-hosted AI server course

Ollama runs AI language models on your own server, and Open WebUI gives people a chat page for them in the browser. This course takes you from a bare Ubuntu server with no graphics card to a private chat behind HTTPS, then on to backups, your own models and the API, from basic to advanced.

0 of 17 lessons ready

Basics: From a fresh server to a chat page with HTTPS. Start here if you have never run a model.

  1. 1Install Ollama as a service Coming soonThe service, a first small model, the settings drop-in, updates, and the speed on a CPU.
  2. 2The Ollama commands you use every day Coming soonPull, run, list, show, stop and remove models, with what each one prints.
  3. 3Choose a model that fits your server Coming soonMemory, disk and words per second of several models, measured on the same CPU server.
  4. 4Open WebUI behind Nginx with HTTPS Coming soonDocker Compose, a certificate, the WebSocket headers, the 60-second timeout and sign-in.

Everyday use: Let other people in, and get better answers.

  1. 5Users, roles and sign-up in Open WebUI Coming soonWho may create an account, who approves it, and which models each person sees.
  2. 6Make your own model with a Modelfile Coming soonA system prompt, a longer context, and what the longer context costs in memory.
  3. 7Ask questions about your documents Coming soonUpload files to Open WebUI, what it stores, and how well a small model answers from them.

Safe and maintained: What a server that people depend on needs.

  1. 8Keep the Ollama API off the internet Coming soonPort 11434 closed, an SSH tunnel, or HTTPS with a key for other programs.
  2. 9Free the disk space models use Coming soonWhere the models are, removing them, and moving the folder to another disk.
  3. 10Back up and restore Open WebUI Coming soonChats, accounts and settings, restored on an empty server.
  4. 11Update Open WebUI and Ollama Coming soonA safe order, a check after it, and the way back.

Advanced: Build on it, and make it serve more people.

  1. 12Call Ollama from your own scripts Coming soonThe API with curl and Python: one answer, a stream, and JSON you can use in a program.
  2. 13Several people at once: parallel requests and the queue Coming soonWhat OLLAMA_NUM_PARALLEL, OLLAMA_MAX_QUEUE and OLLAMA_KEEP_ALIVE change, measured.
  3. 14Use your own model in n8n workflows Coming soonn8n in Docker reaching Ollama on the same server, and a workflow that answers with it.

Fix it: The errors people meet, each reproduced on a test server and fixed.

  1. 15“could not connect to ollama server” Coming soonFour commands that find the cause, and the fix for each one.
  2. 16Open WebUI could not connect to Ollama Coming soonFive causes in order, each with its log line, when Open WebUI runs in Docker.
  3. 17“model requires more system memory” Coming soonWhy a model that fits on disk does not load, and what to change.
Open the Self-hosted AI server course

~/courses/n8n$ls lessons/

n8n server course

n8n connects programs to each other and runs the steps between them by itself. This course takes you from a bare Ubuntu server to an n8n you can back up, update and grow with workers, from basic to advanced.

0 of 8 lessons ready

Basics: From a fresh server to your own n8n.

  1. 1Install n8n with Docker Compose Coming soonPostgreSQL, a task runner, secrets you never type, and a workflow run as the proof.
  2. 2n8n behind Nginx with HTTPS Coming soonA certificate, the public address in webhooks, and live updates in the editor.
  3. 3Send n8n email through SMTP Coming soonInvitations and password resets that arrive.

Safe and maintained: Before you depend on it.

  1. 4Back up and restore n8n Coming soonThe database, the data volume and the encryption key, restored after losing everything.
  2. 5Update n8n Coming soonOne line to change, what the database migration does, and the way back.
  3. 6Stop old executions from filling the disk Coming soonWhat n8n keeps, for how long, and the space it gives back.

Advanced: When one process is not enough.

  1. 7Queue mode with Redis and workers Coming soonTurn an existing n8n into a main process and two workers, measured before and after, and the way back.

Fix it: The errors people meet, each reproduced on a test server and fixed.

  1. 8“Your n8n server is configured to use a secure cookie” Coming soonWhy the sign-in page refuses plain http, and the safe ways round it.
Open the n8n server course

~/courses/deploy-docker$ls lessons/

Deploy your project with Docker

A three-tier application has a front (Nginx), the app itself, and a database, each in its own container. This course takes your project from source code to a server where only HTTPS is open, one tested lesson at a time.

5 of 11 lessons ready

Before you start: Docker and Compose on a fresh server.

  1. 1How to install Docker on Ubuntu 26.04 and 24.04Docker Engine from Docker’s own repository, and a first container.
  2. 2Docker Compose on Ubuntu 26.04 and 24.04: run an app with a databaseTwo containers, one file, and data that survives a restart.

Your project in containers: From source code to three tiers on one server.

  1. 3Put your app in an image Coming soonA Dockerfile with a multi-stage build and a non-root user, and the image size before and after.
  2. 4Deploy a three-tier app with Compose Coming soonNginx, the app and PostgreSQL on private networks, health checks, secrets kept out of the file.
  3. 5Add HTTPS in front of the stack Coming soonA free certificate in Nginx, and the renewal tested.
  4. 6Docker ports and the firewall Coming soonWhy a published port ignores UFW, and how to close it.

Run it for years: Updates, rollback and backups.

  1. 7Update the app and roll back Coming soonTagged images, a new version live, and the old one back in one command.
  2. 8Back up and restore the database Coming soonA nightly dump from the container, restored on a new server.

Fix it: The errors people meet, each reproduced on a test server and fixed.

  1. 9Docker container keeps restarting: how to stop the loop and fix itRead why it stops, and break the loop.
  2. 10Docker logs filling the disk: limit container log sizeFind the big log and cap the size for every container.
  3. 11Fix “permission denied” on /var/run/docker.sockThe group that fixes it, and why it is as strong as root.
Open the Deploy your project with Docker

Lessons marked “Coming soon” are not published yet. Each is run on a fresh Ubuntu 26.04 server and a fresh 24.04 server first. How we test