Ghost installation on Linux

0
97

Ghost

Ghost is a fully open source blogging platform. It is developed using Node.js, which makes it fast, scalable and efficient. It is very easy to migrate from other Content Management System like WordPress, Joomla .. etc. The Ghost blogging software is free to download and use. In addition, the Foundation offers a (paid) hosted platform for users who would like to run a live blog on the internet, as an alternative to configuring a server and running a manual install of the software package.

In this article, we will be known about the installation of Ghost blogging p[latform installation on Linux.

Before going to install Ghost, we have to install node.js by using the following command

#yum install -y epel-release
#  yum -y install nodejs npm

Ghost installation

Now Download the latest version of ghost from their official site

#  wget https://ghost.org/zip/ghost-latest.zip

Extract it copy to the directory /var/www/

#unzip ghost-latest.zip -d /var/www/ghost/

Now change to the directory ghost and run the following commands

#cd /var/www/ghost/
#npm installĀ  --production

Sample Output:

Now the installation of Ghost completed.

Starting ghost

Before we start the ghost rename the file config.example.js to config.js as follows

#mv -f config.example.js config.js

Now edit the file config.js and change the things production section like host. change host from 127.0.0.1 to 0.0.0.0

Now start the ghost by using the following command

[root@localhost ghost]# npm start --production

> ghost@0.11.3 start /var/www/ghost
> node index

WARNING: Ghost is attempting to use a direct method to send email.
It is recommended that you explicitly configure an email service.
Help and documentation can be found at http://support.ghost.org/mail.

Ghost is running in production...
Your blog is now available on http://my-ghost-blog.com
Ctrl+C to shut down

We can also start the ghost by using the pm2. we can install and configure pm2 as follows

#cd /var/www/ghost
#npm install -g pm2
#echo "export NODE_ENV=production" >> ~/.profile
#source ~/.profile

we can start it by using pm2 as follows

# pm2 start index.js --name ghost

We can access Ghost by using the URL address: http://ip-address:2368

Now create startup script to start ghost when system powered on.

#pm2 startup centos
#pm2 save

By using the address http://ip-address:2368/ghost we can setup the user accounts.

After creating the users, login to your account and then access dashboard like follows to create awesome posts

Enjoy Ghost Blogging platform in your system.

Comments

comments

SHARE
Previous articleMoodle installation on Linux
Next articleJoomla installation on Linux
This is Naga Ramesh Reddy from Vijayawada (India).I have 4+ years of experience in System and Network Administration field. I like to read and write about Linux, Cisco, Microsoft technologies and the latest software releases. Particularly I am mad about Linux flavors like Centos, RHEL, Ubuntu and Linux Mint.