Installing on Linux
Install Node
- Either download the
.tar.gz
archive from http://nodejs.org, or you may prefer to follow the instructions on how to install from a package manager instead. - Double check that you have Node and npm installed by typing
node -v
andnpm -v
into a terminal window
Install and Run Ghost
If you are using Linux on your desktop follow these steps:
- Log in to http://ghost.org, and then click the blue 'Download Ghost Source Code' button
- On the downloads page, press the button to download the latest zip file & then extract the file to the location you want to run Ghost from
If you are using Linux as a guest OS or through SSH and only have the terminal, then:
Use the following command to download the latest release of Ghost:
$ curl -L https://ghost.org/zip/ghost-latest.zip -o ghost.zip
Unzip the archive and change into the directory using the following:
$ unzip -uo ghost.zip -d ghost
After you successfully extracted Ghost open a terminal, if you haven't already, then:
Change into the directory you extracted Ghost to with the following command:
$ cd /path/to/ghost
To install Ghost type:
npm install --production
note the two dashes
When npm is finished installing, type the following to start Ghost in development mode:
$ npm start
Ghost will now be running on 127.0.0.1:2368
You can adjust the IP-address and port in config.jsIn a browser, navigate to http://127.0.0.1:2368 to see your newly setup Ghost blog
Change the url to http://127.0.0.1:2368/ghost and create your admin user to login to the Ghost admin