How to Install Ghost on Ubuntu 16.04
Comments : 0
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 https://deb.nodesource.com/setup_6.x | 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
SSLConfiguration
- 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
- After changing the URL save it & Restart the Ghost
- Ghost blog Setup
ghost setup