Skip to content

Install

HyScribe is one binary in a tar.gz. There is no web server, PHP or extension to install. It needs a MySQL or MariaDB server, normally the one your WordPress site already uses.

  • Linux on amd64 or arm64. The binary is static, so any distribution works
  • A MySQL or MariaDB database holding a WordPress 7.0 or 7.1 site (db_version 61833). Older sites: upgrade with PHP WordPress first
  • An unprivileged user account to run it: HyScribe refuses to run as root
  • A reverse proxy (nginx, Caddy, Traefik) for HTTPS. HyScribe serves plain HTTP

Each release on GitHub (hyscaler/HyScribe) has:

  • hyscribe_<version>_linux_<arch>.tar.gz, <arch> being amd64 or arm64
  • hyscribe-latest-linux-<arch>.tar.gz, the same archive under a name that stays the same
  • SHA256SUMS.txt, an SBOM (hyscribe-sbom.cdx.json) and signed build provenance
sha256sum -c SHA256SUMS.txt --ignore-missing
gh attestation verify hyscribe_<version>_linux_amd64.tar.gz --repo hyscaler/HyScribe

No release has been published yet; until the first one, build the archive from source with scripts/package.sh x86_64-unknown-linux-musl dist (it needs the Rust target and clang).

tar -xzf hyscribe_<version>_linux_amd64.tar.gz
cd hyscribe
./hyscribe version

The hyscribe/ folder is the whole installation. Put it anywhere the service user owns, for example next to the WordPress folder. It holds:

  • hyscribe: the binary
  • LICENSE, README.txt
  • .env.example: every configuration key
  • docs/: these pages

The binary creates the rest when first needed, each with owner only permissions:

  • .env: the configuration, mode 0600
  • logs/: hyscribe.log and its rotated copies, and setup-secret while setup mode runs without a terminal
  • run/: hyscribe.pid
  • sessions/: login sessions, one file per user (primary mode)

There are three ways to write .env. All of them read an existing site’s wp-config.php without running it.

./hyscribe service start

Without .env, the server starts in setup mode. At a terminal, service start prints a line like:

Setup mode: Open http://127.0.0.1:8080/installation/step-1 and enter the one-time setup secret <32 letters and digits>
  • Run without a terminal, it says the line is in logs/setup-secret instead (cat logs/setup-secret). That file is mode 0600 and is deleted when setup mode ends, however it ends. The secret never goes into logs/hyscribe.log

  • ./hyscribe start in the foreground at a terminal prints the line itself and writes no file

  • Setup mode listens on BIND_HOST and PORT from the environment, 127.0.0.1:8080 by default. On a remote server, use an SSH tunnel (ssh -L 8080:127.0.0.1:8080 server), or start once with BIND_HOST=0.0.0.0 ./hyscribe service start

  • Every page redirects to /installation/step-1 until setup is done. Enter the secret there; it works once, for one browser

  • Step 2 asks for the WordPress folder, or the contents of wp-config.php pasted in, or neither for manual entry

  • Step 3 asks for what wp-config.php did not give, the mode, the optional read only database user, the network and the uploads folder, then runs the checks and writes .env

  • The same process then serves the site. After 30 minutes without .env it stops; start again for a new secret. A lost browser session also needs a restart

At a terminal, ./hyscribe start and ./hyscribe service start without .env first ask No .env found. Set up in the browser or in the terminal? [browser/terminal]. Browser is the default, and the only choice when standard input is not a terminal. terminal runs the terminal wizard below, then starts the site.

./hyscribe setup

It asks, in order:

  1. <path>/.env exists. Replace it? [y/N], only when it exists. Anything but yes writes nothing
  2. The WordPress folder or its wp-config.php, defaulting to the first one found in the folder above hyscribe/ or in a folder beside it; none for manual entry (database name, user, password, host, port, table prefix)
  3. Whatever wp-config.php does not give as a literal value; computed values are listed and asked for
  4. Start in shadow mode (read only) first? [Y/n]
  5. A database user granted only SELECT, and its password (empty for none)
  6. Running HyScribe behind a proxy? [y/N], the address (default 127.0.0.1) and the port (default 8080)
  7. The site’s uploads folder (empty for hyscribe/uploads)

Passwords are read with echo off, and no password, key or salt is printed. Keys and salts missing from wp-config.php are generated. Then start the site with ./hyscribe service start.

They only read, and stop on a failure:

  • Both database users connect
  • db_version is one this release supports
  • The read only user, when given, has SELECT and nothing more, roles included
  • In primary mode, every table HyScribe writes is InnoDB; in shadow mode the others are listed as warnings
  • A wp-content/object-cache.php drop-in is a warning: HyScribe’s writes do not clear a persistent object cache, so PHP WordPress may show stale data until it expires
cp .env.example .env
chmod 600 .env
$EDITOR .env
./hyscribe config check

Every key is in Configuration. Copy the eight keys and salts from wp-config.php, or existing logins stop working.

./hyscribe service start
./hyscribe service status

The log’s first lines say the version, the mode and the address:

hyscribe 0.1.0 running (pid 12345) in shadow (read only) mode, listening on http://127.0.0.1:8080
outbound fetches off

Next: Service to keep it running, Switching to move a site over.

WordPress is a registered trademark of the WordPress Foundation. HyScribe is an independent project and is not affiliated with, sponsored by or endorsed by the WordPress Foundation or Automattic.

Code under AGPL-3.0-or-later. The HyScribe name and logo are not covered by that licence. HyScribe is a product of HyScaler.