{"id":5444,"date":"2016-10-17T05:38:07","date_gmt":"2016-10-17T05:38:07","guid":{"rendered":"https:\/\/cpanelplesk.com\/wp62\/?p=5444"},"modified":"2021-02-02T10:35:23","modified_gmt":"2021-02-02T10:35:23","slug":"install-ghost-vps","status":"publish","type":"post","link":"https:\/\/cpanelplesk.com\/wp62\/install-ghost-vps\/","title":{"rendered":"How to install ghost on your VPS"},"content":{"rendered":"<p><span style=\"color: #000000;\">Ghost is a powerful free blogging script based on Node.js. Its Just a blogging platform. It is a beautifully designed, completely customizable and absolutely Open Source blogging platform exists only with one purpose, posting.<\/span><!--more--><\/p>\n<p><span style=\"color: #000000;\">Its installation can be done either on Ubuntu or CentOS, even on a low end VPS. I am doing these installation steps on a low end 250MB SSD VPS.<\/span><\/p>\n<h2><span style=\"color: #000000;\">STEPS TO INSTALL GHOST<\/span><\/h2>\n<p><span style=\"color: #000000;\">The important thing before you proceed with the installation is to install Node.js which is a modern platform for building fast and efficient web applications. The process is very simple and luckily, I wrote some tutorials about how to get it done easily:<\/span><\/p>\n<p><a href=\"https:\/\/cpanelplesk.com\/wp62\/easy-way-install-node-js-centos\/\"><span style=\"color: #000000;\">Easy Way To Install Node.JS On CentOS<\/span><\/a><br \/>\n<a href=\"https:\/\/cpanelplesk.com\/wp62\/how-to-install-node-js-on-ubuntu-14-04\/\">How To Install Node.Js On Ubuntu 14.04<\/a><\/p>\n<p><span style=\"color: #000000;\"><strong>Step 1 \u2013<\/strong> Once you installed Node.JS, Login back to your server as a root user.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>Step 2 \u2013<\/strong> You may check your Node.js and npm installation by running these command:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>node -v<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>npm -v<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\"><strong>Step 3 \u2013<\/strong> Now Let&#8217;s make a directory where we\u2019ll put our Ghost files. In this situation I simply put it at \/var\/www,which is a common web directory on Linux:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>mkdir -p \/var\/www\/<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\"><strong>Step 4 \u2013<\/strong> Then go to that folder:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>cd \/var\/www<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\"><strong>Step 5 \u2013<\/strong> Next, download Ghost latest package, using this command:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>curl -L https:\/\/ghost.org\/zip\/ghost-latest.zip -o ghost.zip<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\"><strong>Step 6 \u2013<\/strong> Now we\u2019ve downloaded ghost.zip file so first we have to extract that package. The command is:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>unzip -uo ghost.zip -d ghost<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\"><strong>Step 7 \u2013<\/strong> Once done, all the scripts will be extracted at \u201cghost\u201d folder.<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>cd ghost<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\"><strong>Step 8 \u2013<\/strong> Finally, issue this simple command to install Ghost on your server:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>npm install --production<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\">The process should be finished in about two to three minutes.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>Step 9 \u2013<\/strong> Now you can start Ghost to run on your server using following command:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>npm start<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\">Now Ghost is running with its default configurations, If you need to alter some configurations first , shutdown ghost by using ctrl+c .<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>Step 10 \u2013<\/strong> Now edit config.js file by using nano editor.<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>nano config.js<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\">While using nano editor, If you get error message saying \u201ccommand not found\u201c, then simply you need to install nano:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"error-sh\">\n<pre>yum install nano -y<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\"><strong>Step 11 \u2013<\/strong> Now in Nano editor, scroll down (or use Control+V) and look for some lines under:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>\/\/ ### Production<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<ol>\n<li><span style=\"color: #000000;\">Change given default url with your own blog\u2019s url \/ domain<\/span><\/li>\n<li><span style=\"color: #000000;\">Replace 127.0.0.1 with your own server\u2019s IP address<\/span><\/li>\n<li><span style=\"color: #000000;\">Replace port 2368 with 80.<\/span><\/li>\n<\/ol>\n<p><span style=\"color: #000000;\">Save the changes and exit the editor.<\/span><\/p>\n<p><span style=\"color: #000000;\">Now we can start Ghost again using this command:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>npm start --production<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\">That\u2019s all you have to do, Please Give your opinion below if you experience any issues or to discuss your ideas and experiences.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ghost is a powerful free blogging script based on Node.js. Its Just a blogging platform. It is a beautifully designed, completely customizable and absolutely Open Source blogging platform exists only with one purpose, posting. [&#8230;]<\/p>\n<p><a class=\"understrap-read-more-link\" href=\"https:\/\/cpanelplesk.com\/wp62\/install-ghost-vps\/\">Continue Reading&#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-5444","post","type-post","status-publish","format-standard","hentry","category-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to install ghost on your VPS - cPanel Plesk<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cpanelplesk.com\/wp62\/install-ghost-vps\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to install ghost on your VPS - cPanel Plesk\" \/>\n<meta name=\"twitter:description\" content=\"Ghost is a powerful free blogging script based on Node.js. Its Just a blogging platform. It is a beautifully designed, completely customizable and absolutely Open Source blogging platform exists only with one purpose, posting. [...]Continue Reading...\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Seemab Saleem\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-ghost-vps\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-ghost-vps\/\"},\"author\":{\"name\":\"Seemab Saleem\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648\"},\"headline\":\"How to install ghost on your VPS\",\"datePublished\":\"2016-10-17T05:38:07+00:00\",\"dateModified\":\"2021-02-02T10:35:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-ghost-vps\/\"},\"wordCount\":409,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"articleSection\":[\"Linux\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-ghost-vps\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/install-ghost-vps\/\",\"name\":\"How to install ghost on your VPS - cPanel Plesk\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\"},\"datePublished\":\"2016-10-17T05:38:07+00:00\",\"dateModified\":\"2021-02-02T10:35:23+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-ghost-vps\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cpanelplesk.com\/wp62\/install-ghost-vps\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-ghost-vps\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cpanelplesk.com\/wp62\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install ghost on your VPS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/\",\"name\":\"cPanel Plesk\",\"description\":\"Blog on famous hosting control panels\",\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\",\"name\":\"Farooq Omer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"width\":300,\"height\":44,\"caption\":\"Farooq Omer\"},\"logo\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648\",\"name\":\"Seemab Saleem\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g\",\"caption\":\"Seemab Saleem\"},\"description\":\"Linux Server Administrator, Web Hosting engineer. I'm dealing with Linux servers since 2014. I started this blog to share the work i love with the world . let me know if you need any assistance. Thanks!!\",\"sameAs\":[\"https:\/\/cpanelplesk.com\/wp62\"],\"url\":\"https:\/\/cpanelplesk.com\/wp62\/author\/cmb\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to install ghost on your VPS - cPanel Plesk","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cpanelplesk.com\/wp62\/install-ghost-vps\/","twitter_card":"summary_large_image","twitter_title":"How to install ghost on your VPS - cPanel Plesk","twitter_description":"Ghost is a powerful free blogging script based on Node.js. Its Just a blogging platform. It is a beautifully designed, completely customizable and absolutely Open Source blogging platform exists only with one purpose, posting. [...]Continue Reading...","twitter_misc":{"Written by":"Seemab Saleem","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cpanelplesk.com\/wp62\/install-ghost-vps\/#article","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/install-ghost-vps\/"},"author":{"name":"Seemab Saleem","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648"},"headline":"How to install ghost on your VPS","datePublished":"2016-10-17T05:38:07+00:00","dateModified":"2021-02-02T10:35:23+00:00","mainEntityOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/install-ghost-vps\/"},"wordCount":409,"commentCount":0,"publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"articleSection":["Linux"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/cpanelplesk.com\/wp62\/install-ghost-vps\/","url":"https:\/\/cpanelplesk.com\/wp62\/install-ghost-vps\/","name":"How to install ghost on your VPS - cPanel Plesk","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#website"},"datePublished":"2016-10-17T05:38:07+00:00","dateModified":"2021-02-02T10:35:23+00:00","breadcrumb":{"@id":"https:\/\/cpanelplesk.com\/wp62\/install-ghost-vps\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cpanelplesk.com\/wp62\/install-ghost-vps\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cpanelplesk.com\/wp62\/install-ghost-vps\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cpanelplesk.com\/wp62\/"},{"@type":"ListItem","position":2,"name":"How to install ghost on your VPS"}]},{"@type":"WebSite","@id":"https:\/\/cpanelplesk.com\/wp62\/#website","url":"https:\/\/cpanelplesk.com\/wp62\/","name":"cPanel Plesk","description":"Blog on famous hosting control panels","publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13","name":"Farooq Omer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","width":300,"height":44,"caption":"Farooq Omer"},"logo":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/"}},{"@type":"Person","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648","name":"Seemab Saleem","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g","caption":"Seemab Saleem"},"description":"Linux Server Administrator, Web Hosting engineer. I'm dealing with Linux servers since 2014. I started this blog to share the work i love with the world . let me know if you need any assistance. Thanks!!","sameAs":["https:\/\/cpanelplesk.com\/wp62"],"url":"https:\/\/cpanelplesk.com\/wp62\/author\/cmb\/"}]}},"_links":{"self":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/5444","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/comments?post=5444"}],"version-history":[{"count":0,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/5444\/revisions"}],"wp:attachment":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media?parent=5444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/categories?post=5444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/tags?post=5444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}