{"id":5470,"date":"2016-10-24T07:27:01","date_gmt":"2016-10-24T07:27:01","guid":{"rendered":"https:\/\/cpanelplesk.com\/wp62\/?p=5470"},"modified":"2021-02-02T10:04:02","modified_gmt":"2021-02-02T10:04:02","slug":"install-ghost-nginx-centos","status":"publish","type":"post","link":"https:\/\/cpanelplesk.com\/wp62\/install-ghost-nginx-centos\/","title":{"rendered":"How to install Ghost with Nginx on CentOS"},"content":{"rendered":"<p><span style=\"color: #000000;\">In this tutorial i will explain you how to install and setup Ghost with Ngnix running on Centos server.<\/span><\/p>\n<p><span style=\"color: #000000;\">Ghost is a powerful free blogging script based on Node.js. Its Just a blogging platform. <\/span><!--more--><\/p>\n<p><span style=\"color: #000000;\">It is a beautifully designed, completely customizable and absolutely Open Source blogging platform exists only with one purpose, posting.<\/span><\/p>\n<h2><span style=\"color: #000000;\">Prerequisite:<\/span><\/h2>\n<ol>\n<li><span style=\"color: #000000;\">A VPS running CentOS. I am using CentOS 6 64-bit running on a 1024MB.<\/span><\/li>\n<li><span style=\"color: #000000;\"><a href=\"https:\/\/cpanelplesk.com\/wp62\/using-putty-connect-server-ssh-windows\/\">Putty<\/a> or Terminal to access your server.<\/span><\/li>\n<li><span style=\"color: #000000;\">Basic know how about common SSH commands to manage a Linux vps.<\/span><\/li>\n<li><span style=\"color: #000000;\">30 minutes of your time with a cup of coffee or tea.<\/span><\/li>\n<\/ol>\n<p><span style=\"color: #000000;\"><strong>Step 1<\/strong> \u2013 Open up Putty or Terminal and login to your server as root or any user with root \/ sudo privileges.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>Step 2<\/strong> \u2013 In order to setup Ghost on your server, the main requirement is Node.js should be available there. So you can<a href=\"https:\/\/cpanelplesk.com\/wp62\/easy-way-install-node-js-centos\/\"> install Node.js <\/a>following my previous tutorial.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>Step 3<\/strong> \u2013 Next, <a href=\"https:\/\/cpanelplesk.com\/wp62\/install-ghost-vps\/\">install Ghost on your server following this guide<\/a>. The steps are very simple but one thing notable for this tutorial. Do not replace port 2368 with 80: As describe in Step 11 point 3. You can leave the port as it is or use common secondary web port like 81, 82, or 8080. In this guide I will stick with port 2368 (default).<\/span><\/p>\n<p><span style=\"color: #000000;\">Next, in the host part, use 127.0.0.1.<\/span><\/p>\n<h2><span style=\"color: #000000;\">INSTALL NGINX<\/span><\/h2>\n<p><span style=\"color: #000000;\"><strong>Step 4<\/strong> \u2013 Now we\u2019ll try to install Nginx on CentOS. Please follow the steps given below:<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>Step 4.a.<\/strong> Create nginx.repo file in yum.repos.d:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>nano \/etc\/yum.repos.d\/nginx.repo<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><strong>Step 4.b.<\/strong> <span style=\"color: #000000;\">Now put following lines there:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>[nginx]\r\nname=nginx repo\r\nbaseurl=http:\/\/nginx.org\/packages\/centos\/$releasever\/$basearch\/\r\ngpgcheck=0\r\nenabled=1<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\">Once done, save the file and exit the editor:<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>Step 4.c.<\/strong> Now install nginx using simple yum command:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>yum install nginx -y<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\">It will take some time to complete.<\/span><\/p>\n<h2><span style=\"color: #000000;\">CONFIGURING NGINX<\/span><\/h2>\n<p><span style=\"color: #000000;\"><strong>Step 5<\/strong> \u2013 Now go to nginx default configuration directory:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>cd \/etc\/nginx\/<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\"><strong>Step 5.a.<\/strong> Make a backup copy of nginx.conf file (just in case if things get disturbed):<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>cp nginx.conf nginx.conf.bak<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\"><strong>Step 5.b.<\/strong> Open up nginx.conf file using file editor:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>nano nginx.conf<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\"><strong>Step 5.c.<\/strong> Delete everything in that file and replace it with the text below:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>user nginx;\r\nworker_processes 1;\r\npid \/var\/run\/nginx.pid;\r\n\r\nevents {\r\nworker_connections 768;\r\n# multi_accept on;\r\n}\r\n\r\nhttp {\r\n\r\nproxy_cache_path \/var\/cache\/nginx levels=1:2 keys_zone=one:8m \r\nmax_size=3000m inactive=600m;\r\nproxy_temp_path \/var\/tmp;\r\ninclude mime.types;\r\ndefault_type application\/octet-stream;\r\nsendfile on;\r\nkeepalive_timeout 65;\r\n\r\ngzip on;\r\ngzip_comp_level 6;\r\ngzip_vary on;\r\ngzip_min_length 1000;\r\ngzip_proxied any;\r\ngzip_types text\/plain text\/css application\/json application\/x-javascript \r\ntext\/xml application\/xml application\/xml+rss text\/javascript;\r\n\r\ngzip_buffers 16 8k;\r\n\r\nupstream ghost_upstream {\r\nserver 127.0.0.1:2368;\r\nkeepalive 64;\r\n}\r\n\r\naccess_log \/var\/log\/nginx\/access.log;\r\nerror_log \/var\/log\/nginx\/error.log;\r\n\r\ninclude \/etc\/nginx\/conf.d\/*.conf;\r\n}<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\">Now replace 1 at worker_processes line with the number of CPU your vps is allocated. In this example, I use 1.<\/span><\/p>\n<p><span style=\"color: #000000;\">Also, replace 2368 with the port you defined in your config.js file at ghost folder (example: 8080, 81, 82, etc).<\/span><\/p>\n<p><span style=\"color: #000000;\">Once done, save and exit editor.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>Step 5.d.<\/strong> Now create the virtual host file for your site\u2019s domain:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>nano \/etc\/nginx\/conf.d\/domain.conf<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\">Replace domain.conf with your actual domain. Example:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>nano \/etc\/nginx\/conf.d\/cpanelpleskhost.conf<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\"><strong>Step 5.e.<\/strong> Now put following lines of code there:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>server {\r\nlisten 80;\r\n\r\nserver_name domain.tld www.domain.tld;\r\n\r\nif ($host = 'domain.tld' ) {\r\nrewrite ^\/(.*)$ http:\/\/www.domain.tld\/$1 permanent;\r\n}\r\n\r\n# location ~ ^\/(ghost\/signup\/) {\r\n# rewrite ^\/(.*)$ http:\/\/domain.tld\/ permanent;\r\n# }\r\n\r\nlocation ~ ^\/(img\/|css\/|lib\/|vendor\/|fonts\/|robots.txt|humans.txt) {\r\nroot \/var\/www\/core\/client\/assets;\r\naccess_log off;\r\nexpires max;\r\n}\r\n\r\nlocation ~ ^\/(shared\/|built\/) {\r\nroot \/var\/www\/core;\r\naccess_log off;\r\nexpires max;\r\n}\r\n\r\nlocation ~ ^\/(favicon.ico) {\r\nroot \/var\/www\/core\/shared;\r\naccess_log off;\r\nexpires max;\r\n}\r\n\r\nlocation ~ ^\/(content\/images\/) {\r\nroot \/var\/www;\r\naccess_log off;\r\nexpires max;\r\n}\r\n\r\nlocation \/ {\r\nproxy_redirect off;\r\nproxy_set_header X-Real-IP $remote_addr;\r\nproxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\r\nproxy_set_header X-Forwarded-Proto $scheme;\r\nproxy_set_header Host $http_host;\r\nproxy_set_header X-NginX-Proxy true;\r\nproxy_set_header Connection \"\";\r\nproxy_http_version 1.1;\r\nproxy_cache one;\r\nproxy_cache_key ghost$request_uri$scheme;\r\nproxy_pass http:\/\/ghost_upstream;\r\n}\r\n}<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\">Replace domain.tld with your own domain name and its TLD. In my example it is cpanelplesk.com<\/span><\/p>\n<p><span style=\"color: #000000;\">Additionally you can delete these lines if you don\u2019t want to use www. These lines force your blog to be accessible via www<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>if ($host = 'domain.tld' ) {\r\nrewrite ^\/(.*)$ http:\/\/www.domain.tld\/$1 permanent;\r\n}<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\">also change \/var\/www at this part with actual directory where you put Ghost:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>location ~ ^\/(content\/images\/) {\r\nroot \/var\/www;\r\naccess_log off;\r\nexpires max;\r\n}<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\">In my example it is at \/var\/www\/ghost.<\/span><\/p>\n<p><span style=\"color: #000000;\">Done? Save it and exit.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>Step 5.f.<\/strong> Finally, text your nginx configuration before running it:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>nginx -t<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\"><strong>Step 6<\/strong> \u2013 Start nginx using this command, make sure you get OK message:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>service nginx start<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<h2>INSTALL FOREVER SERVICE<\/h2>\n<p><span style=\"color: #000000;\"><strong>Step 7<\/strong> \u2013 Now issue this command to install Forever, This service will keep Ghost alive in the background and restart it if it ever stops or crashes:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>npm install forever -g<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\"><strong>Step 8<\/strong> \u2013 Create a file called \u201cstarter.sh\u201d in \/var\/www directory:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>nano \/var\/www\/starter.sh<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\"><strong>Step 9<\/strong> \u2013 now put these lines there, save it and exit:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>#!\/bin\/sh\r\n\r\nif [ $(ps aux | grep node | grep -v grep | wc -l | tr -s \"\\n\") -eq 0 ]\r\nthen\r\nexport PATH=\/usr\/local\/bin:$PATH\r\nexport NODE_ENV=production\r\nNODE_ENV=production forever start --sourceDir \/var\/www index.js &gt;&gt; \r\n\/var\/log\/nodelog.txt 2&gt;&amp;1\r\nfi<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\"><strong>Step 10<\/strong> \u2013 Now issue this command syntax to make sure that newly created .sh file is executable:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>chmod +x \/var\/www\/starter.sh<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\"><strong>Step 11<\/strong> \u2013 Next, you may want to fix some permissions a bit:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>chown -R nginx:nginx \/var\/www\/<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\"><strong>Step 12<\/strong> \u2013 Next, create a new cron, type this command:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>crontab -e<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\"><strong>Step 13<\/strong> \u2013 Now put this in that file:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>@reboot \/var\/www\/starter.sh<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\">Save it and exit. You\u2019ll get a message saying \u201ccrontab: installing new crontab\u201c:<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>Step 14<\/strong> \u2013 Finally, go to \/var\/www 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 15<\/strong> \u2013 then start Ghost using this command:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>.\/starter.sh<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\">That\u2019s it. Now open your browser and try accessing your blog.<\/span><\/p>\n<p><span style=\"color: #000000;\">That\u2019s all to do, Now you know how its easy to install and setup Ghost with Nginx on a CentOS server. You also like to know how to\u00a0<\/span><a href=\"https:\/\/cpanelplesk.com\/wp62\/create-network-bridge-centos-7-rhel-7\/\">How To Create A Network Bridge On CentOS 7 \/ RHEL 7<\/a>\u00a0<span style=\"color: #000000;\">, Please check that and also\u00a0Give your opinion below if you experience any issues or to discuss your ideas and experiences.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial i will explain you how to install and setup Ghost with Ngnix running on Centos server. Ghost is a powerful free blogging script based on Node.js. Its Just a blogging platform. [&#8230;]<\/p>\n<p><a class=\"understrap-read-more-link\" href=\"https:\/\/cpanelplesk.com\/wp62\/install-ghost-nginx-centos\/\">Continue Reading&#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":5473,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,14],"tags":[],"class_list":["post-5470","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel","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 with Nginx on CentOS - 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-nginx-centos\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to install Ghost with Nginx on CentOS - cPanel Plesk\" \/>\n<meta name=\"twitter:description\" content=\"In this tutorial i will explain you how to install and setup Ghost with Ngnix running on Centos server. Ghost is a powerful free blogging script based on Node.js. Its Just a blogging platform. [...]Continue Reading...\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/10\/Ghost.png\" \/>\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=\"5 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-nginx-centos\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-ghost-nginx-centos\/\"},\"author\":{\"name\":\"Seemab Saleem\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648\"},\"headline\":\"How to install Ghost with Nginx on CentOS\",\"datePublished\":\"2016-10-24T07:27:01+00:00\",\"dateModified\":\"2021-02-02T10:04:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-ghost-nginx-centos\/\"},\"wordCount\":686,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-ghost-nginx-centos\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/10\/Ghost.png\",\"articleSection\":[\"Cpanel\",\"Linux\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-ghost-nginx-centos\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/install-ghost-nginx-centos\/\",\"name\":\"How to install Ghost with Nginx on CentOS - cPanel Plesk\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-ghost-nginx-centos\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-ghost-nginx-centos\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/10\/Ghost.png\",\"datePublished\":\"2016-10-24T07:27:01+00:00\",\"dateModified\":\"2021-02-02T10:04:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-ghost-nginx-centos\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cpanelplesk.com\/wp62\/install-ghost-nginx-centos\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-ghost-nginx-centos\/#primaryimage\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/10\/Ghost.png\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/10\/Ghost.png\",\"width\":393,\"height\":201},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-ghost-nginx-centos\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cpanelplesk.com\/wp62\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install Ghost with Nginx on CentOS\"}]},{\"@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 with Nginx on CentOS - 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-nginx-centos\/","twitter_card":"summary_large_image","twitter_title":"How to install Ghost with Nginx on CentOS - cPanel Plesk","twitter_description":"In this tutorial i will explain you how to install and setup Ghost with Ngnix running on Centos server. Ghost is a powerful free blogging script based on Node.js. Its Just a blogging platform. [...]Continue Reading...","twitter_image":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/10\/Ghost.png","twitter_misc":{"Written by":"Seemab Saleem","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cpanelplesk.com\/wp62\/install-ghost-nginx-centos\/#article","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/install-ghost-nginx-centos\/"},"author":{"name":"Seemab Saleem","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648"},"headline":"How to install Ghost with Nginx on CentOS","datePublished":"2016-10-24T07:27:01+00:00","dateModified":"2021-02-02T10:04:02+00:00","mainEntityOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/install-ghost-nginx-centos\/"},"wordCount":686,"commentCount":0,"publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/install-ghost-nginx-centos\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/10\/Ghost.png","articleSection":["Cpanel","Linux"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/cpanelplesk.com\/wp62\/install-ghost-nginx-centos\/","url":"https:\/\/cpanelplesk.com\/wp62\/install-ghost-nginx-centos\/","name":"How to install Ghost with Nginx on CentOS - cPanel Plesk","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/install-ghost-nginx-centos\/#primaryimage"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/install-ghost-nginx-centos\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/10\/Ghost.png","datePublished":"2016-10-24T07:27:01+00:00","dateModified":"2021-02-02T10:04:02+00:00","breadcrumb":{"@id":"https:\/\/cpanelplesk.com\/wp62\/install-ghost-nginx-centos\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cpanelplesk.com\/wp62\/install-ghost-nginx-centos\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/install-ghost-nginx-centos\/#primaryimage","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/10\/Ghost.png","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/10\/Ghost.png","width":393,"height":201},{"@type":"BreadcrumbList","@id":"https:\/\/cpanelplesk.com\/wp62\/install-ghost-nginx-centos\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cpanelplesk.com\/wp62\/"},{"@type":"ListItem","position":2,"name":"How to install Ghost with Nginx on CentOS"}]},{"@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\/5470","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=5470"}],"version-history":[{"count":0,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/5470\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media\/5473"}],"wp:attachment":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media?parent=5470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/categories?post=5470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/tags?post=5470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}