How to Install Ghost Blogging Platform on Ubuntu 16.04 / Debian 8

How to Install Ghost Blogging Platform on Ubuntu 16.04 / Debian 8 / Linux mint 17. Ghost is a cross platform professional blogging application. It is powered by a Node.js and modern stacks. It is written in java-script and managed by the Ghost foundation. It has clean design that is focus only for bloggers with clean Interface makes it popular in blogging platform. It is a lightweight application and most important thing it is powerful blogging platform. It is a content management system that uses markdown like Github that makes it ideal for blogging.

Step-1 (Install the NodeSource Node.js)
# wget -qO- | bash -
Step-2 (Install Required Packages)
# apt-get install -y build-essential nginx nodejs
Step-3 (Configure Nginx Virtualhost)
# vi /etc/nginx/sites-enabled/default

Add the given lines

server {
listen 80;


location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;

Create Symbolic link

# ln -s /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default
Step-4 (Download the Ghost Packages)
# wget
Step-5 (Install the Ghost Blogging platform)

Unzip the Downloaded ghost packages to /usr/share/nginx/html/

# unzip -uo -d /usr/share/nginx/html/

Now change the directory to installation location

# cd /usr/share/nginx/html/

Now install the Ghost packages in production environment

# npm install --production
Step-6 (Configure the Ghost blogging platform)

Copy the example configuration file

# cp -rv config.example.js config.js

Edit the configuration file

# vi config.js

Edit the given lines

production: {
url: '',
mail: {
// Your mail settings
Step-7 (Run the Ghost blogging platform on Production Environment)

We need to run the server in production environment using NPM package Forever

# npm install forever -g

Start ghost using forever

# forever start index.js

Start Ghost blogging Platform on production environment

# NODE_ENV=production forever start index.js

Final Words

Congratulations now you have Ghost Blogging Platform has been installed on respective Linux distribution. It will be running on production environment. Now you have free to publish your blog with a powerful blogging platform known as Ghost blogging Platform. If you have any issues regarding this tutorial you need to use the comment section below for answers.

Hot Right Now

Related Post

Develop New SysAdmin Skills with E-books (FREE Download)