Today, we will install Ghost, a blogging platform in an Ubuntu Server 14.04 LTS (Trusty).
Ghost is the most amazing publishing platform which is beautifully designed, easy to use, and free for everyone. It is Free and Open Source Software (FOSS), its source code is available in github. The interface is intended to be simple, and an analytics dashboard is planned, as of January 2014. Editing is facilitated using a split screen display.
So, here are the steps-wise tutorial below on how to setup Ghost on Ubuntu Server:
1. Updating 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 build-essential zip vim wget
2. 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*
Now, we'll install Node.js by the following commands:
./configure make sudo make install
3. 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
sudo nano config.example.js
In the "Production" section, change the following:
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