In it, search for “DriverName” and “DataSource” lines and change as follows: "DriverName": "mysql" Set up the database driver through the /opt/mattermost/config/config.json file. Sudo chown -R mattermost:mattermost /opt/mattermost Set up a system user and group called mattermost that will run this service, and set the ownership and permissions: sudo useradd -system -user-group mattermost Next, create a storage directory for file: sudo mkdir /opt/mattermost/data Unpack the Mattermost archive to the document root directory on your server: tar -xvzf mattermost*.gz Installing Mattermost Server on Ubuntu 18.04 LTS.įirst thing to do is to go to Mattermost’s download page and download the latest stable version of Mattermost, At the moment of writing this article it is version 5.1.0: wget Also install all required PHP modules: apt-get install php7.1-cli php7.1-gd php7.1-opcache php7.1-mysql php7.1-json php7.1-mcrypt php7.1-xml php7.1-curl If you do not have LAMP installed, you can follow our guide here. Install LAMP (Linux, Apache, MariaDB and PHP) server.Ī Ubuntu 18.04 LAMP server is required. First make sure that all your system packages are up-to-date sudo apt-get update
I will show you through the step by step installation Mattermost on a Ubuntu 18.04 LTS (Bionic Beaver) server. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges.
This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. A workplace messaging system for web, PCs and phones, released under the MIT license. Mattermost is an open source, private cloud Slack-alternative.