Skip to content

How to Install Multiple Ghost Installations on DigitalOcean

Ahmad Ajmi Photo
Ahmad Ajmi

Always make sure to backup your droplet before doing any server work.

If you already installed Ghost on DigitalOcean using the Ghost 1-Click App and want to install an additional Ghost instance on the same droplet.

I assume:

  • You are logged in to your droplet using SSH from the command line
  • Your domain name is ready and connected to the droplet IP

You need the current MySQL host, username, and password.

cd /var/www/ghost/

cat config.production.json

Take notes of them. You will use them later in steps 3 and 5.

Create a website directory, for example, ubud.

cd /var/www/
sudo mkdir ubud
sudo chown ghost-mgr:ghost-mgr ubud/

Login to MySQL and create a new database

sudo mysql -u root -p

GRANT ALL PRIVILEGES ON ubud.* to 'ghost'@'localhost' IDENTIFIED BY '7d150600c49e7c5860be7ce03d4f8df67259176738d926ec';
  • ghost → database user
  • localhost → database host
  • 7d150600c49e7c5860be7ce03d4f8df67259176738d926ec → database password

Switch to the ghost-mgr user

sudo -i -u ghost-mgr

Install Ghost and follow the installation steps

cd /var/www/ubud/
ghost install

That’s all that I wanted to share today, and I hope you find this post helpful.

Subscribe to Aspire Themes

You will receive Ghost resources, new themes, and updates.

Write more
Save time & money

Ghost CMS themes for a professional-looking website. Newsletter & membership full support.

Choose your theme »
  • Ghost 4 Support
  • Free Support & Updates
  • 100% Money Back Guarantee