Skip to content
RustPress

Documentation Start

Install and update

Install RustPress on Linux, macOS or Windows, choose SQLite, MySQL, MariaDB or PostgreSQL, update without downtime, go back a version, or build from source.

Updated

This page covers installing RustPress, choosing a database, updating and building from source. For a first run, start with Getting started; to put a site online, see Hosting.

One command on Linux or macOS

curl -fsSL https://raw.githubusercontent.com/Witsberry/RustPress/main/install.sh | sh

The installer picks the right build, checks it against the release checksums and the RustPress release signature, and installs rp into /usr/local/bin (asking for sudo), or ~/.local/bin when that isn’t possible. RP_VERSION=0.1.4 installs a given version and RP_INSTALL_DIR=/opt/rustpress/bin another folder. Prefer to read it first? Download install.sh, look, then run sh install.sh.

Or download it

Get the file for your system from the releases page. It is one self-contained program: no Rust, PHP, web server or database server needed.

SystemFile
Linux, Intel/AMD (any distribution, including Alpine)rustpress-…-linux-x64.tar.gz
Linux, ARM (Raspberry Pi 4/5, AWS Graviton, Ampere)rustpress-…-linux-arm64.tar.gz
macOS, Apple Siliconrustpress-…-macos-arm64.tar.gz
macOS, Intelrustpress-…-macos-x64.tar.gz
Windows 10/11, Windows Serverrustpress-…-windows-x64.zip

The Linux builds are fully static and run on any distribution. Check a download against SHA256SUMS.txt from the same release with sha256sum -c SHA256SUMS.txt --ignore-missing (Linux) or shasum -a 256 -c SHA256SUMS.txt --ignore-missing (macOS).

macOS: the program isn’t signed by Apple yet, so macOS blocks it the first time. Allow it once with xattr -d com.apple.quarantine ./rp, or under System Settings › Privacy & Security › Open Anyway.

Databases

The setup wizard asks for a database, or set database_url in rp-config.toml (or $RP_DATABASE_URL):

DatabaseExample database_url
SQLite (default)sqlite://rp-content/database.sqlite
MySQLmysql://user:password@127.0.0.1:3306/wordpress
MariaDBmariadb://user:password@127.0.0.1:3306/wordpress
PostgreSQLpostgres://user:password@127.0.0.1:5432/wordpress

All four are tested with the same 76 end-to-end checks (SQLite, MySQL 8.0, MariaDB 11.8, PostgreSQL 16), plus a two-way test against a database installed by PHP WordPress.

  • New sites use the table prefix rp_. To run on an existing WordPress database, set table_prefix to wp_ (or that site’s prefix).
  • On MySQL and MariaDB, tables use WordPress’s own layout, so WordPress password hashes verify, PHP-serialized roles and options are read, and values are written back so PHP WordPress keeps reading the database too.
  • Managed databases connect over TLS. Every setting is in Configuration.

Updating

RustPress checks for new releases twice a day (turn that off with check_updates = false). When one is out, the Dashboard shows a notice and Dashboard › Updates has an Update button. From the shell:

rp update --check   # is there a newer version?
sudo rp update      # install it (sudo only if the program file belongs to root)
rp version          # what's running

What an update does:

  1. Downloads the release for this system and checks it against the release’s SHA256SUMS.txt, whose Ed25519 signature must match the release key built into rp. An unsigned release, a bad signature or a mismatched file is refused.
  2. Test-runs the new program; if it doesn’t start on this machine, nothing changes.
  3. Keeps the current program as rp.previous, then puts the new one in its place.
  4. Tells every running server started from that file to switch over. Each lets AI agents finish their current run, stops taking new connections, finishes requests in progress (up to 30 seconds), and starts the new version on the same socket and process ID. New visitors wait a moment instead of getting an error: no request is refused or dropped.

Database changes a release needs are applied when it starts. Back up first for big updates (see Running a site). Versions before 0.1.1: replace the rp program and restart once.

Going back

sudo cp /opt/rustpress/rp.previous /opt/rustpress/rp && sudo systemctl reload rustpress

Servers without internet access: download the release elsewhere, copy rp over the old program, then reload, or send the server SIGUSR2 (kill -USR2 $(cat /srv/mysite/rp.pid)). RP_UPDATE_API and RP_UPDATE_REPO point update checks at a mirror.

Building from source

# Standard release build: target/release/rp
cargo build --release

# Smaller build with LTO, stripped
cargo build --profile dist

# Static Linux build (install cargo-zigbuild with: pip install cargo-zigbuild)
cargo zigbuild --profile dist --target x86_64-unknown-linux-musl

Pushing a v* tag builds every platform on GitHub Actions and signs SHA256SUMS.txt with the release key; without the key the release fails rather than publish unsigned files. npm run build compiles the server and exports a static demo to dist/.