How To Install Ghost On Ubuntu
This article will walk you through how to install Ghost on Ubuntu. These steps will work for Ubuntu 16.04, but should work on all versions.
This article assumes everything is from scratch. Make any adjustments you need to based on your setup.
The first step will be to run through the Ubuntu software updates and install a couple of extra packages that will be needed.
sudo apt-get update sudo apt-get upgrade -y
Install Node.js, Ghost-CLI, Nginx, and MySQL
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - sudo apt-get install -y nodejs sudo npm install -g ghost-cli sudo apt-get install nginx sudo apt-get install mysql-server
Remember the password you set for the MySQL root user
Make Ghost Directory and Install Ghost
sudo mkdir -p /var/www/ghost cd /var/www/ghost/ ghost install
This part is completely custom for your setup. If you need Nginx, then say yes it, if you don't, then say no. Lots of these answers will be based on your setup, but this is how we would do it if starting from complete scratch.
blog url: [your full url] MySQL Hostname: localhost MySQL Username: root MySQL Password: [password you created when you installed MySQL] Database Name: [can be anything, but the name of your blog makes most sense. Aka: ghostforbeginners] Setup Nginx: yes Setup SSL: [up to you] Setup Ghost MySQL User: yes Setup Ghost System User: yes Setup systemd: yes Start Ghost: yes
Your done! Browse to
http://yoururl.com and you will see Ghost up and running!!