Skip to main content

Installing ghost on a Ubuntu 14.04 LTS Physical Server

Ghost is a blogging platform based on nodejs platform. Due to its efficient and open source software it has a very much popularity and acceptance among users. Ghost is very easy to install on cloud platform like Openshift and Amazone AWS.

Here I am going to show you how to install ghost 1.6 on a Ubuntu physical server.
If you want to self-host Ghost, it is most common to this on Linux. This guide documents the basic install steps
This guide assumes that you have access to a linux server such as a VPS via a command line interface (terminal window) and that you know the IP address of your server, which we’ll refer to from here on as <your-ip-address>. Each step details a command to run on the command line.

Install Node

Note:Ghost requires Node.js 0.10.x (not 0.12.x). We recommend Node.js 0.10.36 & npm 2.5.0.
  • Most linux distros have a package manager, see the Node.js guide for details on installing node via various package managers or alternatively it is possible to download the .tar.gz archive from http://nodejs.org
  • Double check that you have Node and npm installed and that you have the right version, by typing node -v and npm -v into a terminal window and comparing with the blue box above.
  • In the ubuntu system nodejs can be installed by simply typing in the terminal apt-get install npm

Install Ghost

  1. Grab the latest version of Ghost from Ghost.org: $ curl -L https://ghost.org/zip/ghost-latest.zip -o ghost.zip
  2. Unzip Ghost into the folder /var/www/ghost (recommended install location):
    $ unzip -uo ghost.zip -d /var/www/ghost
    Note: You may additionally need to create the /var/www/ directory with the command mkdir /var/www/, or install the unzip package following the instructions for your linux distro)
  3. Move to the new ghost directory, and install Ghost (production dependencies only):
    $ cd /var/www/ghost && npm install --production
When this completes, Ghost is installed!

Starting Ghost

To start Ghost (production environment), run
$ npm start --production
Ghost will now be running on the default ip/port 127.0.0.1:2368.
  • Visit http://<your-ip-address>:2368 to see your newly setup Ghost blog
  • Visit http://<your-ip-address>:2368/ghost and create your admin user to login to the Ghost admin

Popular posts from this blog

The top 10 open source forum/bulletin/discussion software

The forum software is needed to build a discussion platform. There are many forum software which can be get freely on internet. Here I am going to list out some of 10 best forum software which you can be able to put it on your website.

1. Discourse:Discourse is an open sourceInternet forum software application founded in 2013 by Jeff Atwood, Robin Ward, and Sam Saffron. Discourse received funding from First Round Capital and Greylock.[3]
From a usability perspective, Discourse breaks with existing forum software by including features recently popularized by large social networks, such as infinite scrolling, live updates, oneboxing, expanding links, and drag and dropattachments.[4] However, the stated goals of the project are social rather than technical, to improve online discussion quality through improved forum software.
The application is written in JavaScript and Ruby on Rails,[5] and is released under the GNU General Public License version 2. PostgreSQL is the supported datab…

Java Code to Get MAC Address From Target IP Address

MAC Address is a Unique identification of a Device. Computer, Mobile, Tablet, PC all have a Unique MAC Address. If you want to know about MAC Address here is some, MAC on Wiki. MAC Address is generally 48 bits long eg, 00:ff:a3:f0:76:ae
Here we are going to discuss about How to get that address by using supplied IP Address over the network.
Here is the Java Code
GetMACAddress.java

import java.net.Inet4Address;
import java.net.InetAddress;
import java.util.Arrays;

import jpcap.*;
import jpcap.packet.*;

public class GetMACAddress{
    public static byte[] arp(InetAddress ip) throws java.io.IOException{
        //find network interface
        NetworkInterface[] devices=JpcapCaptor.getDeviceList();
        NetworkInterface device=null;

loop:    for(NetworkInterface d:devices){
            for(NetworkInterfaceAddress addr:d.addresses){
                if(!(addr.address instanceof Inet4Address)) continue;
                byte[] bip=ip.getAddress();
                byte[] subnet=addr.subnet.getAddress();

MySQL Database Connection at OpenShift Redhat Cloud using PDO Class

I was very unhappy when my code was correct but could not connect to my mysql database in openshift. But after trying some tricks it got to work. So I will share some tips that you can also put to your PHP MySQL application in openshift.
First thing to be noted is that when you create a PHP Application in OpenShift you will get some environmental variable. Which you can view them by using echo $ENV_NAME in the shell. Some of MYSQL DB Environmental variables in openshift clouds are follows. OPENSHIFT_MYSQL_DB_HOST
OPENSHIFT_MYSQL_DB_PORT
OPENSHIFT_MYSQL_DB_USERNAME
OPENSHIFT_MYSQL_DB_PASSWORD
OPENSHIFT_MYSQL_DB_SOCKET
OPENSHIFT_MYSQL_DB_URL You can Find more about it here OpenShift Variables
Considering we have database name 'gitspot' and have a table name having demo where there is a field 'name' and has a record 'RedHat Openshift' Now create a php file conf.php which contains all the Database Host Port etc and the way to connect using PDO Class. <?php
  …