Simple Single VPS install (Ubuntu 14)

I’ve been tinkering around with using Mattermost on a single VPS. The following has worked for me so far, I’d like to see if others might want to give it a try and see if it works. FYI- I’ve installed using these settings on VPSs from Cosmotech, OVH and EthernetServers which are all pretty inexpensive.

sudo apt-get install software-properties-common nano wget

sudo install -d -m 755 -o mattermost -g mmuser /opt/mattermost

sudo apt-get install postgresql postgresql-contrib

su postgres
psql
CREATE DATABASE mattermostdb;
CREATE USER mattermost WITH PASSWORD ‘put_password_here’;
GRANT ALL PRIVILEGES ON DATABASE mattermostdb to mattermost;
\q

exit

mkdir -p /opt/mattermost/mm
cd /opt/mattermost/mm

wget -q -O - https://github.com/mattermost/platform/releases/download/v2.0.0/mattermost.tar.gz | tar -xzf - --strip 1 -C /opt/mattermost/mm

mkdir -p /opt/mattermost/mm/data

sudo chown mattermost: -R /opt/mattermost

nano /opt/mattermost/mm/config/config.json
–scroll down to SqlSettings, and make these changes to DriverName and DataSource:

“SqlSettings”: {
“DriverName”: “postgres”,
“DataSource”: “postgres://mattermost:put_password_hered@127.0.0.1:5432/mattermostdb”,

sudo -u mattermost bin/platform &

From here you would visit your installation at http://IPADDRESS:8065