Logo       PBase-Foundation

Mattermost

Here is how to install the Mattermost messaging platform. You may choose either PostgreSQL, the default MySQL, or the MySQL-Community 8.0 database backends. After running the first two preconfig packages be sure to modify the configuration files in the /usr/local/pbase-data/admin-only/module-config.d/ directory. Specifically, the pbase_lets_encrypt.json must be changed to hold your site administrator's email address.

Postgres on CentOS 8 / EL8

After running pbase-preconfig-postgres-mattermost you may customize your installation.

yum -y install https://pbase-foundation.com/pbase-preconfig.rpm
yum -y install pbase-apache
yum -y install pbase-preconfig-postgres-mattermost
yum -y install pbase-postgres
yum -y install pbase-mattermost
yum -y install pbase-lets-encrypt

MySQL on CentOS 8 / EL8

After running pbase-preconfig-mysql-mattermost you may customize your installation.

yum -y install https://pbase-foundation.com/pbase-preconfig.rpm
yum -y install pbase-apache
yum -y install pbase-preconfig-mysql-mattermost
yum -y install pbase-mysql
yum -y install pbase-mattermost
yum -y install pbase-lets-encrypt

MySQL 8.0 on CentOS 7 / EL7

(for CentOS7/EL7 - must use MySQL 8.0 Community release) After running pbase-preconfig-mysql-mattermost you may customize your installation.

yum -y install https://pbase-foundation.com/pbase-preconfig.rpm
yum -y install pbase-apache
yum -y install pbase-preconfig-mysql80community
yum -y install pbase-preconfig-mysql-mattermost
yum -y install pbase-mysql80community
yum -y install pbase-mattermost
yum -y install pbase-lets-encrypt

Extras

You should secure your server with pbase-firewall-enable, sync your clocks with pbase-ntp-timesync, and lock down SSH access with the pbase-ssh-fail2ban package.

yum -y install pbase-ssh-fail2ban
yum -y install pbase-ntp-timesync
yum -y install pbase-firewall-enable

Configuration Options

(for CentOS7/EL7 - refer to MySQL 8.0 Community preconfig)

{
"pbase_mattermost" : {
"port": 8065,
"addApacheProxy": true,
"useSubDomain": true,
"subDomainName": "mattermost"
}
}