How To Install Ghost On Ubuntu

ubuntu This post will show you how to install Ghost on Ubuntu.

update packages on ubuntu

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

Download and Install the Node.js Source Code

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

Install Node.js

sudo make install

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

Recommended books :

comments powered by Disqus