Install Ghost (CMS) Blog Publishing Platform on Debian and Ubuntu

Ghost is a free, open source and lightweight platform intended for blogging or online publications. It is written in Nodejs and comes with an assortment of modern publishing tools designed for easily building and running online publications.

It is feature-rich and now has a desktop app (runs on Linux, Windows and Mac OS) which provides all the functionalities and power of Ghost, simply on your computer. This implies that you can easily switch between multiple sites on the go: making it absolutely efficient.

5. Now move to the new ghost directory, and install Ghost (production dependencies only) with the below commands.

$ sudo cd /var/www/ghost
$ sudo npm install --production

Step 3: Start and Access Default Ghost Blog

6. To start Ghost, run the following command from the /var/www/ghost directory.

$ sudo npm start --production

Start Ghost Production

7. By default, Ghost should be listening on port 2368. To see your newly setup Ghost blog, open a web browser and type the URL below:

http://SERVER_IP:2368
OR
http://localhost:2368

Note: After launching Ghost for the first time, the file config.js will be created in the root directory of Ghost. You can use it to set environment level configuration for ghost; where you can configure options such as your site URL, database, mail settings etc.

Step 4: Install and Configure Nginx for Ghost

9. In this section, we will install and configure Nginx to server our Ghost blog on port 80, so that users can access Ghost blog without adding port :2368 at the end of the url.

First stop the Ghost service by hitting the CTRL+C keys on the terminal and then install nginx as shown.

Aaron Kili is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, web developer, and currently a content creator for TecMint who loves working with computers and strongly believes in sharing knowledge.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.