Tuesday 1 April 2014

How To Install Ghost Blog On Ubuntu

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
  • When npm is finished installing, type the following to start Ghost in development mode:
$ npm start

Apache Settings for server:
  •  Go to apache directory
          $ cd /etc/apache2/sites-available
  • Create the configuration file
         $ nano whatever
  • Write proxy settings in that file
         <VirtualHost *:80>
          ServerName blog.maaxframe.com
          <Proxy "*">
          AddDefaultCharset off
          order deny,allow
          allow from all
          </Proxy>

          ProxyRequests off
          ProxyPass / http://127.0.0.1:2368/
          ProxyPassReverse / http://127.0.0.1:2368/
          SetEnv proxy-nokeepalive 1
          ProxyPreserveHost on
          </VirtualHost>


No comments:

Post a Comment