Create a ghost user

By default the owner of /var/www/ folder is root. ghost folder also will have root user as owner. We need to change ghost's folder owner to the ghost user.

sudo chown -R ghost:ghost /var/www/ghost/

Install Ghost

Now we are ready for installing ghost.

su - ghost
cd /var/www/ghost
npm install --production

Configure Ghost

cp config.example.js config.js

To have access to our blog from outside of our instance we need to change host property from 127.0.0.1 to 0.0.0.0 into configuration file. If we already have a domain name for our blog the url property also should be changed into production section. Configuration may look like this: