Install ghost Port 80 VPS BIP media hosting

Install Ghost

This 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 --production

Browse 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: , , , , , ,

Spin up a cloud server in no time flat

Simple setup. Full root access. Straightforward pricing.


DEPLOY SERVER




Leave a Reply