Installing Joinery

How do I install Joinery on a new server?

If you want a guided path with nothing to type at a command line, follow the walkthrough at https://getjoinery.com/page/quickstart. It covers renting a server, pointing a domain at it, and installing Joinery from a web browser.

From a command line, on a fresh server, run as root:

mkdir -p /tmp/joinery && \
  curl -sL https://getjoinery.com/utils/latest_release | tar xz -C /tmp/joinery && \
  cd /tmp/joinery/maintenance_scripts/install_tools && \
  sudo ./install.sh server && \
  sudo ./install.sh site mysite example.com

install.sh server sets up the machine once. install.sh site creates the site. Replace mysite with a short site name and example.com with your domain.

See: docs/installation.md > One-liner install (latest version)

What kind of server do I need?

  • Ubuntu 24.04 or 26.04 LTS, freshly installed. The installer refuses any other operating system.
  • Root access.
  • At least 1 GB of RAM and 3 GB of disk.
  • Ports 80 and 443 free for a bare-metal install, or port 8080 (or another port you choose) for a Docker install.
See: docs/installation.md > Server requirements

Should I use Docker or install directly on the server (bare-metal)?

Use bare-metal for one site on one machine. A machine carries one bare-metal site.

Use Docker to run several sites on one machine. Each site gets its own container, database, files and port. A container is not a security wall between sites: treat every site on a host, and the host itself, as one trust domain. Put sites that must not reach each other on separate machines.

The installer picks the mode from the command: give a port (install.sh site mysite example.com 8080) for Docker, leave it off for bare-metal. Run install.sh docker instead of install.sh server for the one-time host setup on a Docker host.

See: docs/installation.md > What Docker mode is

Can I install Joinery without using a terminal?

Yes, on Linode. Choose the Joinery StackScript when you create a Linode and fill in the form: admin email address, admin password and your domain are required. A few minutes later the site is running with SSL and a login.

Optional fields set up email (an email sending API key) and backups (a Backblaze B2 bucket, key ID and key) during the install. If a step fails, the install stops and says so in /var/log/stackscript.log. Destroy the instance and deploy again with the field corrected.

See: docs/installation.md > One-click deployment (Linode StackScript)

What do I sign in with after the install?

The admin account has the username admin, which always signs in, and the address you gave with --admin-email=ADDRESS, which signs in too. If you left the address out, the account has none until you add one on its profile.

  • On a Linode StackScript install, the password is the one you entered in the form, and you keep it.
  • On every other install, the installer generates the password and writes it to a credentials file. You are asked to change it at your first sign-in.
After signing in, the setup wizard at /setup walks you through the remaining setup steps.

See: docs/installation.md > Create a site

Why is my new site not on HTTPS yet?

Your domain's DNS probably did not point at the server during the install. The install still finishes, and the site serves plain HTTP until a certificate exists.

Usually you do not need to do anything. The install leaves a timer, joinery-ssl-retry@{domain}, that fetches the certificate as soon as the domain points at the server. To see what it is waiting for, open http://{domain}/https-status (no sign-in) or run sudo joinery-https-check in the server's console. The usual causes:

  • The name also answers with another server's address (a leftover A record, or an AAAA record a mail or DNS host added). Remove it.
  • The name points at another server entirely, and the site belongs at another name: point that name here and move the site with manage_domain.sh set {sitename} home.{domain}.
  • A firewall in front of the server, such as a Linode Cloud Firewall, blocks ports 80 and 443. Allow them inbound.
To fetch it right away once DNS is correct:

sudo /var/www/html/{sitename}/maintenance_scripts/sysadmin_tools/setup_ssl.sh mysite.example.com

This needs requests for the domain to reach the server on port 80, directly or through an edge such as Cloudflare.

Behind Cloudflare, set SSL/TLS to Full, not Full (Strict), until the first certificate lands. Strict refuses the temporary certificate the site answers with until then, so the certificate cannot be fetched through it. Once the certificate is in place, Full (Strict) works.

See: docs/installation.md > SSL Certificates; docs/installation.md > Cloudflare Proxy Support

