How to Install Ghost on Windows XP, 7, 8
- Update your operating system by going to Control Panel -> System and Security -> Windows Update -> Check for updates.
- Go to http://nodejs.org/download/ and click on the Windows Installer to download the .msi installer. Once the download has completed, run the installer, selecting all of the defaults.
- Now go to http://ghost.org, login, and click the blue Download Ghost Source pre button.
- In the location of your choice, create a folder called Ghost and expand the contents of the ghost.zip into it.
- Now open the Node.js Command Prompt, which can be found in your Start menu. There is a Node.js app and a Node.js Command Prompt. Make sure you open the Command Prompt.
- Change directories to the Ghost folder you created:
- Now install Ghost:
cd [ path to where you have created the Ghost folder ]
npm install --production
In this step, we are going to be making changes to the Ghost configuration file. If you just plan to host Ghost locally on your own computer and do not need to allow access from anywhere else, you can skip this step. If you are installing Ghost on a remote server or want to allow access beyond your personal computer, this step is necessary.
- Inside the Ghost folder, there is a file called config.example.js. Open this file in any text editor and change the following:
- Now to start Ghost run:
andhost: '127.0.0.1', port: '2368'
url: '[your Ghost URL or IP]',
host: '0.0.0.0', port: '80'
Save this file as ‘config.js’ and exit the text editor.
npm start --productionAfter running the command,
npm start --production, you should see an output that says “Ghost is running…”. This means that Ghost has started successfully and you can now browse to the Ghost website. If you installed Ghost locally and did not edit the config.js file, type the URL ‘127.0.0.1:2368’ into your browser, and you will see your Ghost blog. If you did edit your config.js file, head to the URL or IP address where Ghost is set up to run.
Keep Ghost running with PM2
Keep Ghost running in the background and on startup using PM2