• Contact
  • Contact Us
  • Disclamer
  • Home 1
  • Home 2
  • Home 3
  • Privacy Policy
Thursday, May 22, 2025
How VPS - How to use/setup VPS
  • Login
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home Operating System Linux

How to Install Discourse on Ubuntu 14.04

How VPS by How VPS
January 1, 2020
in Linux
0
0
SHARES
30
VIEWS
Share on FacebookShare on Twitter

Contents

  1. Using a Different System?
  2. Create a new Vultr VPS
  3. Access your Vultr VPS
  4. Setup swap (only for 1GB install)
  5. Install Docker/Git
  6. Install Discourse
  7. Edit the Discourse configuration
  8. Bootstrap Discourse
  9. Setup complete
  10. Want to contribute?

Using a Different System?

  • How to Install Discourse on Debian 9

  • How to Install Discourse on Ubuntu 18.04

Are we missing a guide for your target system? Request one, or submit your own!


Discourse is a modern, open-source discussion and forum system. Visit the official site for a demo and a breakdown of the current feature set. This tutorial will teach you how to setup Discourse with Docker on Ubuntu 14.04.

Create a new Vultr VPS

1GB of RAM is minimum amount, although it is recommended to use at least 2GB of RAM. Always select the latest 64-bit LTS distribution.

Access your Vultr VPS

Connect to your server using SSH via the Terminal on Mac or PuTTY on Windows.

ssh [email protected]

Replace “123.456.7.8” with your server IP.

You will be prompted to type “Yes” or “No” to add the server’s RSA fingerprint to your list of known hosts. Type “Yes” and hit enter.

Setup swap (only for 1GB install)

  1. Create an empty swap file: sudo install -o root -g root -m 0600 /dev/null /swapfile
  2. Write out a 1GB file named: swapfile: dd if=/dev/zero of=/swapfile bs=1k count=1024k
  3. Tell Linux that this is the swap file: mkswap /swapfile
  4. Activate it: swapon /swapfile
  5. Add it to the system table so that it is available after reboot: echo "/swapfile swap swap auto 0 0" | sudo tee -a /etc/fstab
  6. Set the “swappiness” so that it is only used as an emergency buffer: sudo sysctl -w vm.swappiness=10

Install Docker/Git

Run the following command: wget -qO- https://get.docker.io/ | sh

Install Discourse

  1. Make a folder called “discourse” in the /var directory: mkdir /var/discourse
  2. Clone the official Discourse git repository in /var/discourse: git clone https://github.com/discourse/discourse_docker.git /var/discourse
  3. Go into the Discourse directory: cd /var/discourse
  4. Make a copy of the config file as app.yml: cp samples/standalone.yml containers/app.yml

Edit the Discourse configuration

  1. Edit the app.yml file: nano app.yml
  2. Set “DISCOURSE_DEVELOPER_EMAILS” to your email address.
  3. Set “DISCOURSE_HOSTNAME” to your web address to access Discourse (example: discourse.vultr.com).
  4. Enter your email credentials in “DISCOURSE_SMTP_ADDRESS”, “DISCOURSE_SMTP_PORT”, “DISCOURSE_SMTP_USERNAME” and “DISCOURSE_SMTP_PASSWORD”. Be sure to remove the “#” (hashtag) before editing the following strings.
  5. If you are running only 1GB of RAM, set “UNICORN_WORKERS” to 2 and “db_shared_buffers” to 128MB so that you have more memory room.
  6. Save the file and exit.

It is important to note that you must have your email settings setup properly – otherwise you’ll have a broken site!

Bootstrap Discourse

Run: ./launcher bootstrap app

You may be asked a question during the installation about SSH keys. Type “Yes”.

Once the bootstrap process completes, start Discourse: ./launcher start app

Setup complete

Congratulations – you now have your own instance of Discourse up and running!

To access it, simply type in what you set for “DISCOURSE_HOSTNAME” in the configuration file.

Enjoy!

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article
Previous Post

How to Install OroCRM on CentOS 7

Next Post

Setup Ajenti Control Panel on Ubuntu

Next Post

Setup Ajenti Control Panel on Ubuntu

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

No Result
View All Result

Recent Post

Install Imagemagick on CentOS
CentOS

Install Imagemagick on CentOS

by How VPS
June 28, 2023
0

This is how I installed Imagemagick on a vanilla CentOS server Start off by installing the prerequisites yum install php-pear...

Read more
how to Check phpinfo

How to Check phpinfo of Hosting or VPS?

June 28, 2023
Failed to download metadata for repo 'appstream' on Centos 8

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

February 25, 2022
How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020

Recent News

  • Install Imagemagick on CentOS
  • How to Check phpinfo of Hosting or VPS?
  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

Category

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel
  • About
  • Advertise
  • Careers
  • Contact

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Thabet