Connect with us

Hi, what are you looking for?

Linux

How to Install Ghost Blogging Platform on Ubuntu 16.04

How to Install Ghost Blogging Platform on Ubuntu 16.04 / Debian 8 / Linux mint 17. Ghost is a cross platform professional blogging application. It is powered by a Node.js and modern stacks. It is written in java-script and managed by the Ghost foundation. It has clean design that is focus only for bloggers with clean Interface makes it popular in blogging platform. It is a lightweight application and most important thing it is powerful blogging platform. It is a content management system that uses markdown like Github that makes it ideal for blogging.

Step-1 (Install the NodeSource Node.js)
# wget -qO- https://deb.nodesource.com/setup | bash -
Step-2 (Install Required Packages)
# apt-get install -y build-essential nginx nodejs
Step-3 (Configure Nginx Virtualhost)
# vi /etc/nginx/sites-enabled/default

Add the given lines

server {
listen 80;
server_name techbrown.com;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:2368;
}
}

Create Symbolic link

# ln -s /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default
Step-4 (Download the Ghost Packages)
# wget https://ghost.org/zip/ghost-latest.zip
Step-5 (Install the Ghost Blogging platform)

Unzip the Downloaded ghost packages to /usr/share/nginx/html/

Advertisement. Scroll to continue reading.
# unzip -uo ghost-latest.zip -d /usr/share/nginx/html/

Now change the directory to installation location

# cd /usr/share/nginx/html/

Now install the Ghost packages in production environment

# npm install --production
Step-6 (Configure the Ghost blogging platform)

Copy the example configuration file

# cp -rv config.example.js config.js

Edit the configuration file

Advertisement. Scroll to continue reading.
# vi config.js

Edit the given lines

production: {
url: 'http://www.techbrown.com',
mail: {
// Your mail settings
},
Step-7 (Run the Ghost blogging platform on Production Environment)

We need to run the server in production environment using NPM package Forever

# npm install forever -g

Start ghost using forever

# forever start index.js

Start Ghost blogging Platform on production environment

Advertisement. Scroll to continue reading.
# NODE_ENV=production forever start index.js

Final Words

Congratulations now you have Ghost Blogging Platform has been installed on respective Linux distribution. It will be running on production environment. Now you have free to publish your blog with a powerful blogging platform known as Ghost blogging Platform. If you have any issues regarding this tutorial you need to use the comment section below for answers.

Comments
Advertisement
Advertisement
Advertisement

You May Also Like

Windows

How to auto upgrade JioFi firmware for JioFi 2 / JioFi 3 / JioFi 4 / JioFi 5 / JioFi 6 and other JioFi...

Windows

Internet is the most important public network for connecting to the WEB. For internet connection requirement the ISP is required as well as it...

Windows

How to download and install the Mobile Intel 4 Series Express Chipset Graphics Drivers for Windows 10.  Windows 10 is the one of the...

Windows

How to Install and Configure PCSX2 on Windows 10. The Windows 10 is the most recommended operating system for the Games. In stream platform...