Skip to content

BookStack for Mere Mortals

Every group larger than about three people has the same quiet problem: the knowledge lives in one person's head, or in a chat thread nobody can find again. BookStack is the open-source answer built for exactly that: a self-hosted wiki that organises writing the way a bookshelf does — shelves hold books, books hold chapters and pages — so that people who would never learn wiki markup can still write things down where others will find them. This guide explains how it works, how to install it by hand on a small Linux server, and how to run it without fooling yourself about the parts that matter: who can see what, and whether your backup is real.

The lab behind this guide ran the real thing: BookStack v26.09.2, the project's current release on build day, installed the documented manual way onto PHP 8.3 and MariaDB 10.11 — the same stack the project's own install script would have laid down. Into it went one invented admin account, a small invented library about keeping an allotment, and one restricted reader account, and the system was exercised end to end: the default login changed, the full shelf-to-page hierarchy built through the real web forms, search tested against a word planted in a page, an image uploaded and embedded, a page written in the Markdown editor and another created through the REST API, a fence built around one book and tested from the outside, and a database dump taken and inspected. What the lab could not do, it did not fake: there was no second version to upgrade from and no spare machine to restore onto, so upgrade and restore are taught from the project's own manual and labelled as such, and the serving was done by PHP's built-in development server rather than the Apache or Nginx a real deployment would use — declared in full in chapter 3 and in criteria.md, which keeps the ledger of what was run and what was only read.

What this guide covers

  • What BookStack is — the mental model: an opinionated wiki shaped like a bookshelf, aimed at people writing things down for each other; what it is not (a word processor, a file store, a public website builder)
  • The moving parts — the PHP application, the database, the web server, and the one settings file: what each holds, and what breaks when each stops
  • Installing BookStack — the requirements, the official script, the manual install the lab performed, and the lab's declared deviation, told in full
  • First login and changing the defaults — the default account everybody knows, how to make it yours, and the password the whole internet can look up
  • Shelves, books, chapters and pages — the four levels, what belongs at each, and how to plan a shelf that stays findable
  • Editing pages — the visual editor and the Markdown editor, drafts and publishing, images, and revisions when a page goes wrong
  • Search — how a word in a page finds the page, what search respects, and the habits that make a wiki findable instead of merely full
  • Users, roles and permissions — who can do what system-wide, the fence you can build around a single book, and why a forbidden book answers "not found"
  • The API in brief — tokens, the shape of a request, and creating a page from the command line
  • Backup and upgrade — the dump and the folders that make a backup, the restore the dump makes possible, and the three commands an upgrade consists of
  • Recipes — a household handbook, a club's memory, a runbook shelf, and a read-only library for people who should never edit
  • The neighbours — MediaWiki, DokuWiki, Wiki.js, Confluence, Notion and friends: what each one trades
  • Limits — one server by design, a database to look after, no live co-editing, stated plainly
  • Troubleshooting — the fresh install that only says "an unknown error occurred", the user who silently never gets created, and the other traps this guide's lab fell into so you don't have to
  • Glossary — the terms, collected in one place

What it doesn't cover

Running BookStack for a whole company — single sign-on with LDAP, SAML or OIDC is real and documented upstream, but this guide signs people in the plain way — and exposing any server to the internet safely, which is a subject of its own (TLS and reverse proxies get a warning, not a tutorial). Custom themes and visual customisation, importing whole libraries from other wikis, and high- availability setups are likewise pointed at, not taught.

How to use this guide

Read chapter 1 for the model and chapter 2 before installing anything — knowing which part holds what turns later confusion into a named problem. Chapter 3 gets a server running; chapter 4, done immediately after and never "later", makes it yours. Plan your first shelf on paper using chapter 5 before creating anything: the hierarchy is easy to change early and annoying to change late. Chapter 10 is not the optional ending — take your first backup while the library is still small enough that a restore rehearsal costs minutes. The lab's transcripts live in bookstack-lab/transcripts/; its notes are examples/lab-notes.txt.


Part of the series

This guide is one of the For Mere Mortals guides: plain-language guides to the tools programmers and makers use.

Related guides:

License

The writing in this guide is licensed under CC BY 4.0. Code examples and lab scripts are licensed under the MIT License.