Sites

WordPress and Ghost in one click, each kept apart from the others with its own database.

Sites installs WordPress and Ghost in one click, as many as your server has room for. Each site is kept apart from the others, with its own memory limit, database, HTTPS address, backups and logs, so a bad plugin on one site can't harm another.

A new site

Sites → New site:

  1. Pick WordPress or Ghost.
  2. Give it a title (and, if you like, a short name, used for its free address).
  3. Enter your name and email: you become the site's owner.
  4. Press Install. A WordPress site is live in under a minute.

The first site of each kind takes longer while the server installs what it needs (for Ghost on ARM servers, an 800 MB download).

The owner's password is shown once, on the site's page. Save it, then press I've saved it.

Managing a site

A site has the same pages as a project, plus a page for WordPress or Ghost:

  • WordPress: Update (backed up first when backups are on), plugin and theme updates, Lock code (nothing can be installed or updated from wp-admin; updates from the panel still work), XML-RPC (off unless you turn it on; you only need it for the WordPress mobile app or Jetpack), and a new owner password.
  • Ghost: Update, backed up first. The site is down for a moment while Ghost updates its database.

Add your own domain on the site's Domains page.

Change WordPress settings in the panel, not in wp-config.php: the panel writes that file itself.

Email

Sites can send email with nothing to set up, from wordpress@<domain> or noreply@<domain>, up to 60 messages an hour per sender.

  • To stay out of spam folders, give the site its own domain and add the SPF record (a DNS record that says your server may send its mail) shown on its WordPress page. Mail from a free *.sslip.io address often lands in spam.
  • Some hosting companies block sending email on new accounts (Hetzner does for some). Ask them to unblock it.
  • For newsletters or lots of email, use a proper email provider: a WordPress site's Email setting can switch to any SMTP server. Ghost is set with GHOST_MAIL__… env vars, and its newsletters need Mailgun.

Bringing a site in

WordPress: Bring a site in takes one archive file (.zip, .tar.gz or .tar) with your wp-content folder and a .sql export of the database. On the old server, this makes one:

wp db export backup.sql && tar -czf site.tar.gz wp-content backup.sql

The old address is changed to the new one everywhere, and your previous wp-content is kept as wp-content.before-import.

Ghost: use Ghost's own Settings → Import/Export, then copy the images over. From the old server:

# copy the images to the new server
rsync -a content/images/ root@new-server:/srv/apps/<site>/data/content/images/
# give the site access to them
ssh root@new-server chown -R app-<site>:app-<site> /srv/apps/<site>/data/content/images

Good to know

  • WordPress sites can't run programs on the server or read files outside their own folder, and wp-admin's built-in code editor is always off.
  • After 10 failed sign-ins from one address in 10 minutes, that address is blocked for an hour.
  • WordPress's scheduled tasks run every 5 minutes.