{"id":39599,"date":"2021-11-22T12:30:00","date_gmt":"2021-11-22T18:30:00","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=39599"},"modified":"2022-07-07T10:05:16","modified_gmt":"2022-07-07T15:05:16","slug":"how-to-install-discourse-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-discourse-on-ubuntu-20-04\/","title":{"rendered":"How To Install Discourse on Ubuntu 20.04"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\r\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"742\" height=\"372\" class=\"wp-image-39626\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-discourse-on-ubuntu-20.04.jpg\" alt=\"how to install discourse on ubuntu 20.04\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-discourse-on-ubuntu-20.04.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-discourse-on-ubuntu-20.04-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-discourse-on-ubuntu-20.04-150x75.jpg 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>In this tutorial we are going to explain step-by-step instructions on How to install Discourse on Ubuntu 20.04 Also, we will provide you with some useful information about its usage.<\/p>\r\n\r\n\r\n\r\n<p>Discourse is an open-source platform used for discussions forum, chat rooms, or as a mailing list management software. It is written in <b>Ruby on Rails<\/b> as a backend language, <b>Ember.js<\/b> as a frontend, and uses <b>PostgreSQL<\/b> for data storage. It offers many features such as 2FA (Two-factor authentication), Spam blocking, Comprehensive API, Social Login and etc. Installing Discourse can be done manually with a couple of steps or in an isolated environment with Docker.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"alignright size-large is-resized\"><img decoding=\"async\" class=\"wp-image-39631\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/setting-up-discourse-on-ubuntu-20.04-1024x851.png?v=1635498158\" alt=\"setting up discourse on ubuntu 20.04\" width=\"206\" height=\"170\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/setting-up-discourse-on-ubuntu-20.04-1024x851.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/setting-up-discourse-on-ubuntu-20.04-300x249.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/setting-up-discourse-on-ubuntu-20.04-150x125.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/setting-up-discourse-on-ubuntu-20.04-768x639.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/setting-up-discourse-on-ubuntu-20.04-1320x1098.png 1320w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/setting-up-discourse-on-ubuntu-20.04.png 1323w\" sizes=\"(max-width: 206px) 100vw, 206px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>In this blog post, we will use docker as an easier and faster solution and the estimated time for the installation should be a few minutes, depending on your network speed. Let&#8217;s get started!<\/p>\r\n\r\n\r\n\r\n<p><!--more--><\/p>\r\n\r\n\r\n\r\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69ee135d4cc0f\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69ee135d4cc0f\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-discourse-on-ubuntu-20-04\/#Prerequisites\" >Prerequisites<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-discourse-on-ubuntu-20-04\/#Step-1-Update-the-System\" >Step 1. Update the System<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-discourse-on-ubuntu-20-04\/#Step-2-Install-Docker-Container\" >Step 2. Install Docker Container<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-discourse-on-ubuntu-20-04\/#Step-3-Download-and-Install-Discourse\" >Step 3. Download and Install Discourse<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-discourse-on-ubuntu-20-04\/#Step-4-Access-The-Web-Interface\" >Step 4. Access The Web Interface<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-prerequisites\"><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>Before we start with the installation there are a few requirements that need to be fulfilled:<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>A VPS with at least 2GB of RAM (Our SSD 2 VPS plan)<\/li>\r\n<li>Fresh install of Ubuntu 20.04<\/li>\r\n<li>User privileges: root or non-root user with sudo privileges<\/li>\r\n<li>Pointed A record of domain or subdomain to your server IP address<\/li>\r\n<li>SMTP mail server. May use some external mail services like Mailgun, Sendgrid, Gmail, Hotmail and etc, if you do not have one<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-step-1-update-the-system\"><span class=\"ez-toc-section\" id=\"Step-1-Update-the-System\"><\/span>Step 1. Update the System<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>Fresh installation of Ubuntu 20.04 requires the latest software updates. Execute the following command to update the system to its latest version:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo apt update -y &amp;&amp; sudo apt upgrade -y<\/pre>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-step-2-install-docker-container\"><span class=\"ez-toc-section\" id=\"Step-2-Install-Docker-Container\"><\/span>Step 2. Install Docker Container<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>As we mentioned before we will install Discourse in an isolated docker environment. Docker by default is available in Ubuntu 20.04 and we just need to execute the following commands to install it:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo apt-get install docker.io -y<\/pre>\r\n\r\n\r\n\r\n<p>Once, the installation is complete start the docker service:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo systemctl start docker<\/pre>\r\n\r\n\r\n\r\n<p>After starting the service, you need to enable it with the following command:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo systemctl enable docker<\/pre>\r\n\r\n\r\n\r\n<p>To check that the service is up and running, in the terminal execute the command below:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo systemctl status docker<\/pre>\r\n\r\n\r\n\r\n<p>You should see the following output:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">root@vps:~# systemctl status docker\r\n\u25cf docker.service - Docker Application Container Engine\r\n     Loaded: loaded (\/lib\/systemd\/system\/docker.service; enabled; vendor preset: enabled)\r\n     Active: active (running) since Thu 2021-10-28 17:52:17 UTC; 1h 14min ago\r\nTriggeredBy: \u25cf docker.socket\r\n       Docs: https:\/\/docs.docker.com\r\n   Main PID: 63601 (dockerd)\r\n      Tasks: 32\r\n     Memory: 1.8G\r\n     CGroup: \/system.slice\/docker.service\r\n             \u251c\u2500 63601 \/usr\/bin\/dockerd -H fd:\/\/ --containerd=\/run\/containerd\/containerd.sock\r\n             \u251c\u2500274057 \/usr\/bin\/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 443 -container-ip 172.17.0.2 -container-port 443\r\n             \u2514\u2500274071 \/usr\/bin\/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 80 -container-ip 172.17.0.2 -container-port 80\r\n\r\nOct 28 19:03:56 vps.example.com dockerd[63601]: time=\"2021-10-28T19:03:56.213105991Z\" level=info msg=\"ignoring event\" container=1baae1c7e1acfab1fd0bc326a021964b0b02257932a70e5a6100e7ff520e318c&gt;\r\nOct 28 19:03:58 vps.example.com dockerd[265458]: time=\"2021-10-28T19:03:58Z\" level=warning msg=\"file does not exist: \/proc\/sys\/net\/ipv6\/conf\/all\/disable_ipv6 : stat \/proc\/sys\/net\/ipv6\/conf\/all&gt;\r\nOct 28 19:04:31 vps.example.com dockerd[63601]: time=\"2021-10-28T19:04:31.892373712Z\" level=info msg=\"ignoring event\" container=1baae1c7e1acfab1fd0bc326a021964b0b02257932a70e5a6100e7ff520e318c&gt;<\/pre>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-step-3-download-and-install-discourse\"><span class=\"ez-toc-section\" id=\"Step-3-Download-and-Install-Discourse\"><\/span>Step 3. Download and Install Discourse<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>Before we download the installation file for Discourse we will make a separate director for it:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo mkdir \/var\/www\/discourse\/<\/pre>\r\n\r\n\r\n\r\n<p>Clone the discourse with the command bellow:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\"> sudo git clone https:\/\/github.com\/discourse\/discourse_docker.git \/var\/www\/discourse\/<\/pre>\r\n\r\n\r\n\r\n<p>Go into the newly created directory and execute the command for installing Discourse<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\"> cd \/var\/www\/discourse\/ \r\n\r\n .\/discourse-setup \r\n\r\n<\/pre>\r\n\r\n\r\n\r\n<p>After executing the command for discourse setup, there will be a couple of inputs that need to be entered such as <b>hostname<\/b>, email address for <b>admin<\/b> account, <b>SMTP server<\/b>, SMTP <b>username<\/b>, SMTP <b>password<\/b> and email address for <b>Let&#8217;s Encrypt<\/b> as shown below:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">Checking your domain name . . .\r\nConnection to discourse.<b>yourdomain.com<\/b> succeeded.\r\nEmail address for admin account(s)? [me@example.com,you@example.com]: discourse@<b>yourdomain.com<\/b>\r\nSMTP server address? [smtp.example.com]: smtp.<b>yourdomain.com<\/b>\r\nSMTP port? [587]: \r\nSMTP user name? [user@example.com]: discourse@<b>yourdomain.com<\/b>\r\nSMTP password? [pa$word]: yourstrongpassword\r\nOptional email address for Let's Encrypt warnings? (ENTER to skip) [me@example.com]: ssl-discourse@<b>yourdomain.com<\/b>\r\n<\/pre>\r\n\r\n\r\n\r\n<p>Once you enter these values, there will be another window to check them again.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">Does this look right?\r\n\r\nHostname      : discourse.<b>yourdomain.com<\/b>\r\nEmail         : discourse@<b>yourdomain.com<\/b>\r\nSMTP address  : smtp.<b>yourdomain.com<\/b>\r\nSMTP port     : 587\r\nSMTP username : discourse@<b>yourdomain.com<\/b>\r\nSMTP password : <b>yourstrongpassword<\/b>\r\nLet's Encrypt : ssl-discourse@<b>yourdomain.com<\/b>\r\n\r\nENTER to continue, 'n' to try again, Ctrl+C to exit:<\/pre>\r\n\r\n\r\n\r\n<p>Hit &#8220;<b>Enter<\/b>&#8221; to approve them and allow some time for the installation to complete.<\/p>\r\n\r\n\r\n\r\n<p>Once the installation is completed you can check that the docker container is running properly:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\"> root@vps:~# docker ps<\/pre>\r\n\r\n\r\n\r\n<p>You should see the following output:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">#root@vps:~# docker ps\r\nCONTAINER ID   IMAGE                 COMMAND        CREATED          STATUS          PORTS                                      NAMES\r\n1baae1c7e1ac   local_discourse\/app   \"\/sbin\/boot\"   47 minutes ago   Up 16 seconds   0.0.0.0:80-&gt;80\/tcp, 0.0.0.0:443-&gt;443\/tcp   app\r\n<\/pre>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-step-4-access-the-web-interface\"><span class=\"ez-toc-section\" id=\"Step-4-Access-The-Web-Interface\"><\/span>Step 4. Access The Web Interface<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>Access the discourse in the browser: <b>https:\/\/discourse.yourdomain.com<\/b><\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"880\" height=\"665\" class=\"wp-image-39627\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/installing-discourse-on-ubuntu-20.04.png\" alt=\"installing discourse on ubuntu 20.04\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/installing-discourse-on-ubuntu-20.04.png 880w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/installing-discourse-on-ubuntu-20.04-300x227.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/installing-discourse-on-ubuntu-20.04-150x113.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/installing-discourse-on-ubuntu-20.04-768x580.png 768w\" sizes=\"(max-width: 880px) 100vw, 880px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>Now, you need to click on the &#8220;<b>Register<\/b>&#8221; button and another form will open for <b>Email<\/b>, <b>Username<\/b> and <b>Password<\/b>.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"820\" height=\"583\" class=\"wp-image-39628\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/installation-of-discourse-on-ubuntu-20.04.png\" alt=\"installation of discourse on ubuntu 20.04\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/installation-of-discourse-on-ubuntu-20.04.png 820w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/installation-of-discourse-on-ubuntu-20.04-300x213.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/installation-of-discourse-on-ubuntu-20.04-150x107.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/installation-of-discourse-on-ubuntu-20.04-768x546.png 768w\" sizes=\"(max-width: 820px) 100vw, 820px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>The final step is to check your mailbox to confirm your administrator account creation.<\/p>\r\n\r\n\r\n\r\n<p>Congratulations! You successfully installed <b>Discourse on Ubuntu 20.04<\/b>.<\/p>\r\n\r\n\r\n\r\n<p>Of course, you don\u2019t have to install Discourse on Ubuntu 20.04. If you find it difficult, you can simply ask our expert Linux admins to install Discourse on Ubuntu 20.04 for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\r\n\r\n\r\n\r\n<p>If you liked this post on how to install Discourse on Ubuntu 20.04, please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. If you&#8217;re interested, check out our <a href=\"https:\/\/www.rosehosting.com\/discourse-hosting\/\">Discourse VPS plans<\/a>. Thanks.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial we are going to explain step-by-step instructions on How to install Discourse on Ubuntu 20.04 Also, we &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How To Install Discourse on Ubuntu 20.04\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-discourse-on-ubuntu-20-04\/#more-39599\" aria-label=\"Read more about How To Install Discourse on Ubuntu 20.04\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":39626,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,1698],"tags":[437,1603,1839],"class_list":["post-39599","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-ubuntu","tag-discourse","tag-how-to-install","tag-ubuntu-20-04","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 Discourse on Ubuntu 20.04 | RoseHosting<\/title>\n<meta name=\"description\" content=\"Are you looking to install Discourse on Ubuntu 20.04? We have it all explained step-by-step in this tutorial.\" \/>\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-discourse-on-ubuntu-20-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Discourse on Ubuntu 20.04 | RoseHosting\" \/>\n<meta property=\"og:description\" content=\"Are you looking to install Discourse on Ubuntu 20.04? We have it all explained step-by-step in this tutorial.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-discourse-on-ubuntu-20-04\/\" \/>\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=\"2021-11-22T18:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-07T15:05:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-discourse-on-ubuntu-20.04.jpg?v=1635497255\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to Install Discourse on Ubuntu 20.04 | RoseHosting\" \/>\n<meta name=\"twitter:description\" content=\"Are you looking to install Discourse on Ubuntu 20.04? We have it all explained step-by-step in this tutorial.\" \/>\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=\"5 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-discourse-on-ubuntu-20-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-discourse-on-ubuntu-20-04\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How To Install Discourse on Ubuntu 20.04\",\"datePublished\":\"2021-11-22T18:30:00+00:00\",\"dateModified\":\"2022-07-07T15:05:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-discourse-on-ubuntu-20-04\\\/\"},\"wordCount\":601,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-discourse-on-ubuntu-20-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/how-to-install-discourse-on-ubuntu-20.04.jpg\",\"keywords\":[\"Discourse\",\"how to install\",\"Ubuntu 20.04\"],\"articleSection\":[\"Tutorials\",\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-discourse-on-ubuntu-20-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-discourse-on-ubuntu-20-04\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-discourse-on-ubuntu-20-04\\\/\",\"name\":\"How to Install Discourse on Ubuntu 20.04 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-discourse-on-ubuntu-20-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-discourse-on-ubuntu-20-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/how-to-install-discourse-on-ubuntu-20.04.jpg\",\"datePublished\":\"2021-11-22T18:30:00+00:00\",\"dateModified\":\"2022-07-07T15:05:16+00:00\",\"description\":\"Are you looking to install Discourse on Ubuntu 20.04? We have it all explained step-by-step in this tutorial.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-discourse-on-ubuntu-20-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-discourse-on-ubuntu-20-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-discourse-on-ubuntu-20-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/how-to-install-discourse-on-ubuntu-20.04.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/how-to-install-discourse-on-ubuntu-20.04.jpg\",\"width\":742,\"height\":372,\"caption\":\"how to install discourse on ubuntu 20.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-discourse-on-ubuntu-20-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Install Discourse on Ubuntu 20.04\"}]},{\"@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 Discourse on Ubuntu 20.04 | RoseHosting","description":"Are you looking to install Discourse on Ubuntu 20.04? We have it all explained step-by-step in this tutorial.","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-discourse-on-ubuntu-20-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Discourse on Ubuntu 20.04 | RoseHosting","og_description":"Are you looking to install Discourse on Ubuntu 20.04? We have it all explained step-by-step in this tutorial.","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-discourse-on-ubuntu-20-04\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2021-11-22T18:30:00+00:00","article_modified_time":"2022-07-07T15:05:16+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-discourse-on-ubuntu-20.04.jpg?v=1635497255","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_title":"How to Install Discourse on Ubuntu 20.04 | RoseHosting","twitter_description":"Are you looking to install Discourse on Ubuntu 20.04? We have it all explained step-by-step in this tutorial.","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-discourse-on-ubuntu-20-04\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-discourse-on-ubuntu-20-04\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How To Install Discourse on Ubuntu 20.04","datePublished":"2021-11-22T18:30:00+00:00","dateModified":"2022-07-07T15:05:16+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-discourse-on-ubuntu-20-04\/"},"wordCount":601,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-discourse-on-ubuntu-20-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-discourse-on-ubuntu-20.04.jpg","keywords":["Discourse","how to install","Ubuntu 20.04"],"articleSection":["Tutorials","Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-discourse-on-ubuntu-20-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-discourse-on-ubuntu-20-04\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-discourse-on-ubuntu-20-04\/","name":"How to Install Discourse on Ubuntu 20.04 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-discourse-on-ubuntu-20-04\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-discourse-on-ubuntu-20-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-discourse-on-ubuntu-20.04.jpg","datePublished":"2021-11-22T18:30:00+00:00","dateModified":"2022-07-07T15:05:16+00:00","description":"Are you looking to install Discourse on Ubuntu 20.04? We have it all explained step-by-step in this tutorial.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-discourse-on-ubuntu-20-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-discourse-on-ubuntu-20-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-discourse-on-ubuntu-20-04\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-discourse-on-ubuntu-20.04.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-discourse-on-ubuntu-20.04.jpg","width":742,"height":372,"caption":"how to install discourse on ubuntu 20.04"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-discourse-on-ubuntu-20-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Install Discourse on Ubuntu 20.04"}]},{"@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\/39599","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=39599"}],"version-history":[{"count":28,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/39599\/revisions"}],"predecessor-version":[{"id":42603,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/39599\/revisions\/42603"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/39626"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=39599"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=39599"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=39599"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}