BIP KB:
How To Install Ghost On Ubuntu
Article By steve
![]() |
Install GhostThis Tutorial will show you how to install Ghost on Ubuntu. These steps will work for Ubuntu 12.04 and 13.10, both the server and desktop versions. |
Update Ubuntu
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 sudo aptitude install -y zip vim wget
Download / Install the Node.js Source Code
Install Node.js
curl -sL https://deb.nodesource.com/setup | sudo bash - sudo apt-get install -y nodejs
Download and Install Ghost
sudo mkdir -p /var/www/ cd /var/www/ sudo wget https://ghost.org/zip/ghost-latest.zip sudo unzip -d ghost ghost-latest.zip cd ghost/ sudo npm install --production
Configure Ghost
sudo vi config.example.js
In the "Production" section, change the following:
host: '127.0.0.1',
to
host: '0.0.0.0',
Create Ghost User
sudo adduser --shell /bin/bash --gecos 'Ghost application' ghost sudo chown -R ghost:ghost /var/www/ghost/
Now to start Ghost, you will need to log into your "ghost" user.
su - ghost cd /var/www/ghost/
Now that you are logged in with your "ghost" user you can start Ghost:
npm start --productionBrowse to
http://url_where_ghost_is_installed.com:2368
Proxying to Port 80 and keep Ghost running
All Done! Node.js is installed, the Ghost files are located in /var/www/ghost
, and Ghost has been started. You can keep Ghost the way it is currently setup if using for a development environment and do not mind adding :2368 to the end of your url.
Tags: ubuntu, install, sudo, Ghost, ghost on ubuntu, install ghost, nodejs
Spin Up A VPS Server In No Time Flat
Simple Setup
Full Root Access
Straightforward Pricing
DEPLOY A SECURE VPS SERVER TODAY!Leave a Reply
Feedbacks
![]() This work is licensed under a Creative Commons Attribution- NonCommercial-ShareAlike 4.0 International License. |