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

wget http://nodejs.org/dist/node-latest.tar.gz
tar -xzf node-latest.tar.gz
cd node-v*

Install Node.js

./configure
make
sudo make install

Download and Install Ghost

sudo mkdir -p /var/www/
cd /var/www/
sudo wget https://ghost.org/zip/ghost-latest.zip
sudo unzip -d ghost ghost-latest.zip
cd ghost/
sudo npm install --production

Configure Ghost

sudo vi config.example.js

In the "Production" section, change the following:

host: '127.0.0.1',

to

host: '0.0.0.0',

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