Here I explain how to set up a Ghost blog at DigitalOcean. The price is $5/month for basic hosting plus $1 for backups. I recommend using backups in case you encounter an error while updating Ghost and do not know how to fix it. Then, if you have a backup, you can revert your droplet back to the backup and try the update again.
The following instructions assume that you already have a domain (e.g.,
example.com) and know how to use it. If you do not have a domain, then I recommend purchasing one at Google Domains, Dynadot.com, or Porkbun.com.
I recommend using Cloudflare for your DNS nameservers. Cloudflare can help prevent DDOS attacks and make your website faster by caching content. Create an account at dash.cloudflare.com, add a domain, and point your nameservers to Cloudflare. Detailed instructions on how to do this are available here.
- Create a DigitalOcean account. (this is my referral link)
- Set up an SSH key.
- Add your SSH key to your account. Give it an appropriate name.
- Visit the Ghost page at the DigitalOcean Marketplace. Read the page details.
- Click Create Ghost Droplet.
- Click $5/mo under Basic Droplets.
- You do not need block storage.
- Choose a Data Center near you or your audience.
- Click IPv6 and Monitoring.
- Choose your SSH key.
- Name your droplet (your hostname).
- Add tags and select your project as appropriate.
- Enable backups.
- Click Create Droplet.
- Wait for your droplet to be created.
- After the droplet is created, scroll down and click "Start using Floating IPs".
- Click Search for a Droplet, click your new droplet, and assign a Floating IP.
- Copy the IP address of the Floating IP. Visit the website of your DNS provider for your domain and add an A record to point your domain to your new Floating IP. For example, if you are using Cloudflare as your DNS provider, then click DNS, click Add record, choose type A, enter
@as the Name for your root domain (
domain.tld), then enter your Floating IP address
xxx.xxx.xxx.xxxunder IPv4 address. Repeat the process with
wwwas the Name. Learn more about A records here.
- SSH into your droplet using your Floating IP.
- Follow the prompts to configure your Ghost installation. Press Enter on your keyboard and wait for Ghost to install. When prompted, enter your domain to set up your blog (
domain.tld), and enter email to get notifications if the SSL renewals fail.
- Visit http://your_floating_ip_address/ghost or http://your_domain/ghost to create your admin account. If you do not do this right away and someone else does it, then you need to restart the process.
At this point, you have set up your Ghost blog.
There are more steps to make your server more secure and further set up your blog.
- Make your server more secure by updating your dependencies. Type the following command in your command prompt and press Enter. Choose No Configuration for Postfix. Choose "keep existing" if you are asked whether to keep something that has been changed locally.sudo apt-get update && sudo apt-get dist-upgrade -y
- Update your Ghost installation.
- Set up a www to non-www redirect if desired.
- Learn more about how to further configure your blog such as how to set up mail.
- Find a theme at Ghost Marketplace or on GitHub.
- Have fun writing. 😄
If this all sounds too hard, troublesome, or not worth your time, then you can sign up for managed Ghost blog for $29 at Ghost.org.
- Official documentation on how to install Ghost on Ubuntu.
Please contact me if you have any issues.