How To Install Ghost on Bluehost


To get started sign up for the Bluehost "Standard VPS" account plan.

To run Ghost on port 80 instead of 2368 you will need to purchase a "Dedicated IP". When logged into Bluehost account click on "Server" and then "Server IPs" tab. Purchase the dedicated IP and then bind it to the domain you purchased.

Now that our server is all setup, ssh into it.

Disable Apache and Update Server

chkconfig --level 12345 httpd off
su -c "yum update"
yum groupinstall -y "Development Tools"
yum install -y wget

Installing Node.js

Download and unpack the source code with the following commands:
wget http://nodejs.org/dist/node-latest.tar.gz
tar -xzf node-latest.tar.gz
cd [node folder]
Use the following commands to compile and install node.js
./configure  
make  
make install

Download and Install Ghost

cd /var/www/  
curl -L -O https://ghost.org/zip/ghost-latest.zip
unzip -d ghost ghost-latest.zip  
cd ghost
npm install --production

Configure Ghost

sudo vi config.example.js

In the "Production" section, change the following:

host: '127.0.0.1',

to

host: '0.0.0.0',

Create Ghost User

useradd ghost
chown -R ghost:ghost /var/www/ghost/

Now to start Ghost, you will need to log into your "ghost" user.

su - ghost
cd /var/www/ghost/

Now that you are logged in with your "ghost" user you can start Ghost:

npm start --production

Browse to http://iptheygave_you:2368 to see your Ghost blog!

Next Steps

There you have it, Node.js is installed, Ghost files are located in /var/www/ghost, and Ghost has been started. You can keep Ghost the way it is currently setup if using for a development environment and do not mind adding :2368 to the end of your url. If you are looking for more of a production setup, we would highly recommend you check out the following two articles to help get your Ghost blog ready:

  • How to Proxy Port 80 to 2368 for Ghost with Nginx

  • Keep Ghost Running with PM2
  • Next Steps:

    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.