If you want to self-host Ghost, it is most common to this on Linux. This guide documents the basic install steps
This guide assumes that you have access to a linux server such as a VPS via a command line interface (terminal window) and that you know the IP address of your server, which we’ll refer to from here on as
<your-ip-address>. Each step details a command to run on the command line.
- Most linux distros have a package manager, see the Node.js guide for details on installing node via various package managers or alternatively it is possible to download the .tar.gz archive from http://nodejs.org
- Double check that you have Node and npm installed and that you have the right version, by typing
npm -vinto a terminal window and comparing with the blue box above.
- Grab the latest version of Ghost from Ghost.org:
$ curl -L https://ghost.org/zip/ghost-latest.zip -o ghost.zip
Unzip Ghost into the folder
/var/www/ghost(recommended install location):
$ unzip -uo ghost.zip -d /var/www/ghost
Note: You may additionally need to create the
/var/www/directory with the command
mkdir /var/www/, or install the unzip package following the instructions for your linux distro)
Move to the new ghost directory, and install Ghost (production dependencies only):
$ cd /var/www/ghost && npm install --production
When this completes, Ghost is installed!
To start Ghost (production environment), run
$ npm start --production
Ghost will now be running on the default ip/port
http://<your-ip-address>:2368to see your newly setup Ghost blog
http://<your-ip-address>:2368/ghostand create your admin user to login to the Ghost admin
Next: Head to Step 2 of the Getting Started Guide for more information on what to do next.