Ghost is a new, opensource blogging platform licensed under MIT license and actively developed by a small and talented team of designers and developers.
In this blog post we will show you how to install Ghost on a Debian 7 (Wheezy) VPS with Nginx.
The following command will install all necessary packages
sudo apt-get install python g++ make checkinstall nginx-full git curl
Compile and install nodejs
cd /usr/src/ wget http://nodejs.org/dist/node-latest.tar.gz tar xzvf node-latest.tar.gz && cd node-v* ./configure && checkinstall
When the dialog window opens, enter ‘3’ and remove the “v” in front of the version number.
Install nodejs with the following command
dpkg -i node_*
Install Ruby using RVM
curl -L https://get.rvm.io | bash -s stable --ruby
Start RVM with:
source /usr/local/rvm/scripts/rvm
Install sass sqlite3 and bourbon gems
gem install sass
gem install bourbon
npm install sqlite3
Install Ghost
Clone the the Ghost git repo via SSH.
git clone git@github.com:TryGhost/Ghost.git
and run the following commands
cd Ghost/ git submodule update --init npm install -g grunt-cli npm install grunt init
Open config.js and add your domain name.
To start Ghost, run:
node index.js
By default Ghost is listening on 127.0.0.1:2368
Create a new nginx virtual host
vim /etc/nginx/sites-available/yourDomain.com
server { listen 80; server_name yourDomain.com; location / { proxy_pass http://localhost:2368/; proxy_set_header Host $host; proxy_buffering off; } }
ln -s /etc/nginx/sites-available/yourDomain.com /etc/nginx/sites-enabled/yourDomain.com /etc/init.d/nginx restart
That’s it. Now open your browser and navigate to your domain.
For more info about the Ghost blogging platform please go to: https://github.com/TryGhost/Ghost
Of course you don’t have to do any of this if you use one of our Linux VPS Hosting services, in which case you can simply ask our expert linux admins to install this for you. They are available 24×7 and will take care of your request immediately.
PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.
Nice tutorial, just installing my second ghost blog and again stumbled across your post.
One thing, in the first code box you wrote apt-get install sudo apt-get install which is kinda wrong ;)
That’s been updated. Thanks for the tip.