How To Install Ghost On Ubuntu

Article By steve


Install ghost Port 80 VPS BIP media hosting

Install Ghost

This Tutorial will show you how to install Ghost on Ubuntu. These steps will work for Ubuntu 12.04 and 13.10, both the server and desktop versions.

Update 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 zip vim wget

Download / Install the Node.js Source Code

Install Node.js

curl -sL | sudo bash -
sudo apt-get install -y nodejs

Download and Install Ghost

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

Configure Ghost

sudo vi 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
Browse to

Proxying to Port 80 and keep Ghost running

All Done! Node.js is installed, the Ghost files are located in /var/www/ghost, and Ghost has been started. You can keep Ghost the way it is currently setup if using for a development environment and do not mind adding :2368 to the end of your url.

Tags: , , , , , ,

Spin Up A VPS Server In No Time Flat

Simple Setup

Full Root Access

Straightforward Pricing


Leave a Reply