How do I add or change a site's domain after the install?

Use manage_domain.sh in maintenance_scripts/sysadmin_tools/, as root. It works for Docker and bare-metal sites; for a Docker site, run it on the host. It sets the site's vhost and its own address, and fetches the certificate the way the install does.

sudo ./manage_domain.sh status mysite                # what is set today
sudo ./manage_domain.sh set mysite example.com       # assign a domain, with SSL
sudo ./manage_domain.sh set mysite example.com --no-ssl
sudo ./manage_domain.sh rollback mysite              # restore the previous configuration
sudo ./manage_domain.sh clear mysite                 # remove the domain

On a site where people use passkeys, set and clear stop first and say who is affected, because a passkey only works on the domain it was made on. Take the steps it names before the move, then run the same command again with --confirm.

See: docs/installation.md > Domain Management

I lost the admin password and email is not set up. How do I get back in?

Run the reset tool on the server:

sudo php /var/www/html/{sitename}/maintenance_scripts/sysadmin_tools/reset_admin_password.php

It asks for the new password at a prompt (or reads it from --password-file=PATH). With no --email=ADDRESS it resets the only superadmin account. You are asked to change the password at the next sign-in. Two-factor sign-in stays on unless you add --clear-second-factor.

See: docs/account_security.md > Reset from the server

What comes installed on a new site, and how do I add more?

A new site has Drive and the personal calendar, plus the personal bundle: mail and the AI assistant. Mail needs DNS records and an outbound email provider before it does anything; the assistant needs a model provider.

Everything else (events, commerce, bookings, the password vault, DNS filtering, server management) is installed from /admin/admin_plugins when you want it. To find plugins and themes your site does not have yet, use Add New on the Plugins or Themes page, which opens the marketplace at /admin/admin_marketplace.

See: docs/installation.md > What a new site comes with

How do I change which theme my site uses?

Go to System > Themes (/admin/admin_themes). A page theme is the whole site, its pages and their styling: click Activate on the one you want. A style theme only changes colors, fonts and images on top of the page theme: Apply puts it on and Remove takes it off. The same two choices are on the settings page (/admin/admin_settings), under the theme settings.

If your account has a vault, a theme change asks you to unlock it first. To get a theme your site does not have yet, use Add New on the Themes page.

See: docs/settings.md > System-managed settings

How do I add my own CSS to every page?

Make a style theme: a folder holding one small file that names your stylesheets, and the stylesheets. Joinery links them on every page, after its own styles, and an upgrade leaves the folder alone.

  1. On the server, make the folder public_html/theme/my-look/assets/css/ inside your site's directory, and put your stylesheet in it, for example my.css.
  2. Beside assets, make theme.json:
{
  "name": "my-look",
  "display_name": "My look",
  "version": "1.0.0",
  "receives_upgrades": false,
  "styles": ["assets/css/my.css"]
}

  1. Go to System > Themes (/admin/admin_themes) and press Sync with Filesystem. The theme appears with the kind Styling.
  2. Choose Apply in its Actions. Your page theme stays as it is.
The folder name and name must match. Do not copy the default theme to start from: a style theme is only theme.json plus stylesheets, fonts and images.

A style theme cannot run JavaScript: a .js or .php file anywhere in the folder turns it into a page theme. CSS alone cannot tell which browser a visitor uses.

How do I add my own JavaScript to every page?

That takes a page theme, because a script runs as whoever is signed in and can do anything they can. A page theme is the whole site, so start from a copy of the one you use:

  1. On the server, copy your active theme's folder under public_html/theme/ to a new name, for example my-site.
  2. In the copy's theme.json, set name to the folder's name, set receives_upgrades to false, and list your files:
"styles": ["assets/css/my.css"],
"scripts": ["assets/js/my.js"]

  1. Put the files at those paths inside the folder.
  2. Go to System > Themes (/admin/admin_themes), press Sync with Filesystem, then choose Activate on your theme.
Each script is linked in the head of every page your theme renders. The admin pages do not load them.

Your theme is listed with a red Unsigned badge, and the health panel names it. That is expected: it is your code, not a package Joinery built. A theme that has its own includes/PublicPage.php links its scripts there, and scripts is not read for it.

To aim a rule at the site's name in the page header, the name is the element with the class jy-logo-text.

See: docs/plugin_developer_guide.md > Style Themes

I added CSS or JavaScript to my theme and the site did not change. Why?

Check these in order:

  1. Is the theme in use? The top of System > Themes (/admin/admin_themes) names the page theme after Pages: and the style theme after Look:. A theme that is only listed does nothing: a page theme needs Activate, a style theme needs Apply. A folder that is not listed yet needs Sync with Filesystem first.
  2. Is it the right kind? scripts is read only from the active page theme. A style theme (kind Styling) links stylesheets and nothing else, and a .js file in its folder turns it into a page theme that then has to be activated.
  3. Does theme.json name the file exactly? Each entry is a path inside the theme's folder, such as assets/js/my.js, with no leading slash. A file that is not there, or a script whose name does not end in .js, is skipped without a message. A theme.json that is not valid JSON (a missing comma, a trailing comma) reads as empty.
  4. Are you looking at a saved copy of the page? Signed-out visitors get saved copies of pages. Go to /admin/admin_static_cache and press Clear All Cache, then reload. Pages viewed while signed in are never saved copies.
  5. Is the file linked? View the page's source and search for the file's name. If the link is there, Joinery did its part and the rule or script itself is not matching: open the browser's developer tools and check the selector against the page. The site's name in the header is the element with the class jy-logo-text.
The admin pages never load a theme's stylesheets or scripts, so check on a public page.

See: docs/plugin_developer_guide.md > Style Themes

Why does a theme or plugin show a red Unsigned badge?

The badge means the package is not one Joinery built and signed. It shows in two cases:

  • Someone uploaded it with Upload ZIP and accepted the warning page. The Not signed by Joinery list on the Updates page (/admin/admin_updates) names who accepted it and when.
  • It was found in the site's files. Someone put its folder on the server by hand, and Joinery met it at Sync with Filesystem, at an upgrade, or at Activate. Nobody answered a warning for it. The badge's hover text says so, and the same list on the Updates page shows "nobody: found in the site's files" under Approved by.
A theme you made yourself, including a copy of a Joinery theme under a new name, is in the second case, and the badge is expected. It stays for as long as the theme is there. Nothing is switched off because of it.

When a found plugin or page theme is first listed, every superadmin gets an email titled "An unsigned plugin was found" or "An unsigned theme was found". If you or someone you work with put it there, no action is needed. If nobody did, treat it as a break-in: delete the folder and change every superadmin's password.

A page theme found this way can be activated from the Themes page. A plugin found this way cannot be installed from the Plugins page: upload it with Upload ZIP on the Plugins page instead, where the warning can be answered.

A theme or plugin that is not signed has full access to the site once active: all mail, every user's data and every setting.

See: docs/plugin_developer_guide.md > What a package carries

Can I set up email and backups during the install?

Yes. Pass these to install.sh site in the environment:

  • JOINERY_MAIL_API_KEY: an email provider's sending key. The provider is detected from the key, the From address is derived from the admin address, and the domain is registered with the provider where its API allows.
  • JOINERY_BACKUP_BUCKET, JOINERY_BACKUP_KEY_ID and JOINERY_BACKUP_KEY: a backup bucket and its key pair (JOINERY_BACKUP_PROVIDER is any provider the Backups page offers, such as b2, linode or s3, default b2; JOINERY_BACKUP_REGION or JOINERY_BACKUP_ENDPOINT where the provider asks for one).
JOINERY_MAIL_API_KEY=api-… \
JOINERY_BACKUP_BUCKET=joinerybackups JOINERY_BACKUP_KEY_ID=… JOINERY_BACKUP_KEY=… \
sudo -E ./install.sh site mysite mysite.com

Neither is required. If one fails, the setup wizard asks for it again. The backup recovery key is always created in the setup wizard, never by the installer.

See: docs/installation.md > Services set up at install