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
- 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:
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.
url: 'http://my-ghost-blog.com',and host: '127.0.0.1', port: '2368' to
url: '[your Ghost URL or IP]',and
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.
Next Steps:Keep Ghost running with PM2
Keep Ghost running in the background and on startup using PM2
Learn Ghost from the Ground Up
Head to "Ghost for Beginners" to learn everything you need to know about learning and customizing Ghost
Find the Perfect Ghost Theme
Go to our Ghost themes section of this site to browse all of your Ghost theme options in one place.