Contact: +91-965-621-00-77

How to Install Ghost on Ubuntu 16.04

Posted By :
Comments : Off

Server and Host Setup

  • Update the Packages
sudo apt update && apt upgrade -y
  • Install Nginx Server
sudo apt-get install nginx
  • After installing the Nginx install MYSQL server
sudo apt-get install mysql-server

  • Install Node.js Server
  • Before installing the Node.js install Python Software Properties
sudo apt-get install python-software-properties  
  • Download the Latest Node.js Setup Package
curl -sL | sudo -E bash - 
  • Install Node.js and NPM
sudo apt-get install nodejs  

Install Ghost-CLI on DigitalOcean

  • Install Ghost-CLI
sudo npm i -g ghost-cli

Install Ghost CMS Via Ghost-CLI

  • Create New Folder on www for installing the Ghost CMS (Example: I am created a new Folder on WWW Named as ghost)
sudo mkdir -p /var/www/ghost
  • Open the Folder that you Created for Install Ghost CMS
cd /var/www/ghost
  • Installing Ghost CMS via Ghost-CLI
ghost install

Ghost-CLI on Digitalocean



  • f you enter the HTTP version while setup Ghost CMS you can easily update your URL into HTTPS version
  • Open Ghost blog config.production.json File
sudo nano /var/www/ghost/config.production.json
  • Replace HTTP Version URL with HTTPS URL

Ghost-CLI on Digitalocean

  • After changing the URL save it & Restart the Ghost
  • Ghost blog Setup
ghost setup

About the Author