Thumbnail

How to Install Ghost CMS in Digital Ocean Droplet

2024-03-06

||

3 mins read

Step 1: Digital Ocean Account

First things first, log in to your Digital Ocean account. If you're new, a quick click here will take you to the account creation page.

Step 2: Create Your Ghost Droplet

Click on "Create" and choose "Droplets" in the Digital Ocean dashboard.

digital ocean

Select the region closest to you or your target audience.

create droplet in digital ocean

In the "Choose an Image" section, head to the "Marketplace" and search for "Ghost." Select the first Ghost image.

adding ghost image in droplet

Step 3: Configure Your Droplet

Scroll down to the CPU options, pick a plan (start with the minimum for now).

choosing cpu options for the droplet

Set a password for your Droplet.

creating password for the droplet

Click "Create Droplet" and give it some time to cook.

Step 4: Find Your Droplet

Navigate to your project in the "Projects" section, and under the "Resources" tab, you'll find your freshly baked Droplet.

digital ocean

Step 5: DNS Configuration

Copy the IP address of your Droplet.

Log in to your domain registrar (e.g., Name.com) and go to the "Manage DNS Records" page.

name.com

Create an A record with the hostname '@' for the main domain or your desired subdomain. Paste the Droplet's IP address and click "Create" or "Add Record."

It might take some time for the changes to propagate.

manage dns

Step 6: SSH into Your Droplet

  1. Open your terminal or command prompt.
  2. Type ssh root@example.com (replace with your Droplet's Domain) and enter the password when prompted (it won't show, but it's there).
ssh to the droplet

Step 7: Ghost Installation

The magic begins! Ghost's automatic installation will kick in. It will ask to press enter when you are ready to add the details, press enter and it will do some checking and will start to install ghost’s latest version.

It will ask for the website url for you should the url which you assigned for your domain and ghost will take of the ssl and everything for the setup.

Step 8: Create Your First Root Account

  1. After installation, go to your domain.
  2. Create your first root account by clicking "Create Account." If it seems to spin endlessly, don't worry—just refresh, and your account will be there.
create root account in ghost

Your Ghost Website Is Ready!

Congratulations, your Ghost CMS is up and running! Now you're all set to start crafting your content on this sleek and user-friendly platform. Happy blogging! 👻🚀

ghost site