Automated Install Ghost With Nginx as Reverse Proxy on Ubuntu 14.04 LTS


Ghost is a free and open source blogging platform written in node.js, completely customizable and dedicated for publishing. By putting the script provided below to Vultr’s Startup Script, you can enjoy an out-of-the-box Ghost and Nginx installation, which includes self-signed SSL. For a manual install, read this tutorial.

The Script

The script is hosted on GitHub Gist. For a fully automated install, you will need the file If you do not want to use an encrypted connection, then you will also need to replace https with http.

#!/bin/bash#### AUTHOR: Jonathan Zhang# GitHub: @bbs4us# Gist URL:  LICENSE: GPL v3### Fetch the "Phantom" Ghost installation script and run it.###apt-get updateapt-get install wget -ywget -O - | bash >> /tmp/phantom.logsleep 5wget -N && bash https yoursite.tld # replace mesleep 1

After you have replaced yoursite.tld with your domain name, copy and paste it to the form, give it a name and click on the Add Script button. Make sure it’s type is Boot.

Now you can create a new instance with the script. After installation, go to https://yoursite.tld/ghost/setup/ to setup user login credentials. You will see a warning about certificate not trusted, ignore that as the certificate is self-signed.

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article

No comments

Powered by Blogger.