Install Ghost on Ubuntu

1984

Ghost is one of the latest blogging platform. It is Completely based on JavaScript. The server side work is powered by NodeJS.

Ghost has publicly launched on 14th October. As it requires NodeJS installed on your server, so you need a VPS to run a blog with Ghost. We are going to install Ghost in our PC for Ubuntu OS. This method also works with eleme

Installation:

The installation process is pretty simple. But you may face some wired problem during installation for different NodeJS compatibility. Lets open our terminal and install necessary applications first.

At first we need Git installed.

sudo apt-get install git git-core

As it is built on NodeJS, we need Node, Node Package Manager installed. You can download Node from their website. Or use a beautiful PPA from Chris Lea. It is better to use PPA, it will keep ypu always updated.

sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs

Lets begin the fun part. Download Ghost from their official website. We will install it on our user/home/ folder.

Lets make a directory in home folder named ghost:
mkdir ghost
Enter into our new directory:
cd ghost

From file manager lets open our Downloaded Ghost and extract it to our ghost directory.

Install necessary Node dependency:
sudo npm install --production

If this code doesn’t occur any problem, then you are done. Lets start our Ghost with:
npm start

And open http://127.0.0.1:2368/ this URL on our browser. And you are done. Open http://127.0.0.1:2368/ghost and register yourself as a new user. And happy testing.

Error:

But if the terminal hangs after sometime, than cancel the processing by pressing ctrl+c. And try to start Ghost:

npm start

Check the error. If the error start with something like

ERROR: Cannot find module './binding/Release/node-v11-linux-ia32/node_sqlite3.node'

Then run:

npm install sqlite3

Now try again to start.

Thanks a lot. 🙂