repository

BlowfishCMS

A small content management system for OpenBSD

version 0.45.6 · ISC · 2026-12-03 · releases

123 lines · 4.8 KB · view the source · download this file

Installing BlowfishCMS

From a fresh OpenBSD server to a working site with HTTPS and an admin account. It takes about 15 minutes, most of it waiting for packages and DNS.

What you need

  • An OpenBSD server (a current release) with a public IPv4 address. 1 GB of memory is plenty; disk depends on how much media you keep.
  • A domain whose A record (and www., if you want it) points at the server. Let's Encrypt checks this before it issues the certificate.
  • The release archive, blowfishcms-X.Y.Z.tar.gz.

That's all. Install adds everything else itself: the packages (Perl's, the image tools and Python), the xbase set if the server lacks it, and doas if it isn't set up yet.

Later you'll want a Postmark account for the contact form, and a Stripe account if you sell or take bookings.

1. Point the domain at the server

At your DNS provider, add an A record for example.org (and one for www.example.org) with the server's address. Check from the server that both answer with it:

host example.org
host www.example.org

2. Get the release onto the server

Download it on the server, or copy it from your computer:

ftp https://…/blowfishcms-X.Y.Z.tar.gz          # on the server
scp blowfishcms-X.Y.Z.tar.gz you@server:         # or from your computer

Then unpack it on the server:

tar -xzf blowfishcms-X.Y.Z.tar.gz
cd blowfishcms-X.Y.Z

3. Install

doas ./bin/blowfishctl install --domain example.org --alias www.example.org --admin alice

On a brand-new server doas isn't set up yet. Become root with su -, go back to the folder, and run the same line without doas:

su -
cd /home/you/blowfishcms-X.Y.Z
./bin/blowfishctl install --domain example.org --alias www.example.org --admin alice
OptionMeaning
--domainThe site's address, without https:// or www.
--aliasAnother name that redirects to it, such as www.example.org; repeat for more
--adminYour login name for the admin (not a server account)
--mail-fromOptional: the address the contact form sends from (default site@ your domain)

Install prints each step as it goes:

  1. Sets up doas for the wheel group if the server has no /etc/doas.conf.
  2. Adds the xbase set if it's missing (fetched from cdn.openbsd.org and checked against OpenBSD's signature).
  3. Installs the packages: Perl's modules, the WebP tools and Python.
  4. Creates the service accounts and folders, and the settings file /var/www/etc/blowfishcms.conf.
  5. Copies the code to /opt/blowfishcms and builds the site with its starter pages, Home and Contact.
  6. Starts the services and configures httpd, gets a Let's Encrypt certificate and switches to HTTPS.
  7. Schedules certificate renewal, nightly backups and log rotation.
  8. Asks for the admin password (at least 12 characters, typed twice).

If it stops part-way, fix what it reports and run the same command again; finished steps are skipped.

If something goes wrong

MessageWhat to do
must run as rootUse doas, or become root with su - on a new server.
no one but root is in the wheel groupAdd your account so you can use doas: usermod -G wheel you.
xbase: couldn't fetch or checkThe server couldn't reach cdn.openbsd.org. Check its network, then run install again.
--alias must be a host nameType the alias by hand; a pasted one can carry hidden characters.
no certificate yetThe domain doesn't point here yet, or port 80 is blocked. Fix it, then run doas blowfishctl certificate.
a service failed to startSee /var/log/daemon and doas blowfishctl status.

4. Sign in

Open https://example.org/admin/ and sign in. A short setup walks through the site's name, the starter pages, the theme, whether search engines may list the site (say no while you build it) and mail; any step can be skipped. Then:

  • Your account: turn on two-step sign-in. Owners can update the server from the admin, so this matters.
  • Site › Add-ons: every add-on that comes with the release is listed; press install for the ones you want (Blog, Store, Services, …). Each makes its own page and admin tabs.
  • Look › Themes: every theme is listed under More themes; press install for the ones you like. They appear among the variants, hidden until you show them (show both a theme's light and dark variants for visitors to get its light/dark switch), and one can be the default.
  • Settings › Mail: connect Postmark so the contact form can send.

5. Before you launch

Work through SECURITY.md: the firewall, SSH and keeping backups off the server. Then see ADMIN-GUIDE.md for using the site and OPERATIONS.md for updates and backups. man blowfishctl describes every command.