Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794
{"id":2894,"date":"2019-12-27T07:04:35","date_gmt":"2019-12-27T07:04:35","guid":{"rendered":"https:\/\/support.aklwebhost.com\/?post_type=manual_kb&p=2894"},"modified":"2019-12-27T07:05:03","modified_gmt":"2019-12-27T07:05:03","slug":"how-to-install-discourse-on-debian-9","status":"publish","type":"manual_kb","link":"https:\/\/support.aklwebhost.com\/knowledgebase\/how-to-install-discourse-on-debian-9\/","title":{"rendered":"How to Install Discourse on Debian 9"},"content":{"rendered":"

Discourse is a modern, open-source discussion and forum system. Visit the\u00a0official site<\/a>\u00a0for a demo and a breakdown of the current feature set. This tutorial will teach you how to setup Discourse with Docker CE on Debian 9.<\/p>\n

Create a new AKLWEB Host VPS<\/h3>\n

1GB of RAM is the minimum amount, although it is recommended to use at least 2GB of RAM.<\/p>\n

Access your AKLWEB Host VPS as root<\/h3>\n

Connect to your server using SSH via the Terminal on Mac or PuTTY on Windows.<\/p>\n

ssh root@203.1.113.1\r\n<\/code><\/pre>\n

Replace\u00a0203.1.113.1<\/code>\u00a0with your server IP.<\/p>\n

You will be prompted to type\u00a0Yes<\/code>\u00a0or\u00a0No<\/code>\u00a0to add the server’s RSA fingerprint to your list of known hosts. Type\u00a0Yes<\/code>\u00a0and hit\u00a0ENTER<\/kbd>.<\/p>\n

Setup swap (only for 1GB install)<\/h3>\n

Create an empty swap file:<\/p>\n

install -o root -g root -m 0600 \/dev\/null \/swapfile\r\n<\/code><\/pre>\n

Write out a 1GB file named\u00a0swapfile<\/code>:<\/p>\n

dd if=\/dev\/zero of=\/swapfile bs=1k count=1024k\r\n<\/code><\/pre>\n

Tell Linux that this is the swap file:<\/p>\n

mkswap \/swapfile\r\n<\/code><\/pre>\n

Activate it:<\/p>\n

swapon \/swapfile\r\n<\/code><\/pre>\n

Add it to the system table so that it is available after reboot:<\/p>\n

echo \"\/swapfile swap swap auto 0 0\" | tee -a \/etc\/fstab\r\n<\/code><\/pre>\n

Set the\u00a0swappiness<\/code>\u00a0so that it is only used as an emergency buffer:<\/p>\n

sysctl -w vm.swappiness=10\r\n<\/code><\/pre>\n

Installation<\/h3>\n

To install Docker CE, follow all of the steps of this\u00a0guide<\/a><\/strong><\/span>.<\/p>\n

Install Git.<\/p>\n

apt update\r\napt install git -y\r\n<\/code><\/pre>\n

Make a folder called\u00a0discourse<\/code>\u00a0in the\u00a0\/var<\/code>\u00a0directory:<\/p>\n

mkdir \/var\/discourse\r\n<\/code><\/pre>\n

Clone the official Discourse Git repository in\u00a0\/var\/discourse<\/code>:<\/p>\n

git clone https:\/\/github.com\/discourse\/discourse_docker.git \/var\/discourse\r\n<\/code><\/pre>\n

Go into the\u00a0discourse<\/code>\u00a0directory:<\/p>\n

cd \/var\/discourse\r\n<\/code><\/pre>\n

Launch the setup tool:<\/p>\n

.\/discourse-setup\r\n<\/code><\/pre>\n

Answer the following questions when prompted:<\/p>\n

Hostname for your Discourse? [discourse.anydomain.com]: \r\nEmail address for admin account(s)? [admin1@anydomain.com,admin2@anydomain.com]: \r\nSMTP server address? [smtp.anydomain.com]: \r\nSMTP port? [587]: \r\nSMTP user name? [user@anydomain.com]: \r\nSMTP password? [pa$$word]: \r\nLet's Encrypt account email? (ENTER to skip) [admin1@anydomain.com]: \r\n<\/code><\/pre>\n

This will generate an\u00a0app.yml<\/code>\u00a0configuration file on your behalf, and then kick off bootstrap. If you need to change these settings after bootstrapping, you can run\u00a0.\/discourse-setup<\/code>\u00a0again (it will read your old values from the file) or edit\u00a0containers\/app.yml<\/code>\u00a0with Nano and then run\u00a0.\/launcher rebuild app<\/code>\u00a0for your changes to take effect.<\/p>\n

Note:<\/strong>\u00a0You must have your email settings setup properly for your site to work.<\/em><\/p>\n

Congratulations, you now have your own instance of Discourse up and running. To access it, simply type the hostname (http:\/\/discourse.anydomain.com<\/code>) you’ve configured into a web browser, and complete the configuration.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","manualknowledgebasecat":[233,242,245],"manual_kb_tag":[448],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2894"}],"collection":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/comments?post=2894"}],"version-history":[{"count":2,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2894\/revisions"}],"predecessor-version":[{"id":2898,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2894\/revisions\/2898"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2894"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2894"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}