{"id":3458,"date":"2014-06-18T10:06:42","date_gmt":"2014-06-18T15:06:42","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=3458"},"modified":"2022-06-03T03:46:55","modified_gmt":"2022-06-03T08:46:55","slug":"how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\/","title":{"rendered":"How To Install and Setup Discourse on an Ubuntu 12.04 VPS"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><a href=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/04\/discourse.png\"><img decoding=\"async\" class=\"alignleft size-full wp-image-3506\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/04\/discourse.png\" alt=\"discourse\" width=\"155\" height=\"155\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/04\/discourse.png 155w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/04\/discourse-150x150.png 150w\" sizes=\"(max-width: 155px) 100vw, 155px\" \/><\/a><\/p>\n<p>Discourse is an open source, next-generation discussion software written in JavaScript and Ruby on Rails. Discourse is built by the team behind the Stack Exchange and Stack Overflow networks.<br \/>\nToday, we will walk you through the process of installing and setting up Discourse in <a title=\"Ubuntu VPS Hosting\" href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Ubuntu 12.04 LTS<\/a>.<\/p>\n<p><!--more--><\/p>\n<h4>Login to your server using SSH<\/h4>\n<pre class=\"brush: bash; gutter: true\">ssh username@hostname<\/pre>\n<h4>Update the system and install all the necessary packages.<\/h4>\n<pre class=\"brush: bash; gutter: true\">~ # \u276f\u276f\u276f sudo apt-get -y update &amp;&amp; apt-get -y upgrade\r\n~ # \u276f\u276f\u276f sudo apt-get -y install build-essential libssl-dev libyaml-dev git libtool \\\r\n                            libxslt-dev libxml2-dev libpq-dev gawk curl pngcrush \\\r\n                            imagemagick python-software-properties sed<\/pre>\n<h4>Create a new Discourse user:<\/h4>\n<pre class=\"brush: bash; gutter: true\">~ # \u276f\u276f\u276f sudo adduser --shell \/bin\/bash --gecos 'Discourse application' discourse\r\n~ # \u276f\u276f\u276f sudo install -d -m 755 -o discourse -g discourse \/var\/www\/discourse\r\n~ # \u276f\u276f\u276f sudo usermod -a -G sudo discourse<\/pre>\n<h4>Install the the latest version of PostgreSQL and create a discourse DB user<\/h4>\n<pre class=\"brush: bash; gutter: true\">~ # \u276f\u276f\u276f sudo apt-get -y install postgresql postgresql-contrib\r\n~ # \u276f\u276f\u276f sudo -u postgres createuser -s discourse\r\n~ # \u276f\u276f\u276f sudo -u postgres psql -c \"alter user discourse password 'DiscoursePazzW0rt';\"<\/pre>\n<h4>Install the the latest version of Redis<\/h4>\n<pre class=\"brush: bash; gutter: true\">~ # \u276f\u276f\u276f sudo add-apt-repository -y ppa:rwky\/redis\r\n~ # \u276f\u276f\u276f sudo apt-get update\r\n~ # \u276f\u276f\u276f sudo apt-get install -y redis-server<\/pre>\n<h4>Install the latest version of Nginx<\/h4>\n<pre class=\"brush: bash; gutter: true\">~ # \u276f\u276f\u276f sudo add-apt-repository -y ppa:nginx\/stable\r\n~ # \u276f\u276f\u276f sudo apt-get update\r\n~ # \u276f\u276f\u276f sudo apt-get install -y nginx<\/pre>\n<p>Set the worker_processes to the number of processors in your system. To find out the number of processors in your system and set the worker_processes, run the following command:<\/p>\n<pre class=\"brush: bash; gutter: true\">~ # \u276f\u276f\u276f sudo sed -i \"0,\/^worker_processes\/ s\/^worker_processes .*$\/worker_processes `grep -c processor \/proc\/cpuinfo`;\/\"  \/etc\/nginx\/nginx.conf<\/pre>\n<h4>Install a mail server<\/h4>\n<pre class=\"brush: bash; gutter: true\">~ # \u276f\u276f\u276f sudo apt-get install -y postfix<\/pre>\n<p>For more detailed instruction on how to setup a mail server please click <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-setup-simple-but-yet-powerful-mail-server-using-postfix-dovecot-and-sasl-in-debian-6-squeeze\/\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a><\/p>\n<h4>Switch to the discourse user<\/h4>\n<pre class=\"brush: bash; gutter: true\">~ # \u276f\u276f\u276f sudo su - discourse<\/pre>\n<h4>Install Ruby using RVM<\/h4>\n<pre class=\"brush: bash; gutter: true\">discourse@rh:~$ \\curl -s -S -L https:\/\/get.rvm.io | bash\r\ndiscourse@rh:~$ source ~\/.rvm\/scripts\/rvm\r\ndiscourse@rh:~$ rvm install ruby<\/pre>\n<p>To verify everything is done correctly, use the command &#8220;ruby -v&#8221;.<br \/>\nThe output should be similar to the following:<\/p>\n<pre class=\"brush: bash; gutter: true\">discourse@rh:~$ ruby --version\r\nruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux]<\/pre>\n<h4>Install bundler<\/h4>\n<pre class=\"brush: bash; gutter: true\">discourse@rh:~$ gem install bundler<\/pre>\n<h4>Setup Bluepill<\/h4>\n<pre class=\"brush: bash; gutter: true\">gem install bluepill\r\ndiscourse@rh:~$ echo 'alias bluepill=\"NOEXEC_DISABLE=1 bluepill --no-privileged -c ~\/.bluepill\"' &gt;&gt; ~\/.bashrc\r\ndiscourse@rh:~$ source ~\/.bashrc\r\ndiscourse@rh:~$ rvm wrapper $(rvm current) bootup bluepill\r\ndiscourse@rh:~$ rvm wrapper $(rvm current) bootup bundle<\/pre>\n<p>add the Bluepill to crontab<\/p>\n<pre class=\"brush: bash; gutter: true\">crontab -e\r\n@reboot RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ROOT=\/var\/www\/discourse RAILS_ENV=production NUM_WEBS=2 \/home\/discourse\/.rvm\/bin\/bootup_bluepill --no-privileged -c ~\/.bluepill load \/var\/www\/discourse\/config\/discourse.pill<\/pre>\n<h4>Pull down the latest Discourse code<\/h4>\n<pre class=\"brush: bash; gutter: true\">discourse@rh:~$ cd \/var\/www\/discourse\r\ndiscourse@rh:~$ git clone git:\/\/github.com\/discourse\/discourse.git . # do not forget the dot at the end\r\ndiscourse@rh:~$ bundle install --deployment --without test<\/pre>\n<h4>Set up Discourse<\/h4>\n<p>Copy the example configuration files<\/p>\n<pre class=\"brush: bash; gutter: true\">discourse@rh:~$ cp config\/discourse_quickstart.conf config\/discourse.conf\r\ndiscourse@rh:~$ cp config\/discourse.pill.sample config\/discourse.pill<\/pre>\n<p>Edit the discourse.conf file<\/p>\n<pre class=\"brush: bash; gutter: true\">vim config\/discourse.conf<\/pre>\n<ul>\n<li>Change the hostname (ex: yourSub.domain.org)<\/li>\n<li>Set the password for discourse DB user &#8211; db_password (ex: DiscoursePazzW0rt)<\/li>\n<li>Set the mail config options<\/li>\n<\/ul>\n<p>Initialize Discourse database<\/p>\n<pre class=\"brush: bash; gutter: true\">cd \/var\/www\/discourse\r\ndiscourse@rh:~$ createdb discourse_prod\r\ndiscourse@rh:~$ RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec rake db:migrate\r\ndiscourse@rh:~$ RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec rake assets:precompile<\/pre>\n<p>Start Discourse<\/p>\n<pre class=\"brush: bash; gutter: true\">RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ROOT=\/var\/www\/discourse RAILS_ENV=production NUM_WEBS=2 bluepill --no-privileged -c ~\/.bluepill load \/var\/www\/discourse\/config\/discourse.pill<\/pre>\n<h4>Configure Nginx<\/h4>\n<pre class=\"brush: bash; gutter: true\">discourse@rh:~$ sudo cp \/var\/www\/discourse\/config\/nginx.global.conf \/etc\/nginx\/conf.d\/local-server.conf\r\ndiscourse@rh:~$ sudo cp \/var\/www\/discourse\/config\/nginx.sample.conf \/etc\/nginx\/sites-available\/discourse.conf\r\ndiscourse@rh:~$ sudo ln -s \/etc\/nginx\/sites-available\/discourse.conf \/etc\/nginx\/sites-enabled\/discourse.conf\r\ndiscourse@rh:~$ sudo vim \/etc\/nginx\/sites-enabled\/discourse.conf # change the server_name (ex: yourSub.domain.org)\r\ndiscourse@rh:~$ sudo \/etc\/init.d\/nginx restart<\/pre>\n<h4>Create an admin account<\/h4>\n<p>Open your browser of choice, navigate to your domain (ex: yourSub.domain.org), click on Login and create a new account.<\/p>\n<p>Back to the shell prompt<\/p>\n<pre class=\"brush: bash; gutter: true\">cd \/var\/www\/discourse\r\ndiscourse@rh:~$ RAILS_ENV=production bundle exec rails c\r\n2.1.0 :001 &gt; me = User.find_by_username_or_email('yourEmail@address.com')\r\n2.1.0 :002 &gt; me.activate\r\n2.1.0 :003 &gt; me.admin = true\r\n2.1.0 :004 &gt; me.save\r\n2.1.0 :004 &gt; SiteSetting.site_contact_username = me.username<\/pre>\n<p>That&#8217;s it. The admin account is created, and you can now start using your new forum.<\/p>\n<hr \/>\n<p>Of course you don\u2019t have to do any of this if you use one of our <a title=\"Linux VPS Hosting\" href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Linux VPS hosting<\/a> services, in which case you can simply ask our expert linux admins to install this on your server for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS.<\/strong> <\/span>If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Discourse is an open source, next-generation discussion software written in JavaScript and Ruby on Rails. Discourse is built by the &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How To Install and Setup Discourse on an Ubuntu 12.04 VPS\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\/#more-3458\" aria-label=\"Read more about How To Install and Setup Discourse on an Ubuntu 12.04 VPS\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":3506,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,1698,1707],"tags":[436,437,361,177,49,220,434,433,139,435],"class_list":["post-3458","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-ubuntu","category-web-servers","tag-bluepill","tag-discourse","tag-forum","tag-linux-vps","tag-nginx","tag-postfix","tag-postgresql","tag-redis","tag-ruby","tag-rvm","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How To Install and Setup Discourse on an Ubuntu 12.04 VPS | RoseHosting<\/title>\n<meta name=\"description\" content=\"How To Install and Setup Discourse on an Ubuntu 12.04 VPS | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Install and Setup Discourse on an Ubuntu 12.04 VPS\" \/>\n<meta property=\"og:description\" content=\"How To Install and Setup Discourse on an Ubuntu 12.04 VPS | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2014-06-18T15:06:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:46:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/04\/discourse.png\" \/>\n\t<meta property=\"og:image:width\" content=\"155\" \/>\n\t<meta property=\"og:image:height\" content=\"155\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How To Install and Setup Discourse on an Ubuntu 12.04 VPS\",\"datePublished\":\"2014-06-18T15:06:42+00:00\",\"dateModified\":\"2022-06-03T08:46:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\\\/\"},\"wordCount\":366,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/04\\\/discourse.png\",\"keywords\":[\"Bluepill\",\"Discourse\",\"forum\",\"linux vps\",\"nginx\",\"postfix\",\"PostgreSQL\",\"redis\",\"ruby\",\"RVM\"],\"articleSection\":[\"Tutorials\",\"Ubuntu\",\"Web Servers\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\\\/\",\"name\":\"How To Install and Setup Discourse on an Ubuntu 12.04 VPS | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/04\\\/discourse.png\",\"datePublished\":\"2014-06-18T15:06:42+00:00\",\"dateModified\":\"2022-06-03T08:46:55+00:00\",\"description\":\"How To Install and Setup Discourse on an Ubuntu 12.04 VPS | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/04\\\/discourse.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/04\\\/discourse.png\",\"width\":155,\"height\":155},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Install and Setup Discourse on an Ubuntu 12.04 VPS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How To Install and Setup Discourse on an Ubuntu 12.04 VPS | RoseHosting","description":"How To Install and Setup Discourse on an Ubuntu 12.04 VPS | RoseHosting","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:\/\/www.rosehosting.com\/blog\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\/","og_locale":"en_US","og_type":"article","og_title":"How To Install and Setup Discourse on an Ubuntu 12.04 VPS","og_description":"How To Install and Setup Discourse on an Ubuntu 12.04 VPS | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2014-06-18T15:06:42+00:00","article_modified_time":"2022-06-03T08:46:55+00:00","og_image":[{"width":155,"height":155,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/04\/discourse.png","type":"image\/png"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How To Install and Setup Discourse on an Ubuntu 12.04 VPS","datePublished":"2014-06-18T15:06:42+00:00","dateModified":"2022-06-03T08:46:55+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\/"},"wordCount":366,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/04\/discourse.png","keywords":["Bluepill","Discourse","forum","linux vps","nginx","postfix","PostgreSQL","redis","ruby","RVM"],"articleSection":["Tutorials","Ubuntu","Web Servers"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\/","name":"How To Install and Setup Discourse on an Ubuntu 12.04 VPS | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/04\/discourse.png","datePublished":"2014-06-18T15:06:42+00:00","dateModified":"2022-06-03T08:46:55+00:00","description":"How To Install and Setup Discourse on an Ubuntu 12.04 VPS | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/04\/discourse.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2014\/04\/discourse.png","width":155,"height":155},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-setup-discourse-on-an-ubuntu-12-04-vps\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Install and Setup Discourse on an Ubuntu 12.04 VPS"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/3458","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=3458"}],"version-history":[{"count":2,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/3458\/revisions"}],"predecessor-version":[{"id":43030,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/3458\/revisions\/43030"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/3506"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=3458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=3458"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=3458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}