Quantcast
Channel: Mattermost Discussion Forums - Latest posts
Viewing all articles
Browse latest Browse all 25778

Problem following instructions installing Mattermost 2.2.0 in Ubuntu 14.04 + connecting 3 ubuntu machines

$
0
0

Hello Christopher,

I am in the middle of rewriting of all steps that I took in my machine.
Maybe, just maybe, if possible and helpful this guide may be used to help Mattermost community.


End Product:

  • Using Mattermost for teachers to teach
  • Approximately 150 user per cohort for 10 cohorts = 1500 user

Please advise for better hardware setup, if necessary.


Install Ubuntu Server (x64) 14.04 LTS Machines in Digital Ocean

  • Go To Digital Ocean Hosting Page
  • Select Ubuntu 14.04x
  • Pick 2GB ram option
  • Choose server nearest to my users (Singapore)
  • Use SSH for increased security
  • Rename droplets to 3 names (Mattermost-DB, Mattermost-Server, and Mattermost-Nginx)

This step completed & succeeded

Digital Ocean Specific Step "Preparing the Ubuntu Machine":

Get Inside Terminal and type:

ssh root@10.10.10.1

Setting up locale (this is known problem in Digital Ocean)

  • export LANGUAGE=en_US.UTF-8
  • export LC_ALL=en_US.UTF-8
  • locale -a

Update system with latest security patches

  • sudo apt-get update
  • sudo apt-get upgrade

This step completed & Succeeded


Installing Mattermost DB Server

Get inside my Terminal:

ssh root@10.10.10.1

Install Postgres on Ubuntu Machine

  • sudo apt-get install postgresql postgresql-contrib

Login to psql shell and create a new mmuser user:

  • sudo -i -u postgres
  • psql
  • CREATE DATABASE mmdb;
  • CREATE USER mmuser WITH PASSWORD 'mmuser_password';
  • GRANT ALL PRIVILEGES ON DATABASE mmdb to mmuser;
  • \q
  • exit

This part will be edited again
Reminder: if you change mmuser and mmuser password, please remember to be consistet across the changes.

Allow Postgres to listen on all assigned IP Address

  • sudo vi /etc/postgresql/9.3/main/postgresql.conf
  • Uncomment 'listen_addresses' and change 'localhost to '*'
    remember in this part if you don't understand how to use vi, you can use i to insert and esc then typing :wq! to save and quit.
    About this vi thing, I just learned about it and took about 6 hours to realize it.

Alter pg_hba.conf to allow connectionto Mattermost Server

  • sudo vi /etc/postgresql/9.3/main/pg_hba.conf
  • Add the following line to the ‘IPv4 local connections’
  • host all all 10.10.10.2/32 md5

DO NOT REMOVE the existing 127.0.0.0/32/md5

Reload Postgres Database

  • sudo /etc/init.d/postgresql reload

Attempt to connect

  • psql --host=10.10.10.1 --dbname=mattermost --username=mmuser --password
  • Password prompt will come out and enter mmuser_password as your password

To Close The setup

\q



Viewing all articles
Browse latest Browse all 25778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>