In this tutorial we will cover the steps needed to install and configure Ghost with Nginx on your CentOS 6.4, Debian or Ubuntu platform.

Requirements

Ghost is an open-source blogging platform created by founders John O'Nolan and Hannah Wolfe and coded in Node.js. The platform intends to provide simple interface and light-oriented blog management.

Install Ghost

The platform can be easily installed throuh the npm (Node Package Manager) command included inside the Node.js installation:

The process will take some time to complete.

When ready access the Ghost package folder and run the install script again in order for any missing modules to be installed:

At the end of the installation execute the following command to make sure that everything went well:

The output of the command should be similar to the following one:

Configure Ghost to work with Nginx

Create new virtual host file inside the Nginx folder:

CentOS 6.4:

Debian/Ubuntu:

Enable the virtual host:

Now we can go ahead and restart the Nginx service:

Test the functionality of the service

In case that yourdomain.com is pointed to the server's IP address you should be able to access the default Ghost home page through:

An easy way to find your server's IP address is to execute the following command: