How to Install Ghost on Ubuntu Server 14.04 LTS (Trusty)

Today, we will install Ghost, a blogging platform in an Ubuntu Server 14.04 LTS (Trusty).

Ghost is the most amazing publishing platform which is beautifully designed, easy to use, and free for everyone. It is Free and Open Source Software (FOSS), its source code is available in github. The interface is intended to be simple, and an analytics dashboard is planned, as of January 2014. Editing is facilitated using a split screen display.

So, here are the steps-wise tutorial below on how to setup Ghost on Ubuntu Server:

1. Updating Ubuntu

The first step will be to run through the Ubuntu software updates and install a couple of extra packages that will be needed.

sudo apt-get update
sudo apt-get upgrade -y
sudo aptitude install -y build-essential zip vim wget

2. Download and Install the Node.js Source Code

tar -xzf node-latest.tar.gz
cd node-v*

Now, we'll install Node.js by the following commands:

sudo make install

3. Download and Install Ghost

sudo mkdir -p /var/www/
cd /var/www/
sudo wget
sudo unzip -d ghost
cd ghost/
sudo npm install --production

4.Configuring Ghost

sudo nano config.example.js

In the "Production" section, change the following:

host: '',


host: '',

Create Ghost User

sudo adduser --shell /bin/bash --gecos 'Ghost application' ghost
sudo chown -R ghost:ghost /var/www/ghost/

Now to start Ghost, you will need to log into your "ghost" user.

su - ghost
cd /var/www/ghost/

Now that you are logged in with your "ghost" user you can start Ghost:

npm start --production
Arun Pyasi 10:10 am

About Arun Pyasi

Linux Enthusiast geek and Web Developer who loves Free and Open Source Software (FOSS). He is a FOSS activist who loves technology, hacking, blogging, travelling, research and development. He is the Founder/Lead Developer of Chitwanix OS.

Author Archive Page

Have anything to say?

Your email address will not be published. Required fields are marked *

All comments are subject to moderation.

1 Comment