Installing and Running Ghost CMS under Apache

Posted: 2014-09-07 21:14:02

Ghost CMS is a blogging platform like WordPress, except with a minimalistic feel. Ghost uses Node.JS and SQLite, but can be connected and ran through a full Apache, PHP, and MySQL web-server platform such as WampDeveloper Pro (for Windows).

1. Download Ghost CMS:

2. Extract the Ghost CMS package into your website’s non-DocumentRoot folder (e.g., not into \webroot):

3. Open the command-line, change to the ghost folder, and install Ghost CMS:

cd C:\WampDeveloper\Websites\\ghost
npm install --production
npm start

This will automatically download a number of Ghost CMS dependencies (node.js modules) and set up a default configuration file.

* WampDeveloper Pro already comes with Node.JS and NPM.

4. Test the installation by going to URL:

Integrate Apache with Ghost + Node.JS

Open the website’s HTTP VirtualHost file, and add all configuration inside the “<VirtualHost>” block…

Transparently proxy all requests through Apache:

ProxyPass /blog

And if you want to secure /blog to local system access only:

<Location "/blog">
    Options None
    AllowOverride None
    Order deny,allow
    Deny from all
    Allow from ::1

Save VirtualHost file. Restart Apache.

Ghost Hosted Through Apache

See your Ghost CMS installation hosted by Apache (on the regular HTTP port 80):

Ghost’s configuration file is config.js, located in Ghost’s folder, and the settings are listed here: