How to organise and get a Bitnami Ghost instance started on AWS EC2

Notes about how to get started and migrate a Ghost website to EC2.

OK, this post is obviously another one of those posts for the more technically minded in the audience.  Read on if interested ...

How to migrate a website to Ghost on EC2.

Using Bitnami deployment dashboard helped get the process started. Following are notes that helped get it all sorted.

  1. Follow the instruction on Bitnami to get the Ghost instance started on Amazon EC2.
  2. On Amazon EC2 dashboard allocate an elastic IP address to the new instance.
  3. Rename the instance to something meaningful e.g.
  4. SSH into the EC2 instance. This will require that you download key and connect to the new instance via SSH, use the bitnami console for instructions. Following is the format of the command ssh -i [your-private-key].pem [email protected][replace-with-EC2-ip-address].
  5. Set certificate and DNS for the website following the instructions at
  6. Remove the Bitnami banner following the instructions at
  7. Change ghost url in configuration following the instructions at
  8. When changing the ghost url also edit the /opt/bitnami/apps/ghost/htdocs/config.production.json and ensure that the url is HTTPS without port :80 - if a change is required then restart ghost using instructions found here - hint use sudo /opt/bitnami/ restart ghost.
  9. If redirect loop to following instructions here - in summary stop ghost then add RequestHeader set X-Forwarded-Proto "https" to top of /opt/bitnami/apps/ghost/conf/httpd-app.conf.
  10. Make changes for Ghost email SMTP in configuration using the instructions found here - once again restart ghost as required.

Other useful links

Comments welcome

Feel very welcome to ask a question, or share a comment.