Guides

How to Install Discourse on Ubuntu VPS

This article provides step-by-step instructions on how to install Discourse on Ubuntu VPS server.

What is Discourse?

Discourse is an open source Internet forum system. Features include threading, categorization and tagging of discussions, configurable access control, live updates, expanding link previews, infinite scrolling, and real-time notifications. It is customizable via its plugin architecture and its theming system.

Prerequisites

In order to install Discourse on Ubuntu VPS, the following requirements must be met:

Related Post

Preview of Discourse Installation

In this tutorial, we will perform the following:

  • Update the system’s OS (Ubuntu)
  • Install, start, and enable Docker
  • Install, setup, start, and enable Discourse
  • Configure Let’s Encrypt SSL certificate installation and renewal
  • Activate the Discourse Admin user
  • Configure Discourse via web-based interface

How to Install Discourse on Ubuntu VPS

To install Discourse on Ubuntu VPS, follow the steps below:

  1. Login via SSH as root user.
  2. Update the system:
    sudo apt update -y && sudo apt upgrade -y
  3. Install Docker container:
    sudo apt-get install docker.io -y
  4. Once the installation is finished, start the Docker service:
    sudo systemctl start docker
  5. Enable Docker service to start on boot:
    sudo systemctl enable docker
  6. Clone the Official Discourse Docker Image into /var/discourse:
    sudo -s
    git clone https://github.com/discourse/discourse_docker.git /var/discourse
    cd /var/discourse
    chmod 700 containers
  7. Launch the Discourse setup tool:
    ./discourse-setup
  8. Answer the following questions, when prompted:
    Hostname for your Discourse? [discourse.example.com]: 
    Email address for admin account(s)? [me@example.com,you@example.com]: 
    SMTP server address? [smtp.example.com]: 
    SMTP port? [587]: 
    SMTP user name? [user@example.com]: 
    SMTP password? [pa$$word]: 
    Let's Encrypt account email? (ENTER to skip) [me@example.com]: 
    Optional Maxmind License key () [xxxxxxxxxxxxxxxx]:
  9. Once the setup is complete, access the Discourse hostname (i.e. discourse.example.com) from your web browser:
  10. Click to activate the account:
  11. Confirm the email:
  12. Configure Discourse-“About Your Site”:
  13. Configure Discourse-“Member Experience”:
  14. Configure Discourse – “Your site is ready”:
  15. Click “Configure More” to configure additional options.
  16. Configure Discourse-“Site Logo”:
  17. Configure Discourse-“Look and Feel”:
  18. Configure Discourse-“Your Organization”:
  19. Now you can navigate to your Discourse installation:

Conclusion

You now know how to install Discourse on Ubuntu VPS server.

Further Reading:

Editorial Staff

Rad Web Hosting is a leading provider of web hosting, Cloud VPS, and Dedicated Servers in Dallas, TX and Phoenix, AZ.

Recent Posts

How to Partition Drives and Mount New ext4 File System

This article shows how to partition drives and mount new ext4 file system in Linux VPS or dedicated servers. This… Read More

48 mins ago

Top 5 Best Free VPS Control Panel Alternatives Ranked

In this guide, we will provide our list of the top 5 best free VPS control panel alternatives. Management of… Read More

1 hour ago

How to Link Your Reseller Server to WHMCS for Automated Provisioning

Resellers require access to WHM (Web Host Manager) in order to create and administer cPanel accounts and hosting packages. To… Read More

1 hour ago

4 Simplest SEO Steps for WordPress

The benefits of SEO are obvious, so let’s look at 4 simplest SEO steps for WordPress that you can take… Read More

2 hours ago

Why and How to Buy a Linux VPS With Bitcoin?

When you buy a Linux VPS with Bitcoin, you are getting a private virtual server with private crypto transfer for… Read More

2 hours ago

How to Add User to Sudoers in Debian VPS

This article provides a guide for how to add user to sudoers in Debian VPS. Sudo provides users with administrator-level… Read More

2 hours ago