How to install discourse on ubuntu vpsThis 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:

Launch ssd cloud vps from $2. 49/mo!

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.
    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:
    Activate account discourse
  10. Click to activate the account:
    Register admin account
  11. Confirm the email:
    Confirm discourse admin email
  12. Configure Discourse-“About Your Site”:
    About your site - how to install discourse on ubuntu vps
  13. Configure Discourse-“Member Experience”:
    Member experience - how to install discourse on ubuntu vps
  14. Configure Discourse – “Your site is ready”:
    Your site is ready - how to install discourse on ubuntu vps
  15. Click “Configure More” to configure additional options.
  16. Configure Discourse-“Site Logo”:
    Site logo - how to install discourse on ubuntu vps
  17. Configure Discourse-“Look and Feel”:
    Look and feel - how to install discourse on ubuntu vps
  18. Configure Discourse-“Your Organization”:
    Your organization - how to install discourse on ubuntu vps
  19. Now you can navigate to your Discourse installation:
    Welcome to discourse - how to install discourse on ubuntu vps

Conclusion

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

Launch ssd cloud vps from $2. 49/mo!

Further Reading:

Avatar of editorial staff

Editorial Staff

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