Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Linux Tutorials»How to Install Mattermost with MySQL on Ubuntu 14.04 & Debian 8

    How to Install Mattermost with MySQL on Ubuntu 14.04 & Debian 8

    RahulBy RahulApril 29, 20163 Mins ReadUpdated:May 4, 2016

    Install Mattermost with MySQL on Ubuntu 14.04 & Debian 8. Mattermost is a best alternative of Slack messaging application. It provides you option for all communications at one place with easy to use interface. You can easily share messages, files over desktops and mobile devices.

    Step 1 – Setup MySQL Database Server

    First you need to install MySQL database server on your system. Use following command to install default available version of mysql or read this tutorial.

    $ sudo apt-get install mysql-server
    

    Now create a database for mattermost installation and a mysql user for authentication.

    $ mysql -u root -p
    
    mysql> CREATE DATABASE mattermost;
    mysql> GRANT ALL on mattermost.* to [email protected] IDENTIFIED BY 'password';
    mysql> FLUSH PRIVILEGES;
    

    Step 2 – Download Mattermost Archive

    Now you can use root account or a separate account for your mattermost installation. Use below commands to create separate account.

    $ sudo adduser mmuser
    $ sudo passwd mmuser
    

    Now switch to newly created account and download the mattermost compiled edition using below command. To find latest version visit here. Also extract the downloaded archive file.

    $ sudo su - mmuser
    $ wget https://releases.mattermost.com/2.2.0/mattermost-team-2.2.0-linux-amd64.tar.gz
    $ tar xzf mattermost-team-2.2.0-linux-amd64.tar.gz
    

    Step 3 – Configure Mattermost

    Now edit mattermost configuration file config/config.json and update below details under SqlSettings section. Update DataSource values as per created records in step 1.

      "DriverName": "mysql",
      "DataSource": "mmuser:[email protected](localhost:3306)/mattermost?charset=utf8mb4,utf8",
    

    Now create data directory for mattermost installation. This is the location where mattermost keeps data of teams like uploaded files etc.

    $ mkdir ~/mattermost/data
    

    Step 4 – Start Mattermost Server

    You mattermost setup has been completed. Now use following commands to start mattermost service.

    $ cd ~/mattermost/bin
    $ ./platform
    

    Default mattermost runs on port 8065, which can be changed in config/config.json file. Access your server on port 8065 (or customized port) through web browser.

     http://svr1.tecadmin.net:8065/
    

    Now you may need to create your first team in mattermost. To create team enter email address for team administrator account and click Create Team.

    Install Mattermost with MySQL - 1

    Make sure administrator email is correct and click “Yes, this address is correct”.

    Install Mattermost with MySQL - 2

    Now enter name of you team in box and click Next.

    Install Mattermost with MySQL - -3

    You can customized your team url here. Input required team url and click Next.

    Install Mattermost with MySQL - 4

    Now choose a username for your administrator account and click Next.

    Install Mattermost with MySQL - 5

    Enter a secured password for you administrator account and click Finish.

    Install Mattermost with MySQL - 6

    You team has been successfully created and you will be redirected to you account.

    Install Mattermost with MySQL - 7

    Step 5 – Setup Mattermost with Upstart

    Now create a mattermost startup script for Upstart daemon. Edit /etc/init/mattermost.conf file in text editor and add following content.

    start on runlevel [2345]
    stop on runlevel [016]
    respawn
    chdir /home/mmuser/mattermost
    setuid mmuser
    exec bin/platform
    

    Now you can use following commands to start and stop mattermost .

    $ sudo start mattermost
    $ sudo stop mattermost
    
    Chat Mattermost Mattermost Installation Slack Alternative Slak
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Install Zabbix Agent on CentOS/RHEL 7/6
    Next Article How to Install Zabbix Agent on Windows System

    Related Posts

    (Resolved) userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms

    Updated:May 10, 20221 Min Read

    How to Install Apache ActiveMQ on Ubuntu 22.04

    3 Mins Read

    How To Enable SSH Server on Ubuntu 22.04

    Updated:April 22, 20222 Mins Read

    How To Install LAMP Stack on Ubuntu 22.04 LTS

    Updated:April 20, 20225 Mins Read

    10 Best Linux Video Players in 2022

    Updated:February 18, 20226 Mins Read

    How to Switch Python Version in Ubuntu & Debian

    Updated:April 22, 20223 Mins Read

    2 Comments

    1. Yngvarr on August 30, 2016 1:35 pm

      Update to the newest mysql version
      $sudo apt-get install mysql-server-5.6

      Reply
    2. FMA1394 on July 14, 2016 9:17 am

      This is what I get when I try to start it up after creating the database.
      [2016/07/14 10:12:40 BST] [INFO] Loaded system translations for ‘en’ from ‘/home/mmuser/mattermost/i18n/en.json’
      [2016/07/14 10:12:40 BST] [INFO] Current version is 3.1.0 (3.1.0/Mon Jun 13 19:08:00 UTC 2016/974238231b9cdbd39a825ec8e9299fbb0b51f6b8/none)
      [2016/07/14 10:12:40 BST] [INFO] Enterprise Enabled: false
      [2016/07/14 10:12:40 BST] [INFO] Current working directory is /home/mmuser/mattermost/bin
      [2016/07/14 10:12:40 BST] [INFO] Loaded config file from /home/mmuser/mattermost/config/config.json
      [2016/07/14 10:12:40 BST] [INFO] Server is initializing…
      [2016/07/14 10:12:40 BST] [INFO] Pinging sql master database
      [2016/07/14 10:12:40 BST] [INFO] Pinging sql replica-0 database
      [2016/07/14 10:12:40 BST] [CRIT] Failed to create index Error 1214: The used table type doesn’t support FULLTEXT indexes
      panic: Failed to create index Error 1214: The used table type doesn’t support FULLTEXT indexes

      Any ideas/help would be much appreciated.

      Reply

    Leave A Reply Cancel Reply

    Recent Posts
    • How to Enable / disable Firewall in Windows
    • How to Install JAVA on Ubuntu 22.04
    • Switching Display Manager in Ubuntu – GDM, LightDM & SDDM
    • Changing the Login Screen Background in Ubuntu 22.04 & 20.04
    • How To Install PHP (8.1, 7.4 or 5.6) on Ubuntu 22.04
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.