Setting Up My Blog With Ghost

By | 26th April 2017

First I went with siteground shared hosting which was a bad idea from the start but after a few days they took away Ghost from Softaculous in the cPanel, ended up getting a refund and decided to try vultr for a change since I have heard good things about them in the past.

I signed up for vultr and within minutes i had deployed a server which has a very simple setup interface where you get to pick the location of the server, the OS which i used Ubuntu 17.04 for this server, server size which i picked the $5 plan, for some reason it the $2.50 plan was temporary sold out and also setup my ssh key for the server, it takes a few mins for the server to set it’s self up.

After the server is setup, you can click on the server under the servers page which will bring you to a overview page and it will have your username and password, ip address that is needed to login to Putty to access the server.

After we logged in using putty we firstly updated the server:

Next i Install Let’s Encrypt so we can enable secure HTTPS connections:

Now i had to get a cert for this site:

Next i installed nodeJS which is needed for Ghost, Node v4 argon LTS is the recommend version for ghost and also install npm.

Next we will setup our web server for ghost, we will use nginx which i find easier to setup than Apache.

To make ghost available on 80 and 443 for https we use nginx reverse proxy to do this.we create the file below to do this.

and within this file paste the below:

restart nginx for this to take effect:

Now we will install ghost its self. Firstly we will create a new user on the server called ghost(or whatever you want) and switch to that user.

We create the default folder where ghost will be downloaded and installed to, after we delete the zip that we used to install ghost as its not needed anymore.

Now we can config ghost:

inside this file i needed to change the url under production to my domain blog domain name.

after saving this we can start ghost with the following command

Now we need to make ghost run 24/7 because at the moment if you close the current session your blog will stop working. To keep ghost always running we can use forever.The below installs and then starts ghost.

My last step was to point my domain from namecheap to vultr name servers.

after doing this i needed to go to vultr and after logging in i went to DNS tab where i added my domain name.

Now my Ghost blog is all setup and ready to go 🙂