How to Install Ghost on GoDaddy


Once up and running, GoDaddy works great, but it will take a few days to get your VPS up and running, so if you are looking for something more immediate you may want to take a look at one of our other hosting options listed in the right column.
  1. Head over to GoDaddy.com and signup for their VPS service (in their menu go to Products > Hosting and Servers > VPS)
  2. Select what kind of VPS you want. Keep as CentOS and select your size, we did Economy. Install Ghost GoDaddy
  3. Go through the checkout to complete the order.
  4. Go to "My Account" and then "Servers". Wait for the server to change from "Pending" to "New Account" (this might take a few hours) Install Ghost GoDaddy
  5. Hit "Launch"
  6. Fill in the details you want for your server and username and hit continue. Install Ghost GoDaddy
  7. Wait again for an email saying that your server has been setup.
  8. Once you get this email, it will have the details to log into your server. So in Terminal/Putty ssh into the server using the username and details you setup in step 6. If your not sure what they are, just go back into your account, hit "Launch" again and you will see your username. ssh [username]@[ip]

  9. Change to the super user

  10. su
  11. Update the server
    sudo yum update
    sudo yum upgrade
    yum groupinstall "Development Tools"
  12. Download and Install Node.js
    curl -sL https://rpm.nodesource.com/setup | bash -
    yum install -y nodejs
  13. Install Ghost
    cd /var/www/
    curl -L -O https://ghost.org/zip/ghost-latest.zip 
    unzip -d ghost ghost-latest.zip
    cd ghost
    sudo npm install --production
    (If you get npm command not found, do sudo /usr/local/bin/npm start)
  14. Configure Ghost
    cp config.example.js config.js
    sudo vi config.js
    In the "Production" section, change the following:
    host: '127.0.0.1',
    
    to
    host: '0.0.0.0',
    
  15. Create Ghost User
    useradd ghost
    chown -R ghost:ghost /var/www/ghost/
    
  16. Kill Apache
    apachectl stop  
    yum erase httpd
  17. Log into Ghost User
    su - ghost
    cd /var/www/ghost/
  18. Start Ghost
    npm start --production
    Browse to your IP address with :2368 at the end (ex. 123.456.78.901:2368) in a browser and your up!

Proxy from Port 80 and Keep Ghost Running

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.