This article describes how to install the Ghost blog platform on Ubuntu. for more information about how to install Ghost on Ubuntu Server 14.04 LTS (Trusty.
Ghost is a well-designed release platform that is easy to use and free to anyone. It is a free open-source software (FOSS) and its source code is on Github. As of January 2015 (LCTT: the original article is 2014 and should be 2015), its interface is very simple and there is an analysis Panel v. Editing uses a convenient split-screen display.
Therefore, we have a clear tutorial on installing Ghost on Ubuntu Server:
1. Upgrade Ubuntu
The first step is to run the Ubuntu software upgrade and install a series of additional packages.
sudo apt-get update sudo apt-get upgrade -y sudo aptitude install -y build-essential zip vim wget
2. Download and install Node. js source code
wget http://nodejs.org/dist/node-latest.tar.gz tar -xzf node-latest.tar.gz cd node-v*
Now, run the following command to install Node. js:
./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
4. Configure Ghost
sudo nano config.example.js
In the "Production" field, set:
host: '127.0.0.1',
Modify
host: '0.0.0.0',
Create a Ghost user
sudo adduser --shell /bin/bash --gecos 'Ghost application' ghost sudo chown -R ghost:ghost /var/www/ghost/
Start Ghost now. You need to log on as the "ghost" user.
su - ghost cd /var/www/ghost/
Now, you have logged on as a "ghost" user and can start Ghost:
npm start --production