Installing Ghost CMS

From HelioHost Wiki
Jump to: navigation, search

Preface

Ghost requires Node.js which is only available on the Tommy server currently.

About Ghost

Ghost is a free and open source blogging platform written in JavaScript and distributed under the MIT License, designed to simplify the process of online publishing for individual bloggers as well as online publications. Independent tests have found Ghost to be up to 1,900% faster than WordPress. What does that mean? In the amount of time it takes WordPress to respond to 1 request, Ghost will have already responded to 19 of them. The speed of your blog impacts everything, from search engine rankings to mobile user engagement.

How to setup Ghost

Ghost doesn't like being in a subdirectory so domain.com/ghost/ won't work right. We will create a subdomain for it. Log in to cPanel and click the subdomains button.

Subdomains.png

Let's create a subdomain called ghost.

Create subdomain.png

Next, open the File Manager

File manager.png

Create a new directory in your home folder named ghost. Make sure this ghost directory is NOT in your public_html folder.

/home/username/ghost

Download the ghost files from https://krydos.heliohost.org/ghost/ghost_2.31.0.tar.gz

Upload the ghost archive to the ghost directory you just created.

/home/username/ghost/ghost_2.31.0.tar.gz

Use file manager to extract the archive by right clicking on the file and selecting extract.

Extract ghost.png

Now we need to configure ghost. In the file manager navigate to

/home/username/ghost/core/server/config/

and edit the defaults.json file.

Default json.png

On the url line where it says "localhost:2368" change that to your subdomain that you created on the first step "ghost.domain.heliohost.org". Make sure you leave off the port. Then on the host line where it says "127.0.0.1" change that to your subdomain too, but without the http this time "ghost.domain.heliohost.org". So it looks more like:

Updated defaults json.png

Next, navigate to

/home/username/ghost/core/server/config/env/

and edit the config.development.json file.

Config development json.png

Once again we're going to change the url from "localhost:2368" to "ghost.domain.heliohost.org" like so.

Updated config development json.png

Now we need to register the node application in cPanel so open the Application Manager.

Application manager.png

Click "+ Register Application".

Register application.png

For name enter "Ghost", domain select the subdomain that you created at the beginning of this guide, application url just leave with the default "/" with nothing after it, path enter "ghost", and deployment mode select development so it looks something like this:

Register ghost application.png

Then click deploy. In order for the node.js application to be deployed it requires an apache restart so this could take anywhere from a few minutes to a few hours. If it's been more than 2 hours and it still isn't working please open a customer service ticket and let us know.

Once the ghost application has been deployed you should be able to go to ghost.domain.heliohost.org and see the cms in action, and if you want to create new articles and access the backend go to ghost.domain.heliohost.org/ghost/

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox
Google AdSense