Install Ghost Ubuntu 17.04

The vast majority of blogs online are powered by wordpress, though a sneaky little competitor is gaining steady traction: Ghost 🙂 To install Ghost on Ubuntu 17.04 follow these steps:

First update and upgrade Ubuntu with the following commands:

sudo apt-get update
sudo apt-get upgrade -y

Next, install Node.js, Ghost CLI, Nginx, and MySQL:

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install -g ghost-cli
sudo apt-get install nginx
sudo apt-get install mysql-server

Create the directory where Ghost will be installed:

sudo mkdir -p /var/www/ghost
cd /var/www/ghost/
ghost install

You will be presented with the following questions, and alongside the question our recommended answer to each question:

blog url: [https://yourdomain.co.za]
MySQL Hostname: localhost
MySQL Username: root
MySQL Password: [root password]
Database Name: [ghost]
Setup Nginx: [yes]
Setup SSL: [yes]
Setup Ghost MySQL User: [yes]
Setup Ghost System User: [yes]
Setup systemd: [yes]
Start Ghost: [yes]