Skip to content

Install Multiple Ghost Sites on DigitalOcean

By Ahmad Ajmi

Already running Ghost on a DigitalOcean droplet? This guide shows how to add another Ghost site to the same server.

Prerequisites:

  • Your server uses Ghost’s supported Ubuntu, MySQL, NGINX, and systemd stack.
  • The server has enough memory and storage for another Ghost process and database.
  • You are logged into the droplet via SSH as a user with sudo access.
  • Your domain name is connected to the droplet’s IP address.
  • You have backed up every existing Ghost site on the server.

Before continuing, read Ghost’s current Ubuntu installation requirements and Ghost CLI documentation. The sites share the server’s CPU, memory, disk, MySQL, and NGINX. Check resource use after adding the site.

1. Back Up the Existing Site

Run the backup command inside the existing Ghost installation:

sudo -i -u ghost-mgr
cd /var/www/ghost
ghost backup
exit

Repeat this for any other Ghost installations on the server.

2. Create a Directory for the New Site

Create a separate directory and give the DigitalOcean Ghost manager account ownership:

sudo mkdir /var/www/new-blog
sudo chown ghost-mgr:ghost-mgr /var/www/new-blog

Replace new-blog with a short name for the new publication.

3. Switch to the Ghost Manager Account

DigitalOcean’s Ghost image uses ghost-mgr for Ghost maintenance:

sudo -i -u ghost-mgr

Then enter the directory:

cd /var/www/new-blog

4. Install the New Ghost Site

Run the supported production installer:

ghost install

Follow the prompts for the new domain and MySQL administrator credentials. Continue through NGINX, SSL, systemd, and starting Ghost. Choose a unique database name when prompted.

Do not reuse the application database account from the existing site’s configuration. Ghost CLI’s MySQL setup creates a separate database user for the new site. It gives that user only the required permissions.

5. Verify Both Sites

List the Ghost installations and confirm both are running:

ghost ls

Open both domains over HTTPS and sign in to the new site’s admin immediately to claim its owner account.

See also: Ghost Theme Demo Setup on DigitalOcean.

More from the Blog

Latest Ghost Themes