{"id":39732,"date":"2021-12-27T12:30:00","date_gmt":"2021-12-27T18:30:00","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=39732"},"modified":"2025-12-24T06:59:21","modified_gmt":"2025-12-24T12:59:21","slug":"how-to-install-mattermost-on-debian-11","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mattermost-on-debian-11\/","title":{"rendered":"How to Install Mattermost on Debian 11"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"742\" height=\"372\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/11\/how-to-install-mattermost-on-debian-11.jpg\" alt=\"How to install Mattermost on Debian 11\" class=\"wp-image-39814\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/11\/how-to-install-mattermost-on-debian-11.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/11\/how-to-install-mattermost-on-debian-11-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/11\/how-to-install-mattermost-on-debian-11-150x75.jpg 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Mattermost is a self-hosted and open-source online chat service designed to be used as an internal chat platform for companies and organizations. It is one of the main alternatives to the Slack Chat and Microsoft Teams platforms.<\/p>\n\n\n<div class=\"wp-block-image is-resized\">\n<figure class=\"alignright size-thumbnail\"><img decoding=\"async\" width=\"150\" height=\"113\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/install-mattermost-on-debian-11-150x113.png\" alt=\"install mattermost on debian 11\" class=\"wp-image-39917\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/install-mattermost-on-debian-11-150x113.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/install-mattermost-on-debian-11-300x225.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/install-mattermost-on-debian-11-768x576.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/install-mattermost-on-debian-11.png 800w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><\/figure>\n<\/div>\n\n\n<p>Mattermost provides several app integrations and allows internal file sharing, search, and various other features to help increase staff productivity and work efficiency.<\/p>\n\n\n\n<p>In this tutorial, we will show you how to install Mattermost with an Apache web server on a <a href=\"https:\/\/www.rosehosting.com\/debian-hosting.html\" target=\"_blank\" rel=\"noreferrer noopener\">Debian<\/a> 11 VPS.<\/p>\n\n\n\n<!--more-->\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69f32d6a7c19b\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69f32d6a7c19b\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mattermost-on-debian-11\/#Requirements\" >Requirements<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mattermost-on-debian-11\/#Step-1-Log-in-via-SSH-and-update-the-system\" >Step 1. Log in via SSH and update the system<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mattermost-on-debian-11\/#Step-2-Install-MariaDB\" >Step 2: Install MariaDB<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mattermost-on-debian-11\/#Step-3-Create-a-Mattermost-Database\" >Step 3: Create a Mattermost Database<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mattermost-on-debian-11\/#Step-4-Download-and-Install-Mattermost-Server\" >Step 4: Download and Install Mattermost Server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mattermost-on-debian-11\/#Step-5-Create-a-Systemd-Service-File-for-Mattermost\" >Step 5: Create a Systemd Service File for Mattermost<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mattermost-on-debian-11\/#Step-6-Configure-Apache-as-a-Reverse-Proxy\" >Step 6: Configure Apache as a Reverse Proxy<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mattermost-on-debian-11\/#Step-7-Access-Mattermost\" >Step 7: Access Mattermost<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"requirements\"><span class=\"ez-toc-section\" id=\"Requirements\"><\/span>Requirements<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For the purposes of this tutorial, we will be using a&nbsp;Debian 11 VPS.<\/li>\n\n\n\n<li>Full SSH root access or a user with sudo privileges is also required.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-1-Log-in-via-SSH-and-update-the-system\"><\/span>Step 1. Log in via SSH and update the system<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Log in to your Debian 11 VPS with SSH as a root user:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ssh root@IP_Address -p Port_number<\/pre>\n\n\n\n<p>You can check whether you have the proper Debian version installed on your server with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># lsb_release -a<\/pre>\n\n\n\n<p>You should get this output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Distributor ID: Debian\nDescription: Debian GNU\/Linux 11 (bullseye)\nRelease: 11\nCodename: bullseye\n<\/pre>\n\n\n\n<p>Once you are logged in, run the following command to update all installed packages to the latest available version.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt update &amp;&amp; apt upgrade<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-2-Install-MariaDB\"><\/span>Step 2: Install MariaDB<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Mattermost uses MariaDB\/MySQL as a database backend.&nbsp; The default version available to install is MariaDB 10.5.<\/p>\n\n\n\n<p>We can install it with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt install mariadb-server<\/pre>\n\n\n\n<p>Secure your MariaDB installation by using the <code>mysql_secure_installation<\/code> script. This script will remove anonymous users, disallow root login remotely, and remove the test database.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mysql_secure_installation<\/pre>\n\n\n\n<p>You should answer all the questions as shown below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Enter current password for root (enter for none): Press [Enter] since no password is set by default\nSet root password? [Y\/n]: N (Optional)\nRemove anonymous users? [Y\/n]: Y\nDisallow root login remotely? [Y\/n]: Y\nRemove test database and access to it? [Y\/n]: Y\nReload privilege tables now? [Y\/n]: Y<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-3-Create-a-Mattermost-Database\"><\/span>Step 3: Create a Mattermost Database<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Once MariaDB is secured, log in to MariaDB shell:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mysql -u root -p<\/pre>\n\n\n\n<p>Provide your MariaDB root password when prompted (if you set one), then create a database and user for Mattermost:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">MariaDB [(none)]&gt; CREATE DATABASE mattermost;\nMariaDB [(none)]&gt; CREATE USER 'mmuser'@'%';\nMariaDB [(none)]&gt; SET PASSWORD FOR 'mmuser'@'%' = PASSWORD('Str0ngPa$$worD');<\/pre>\n\n\n\n<p>Make sure to use a unique password for the database user.<\/p>\n\n\n\n<p>Next, grant all the privileges to Mattermost database with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">MariaDB [(none)]&gt; GRANT ALL ON mattermost.* TO 'mmuser'@'%' IDENTIFIED BY 'Str0ngPa$$worD' WITH GRANT OPTION;<\/pre>\n\n\n\n<p>Next, flush the privileges and exit from the MariaDB shell with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">MariaDB [(none)]&gt; FLUSH PRIVILEGES;\nMariaDB [(none)]&gt; EXIT;<\/pre>\n\n\n\n<p>Once you have done it, you can proceed to the next step.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-4-Download-and-Install-Mattermost-Server\"><\/span>Step 4: Download and Install Mattermost Server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>First, create a new user and group that will run our Mattermost server.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo useradd --system --user-group mattermost<\/pre>\n\n\n\n<p>At the time of writing this article, the latest version of Mattermost is 6.0.2. You can download it from the Mattermost download page using the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">wget wget https:\/\/releases.mattermost.com\/6.0.2\/mattermost-6.0.2-linux-amd64.tar.gz<\/pre>\n\n\n\n<p>Now you have successfully downloaded the Mattermost file and now you will extract it to the&nbsp; <strong><code>\/opt<\/code><\/strong> directory using the tar command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">tar xvzf mattermost-6.0.2-linux-amd64.tar.gz -C \/opt\/<\/pre>\n\n\n\n<p>Next, we need to make the directory where we\u2019ll store the files:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo mkdir \/opt\/mattermost\/data<\/pre>\n\n\n\n<p>Next, change the ownership and permissions of the Mattermost:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">chown -R mattermost:mattermost \/opt\/mattermost\nchmod -R g+w \/opt\/mattermost<\/pre>\n\n\n\n<p>Next, edit the Mattermost configuration file and define your site URL and database settings:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">nano \/opt\/mattermost\/config\/config.json<\/pre>\n\n\n\n<p>Change the following lines with your site domain name and database settings:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\"SiteURL\": \"<code>http:\/\/mattermost.example.com<\/code>\", \n\"DriverName\": \"MySQL\", \n\"DataSource\": \"mmuser:Str0ngPa$$worD@tcp(localhost:3306)\/mattermost?charset=utf8mb4,utf8&amp;readTimeout=30s&amp;writeTimeout=30s\",<\/pre>\n\n\n\n<p>Save and close the file when you are done.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-5-create-a-systemd-service-file-for-mattermost\"><span class=\"ez-toc-section\" id=\"Step-5-Create-a-Systemd-Service-File-for-Mattermost\"><\/span>Step 5: Create a Systemd Service File for Mattermost<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Next, create a systemd service file to start and stop the Mattermost service.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">nano \/lib\/systemd\/system\/mattermost.service<\/pre>\n\n\n\n<p>Add the following lines:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[Unit]\nDescription=Mattermost\nAfter=network.target\nAfter=mysql.service\nRequires=mysql.service\n\n[Service]\nType=notify\nUser=mattermost\nGroup=mattermost\nExecStart=\/opt\/mattermost\/bin\/mattermost\nTimeoutStartSec=3600\nRestart=always\nRestartSec=10\nWorkingDirectory=\/opt\/mattermost\nLimitNOFILE=49152\n\n[Install]\nWantedBy=mariadb.service\n<\/pre>\n\n\n\n<p>Save and close the file then reload the systemd daemon to apply the configuration changes:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">systemctl daemon-reload<\/pre>\n\n\n\n<p>Next, start the Mattermost service and enable it to start at system reboot:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">systemctl start mattermost\nsystemctl enable mattermost<\/pre>\n\n\n\n<p>To check and verify the status of your Mattermost service, run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">systemctl status mattermost<\/pre>\n\n\n\n<p><strong>Output :<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\u25cf mattermost.service - Mattermost\nLoaded: loaded (\/etc\/systemd\/system\/mattermost.service; disabled; vendor preset: enabled)\nActive: active (running)\nMain PID: 831 (mattermost)\nTasks: 46 (limit: 2303)\nMemory: 331.0M\nCPU: 36.628s\nCGroup: \/system.slice\/mattermost.service\n\u251c\u2500831 \/opt\/mattermost\/bin\/mattermost\n\u251c\u2500861 plugins\/com.mattermost.plugin-channel-export\/server\/dist\/plugin-linux-amd64\n\u251c\u2500868 plugins\/com.mattermost.nps\/server\/dist\/plugin-linux-amd64\n\u251c\u2500875 plugins\/playbooks\/server\/dist\/plugin-linux-amd64\n\u2514\u2500882 plugins\/focalboard\/server\/dist\/plugin-linux-amd64<\/pre>\n\n\n\n<p>By default, Mattermost runs on port 8065. You can check it using the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ss -tunlp | grep 8065<\/pre>\n\n\n\n<p>Output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">tcp LISTEN 0 4096 *:8065 *:* users:((\"mattermost\",pid=1049,fd=28))<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-6-configure-apache-as-a-reverse-proxy\"><span class=\"ez-toc-section\" id=\"Step-6-Configure-Apache-as-a-Reverse-Proxy\"><\/span>Step 6: Configure Apache as a Reverse Proxy<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Next, you will need to configure the Apache webserver as a reverse proxy for Mattermost. First, we need to install the Apache server with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt install apache2<\/pre>\n\n\n\n<p>Enable the <code>mod_rewrite<\/code> , <code>mod_proxy<\/code>, <code>mod_proxy_http<\/code>, and <code>mod_proxy_wstunnel<\/code> modules in Apache using the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">a2enmod rewrite\na2enmod proxy\na2enmod proxy_http\na2enmod proxy_wstunnel<\/pre>\n\n\n\n<p>Once installed, create an Apache virtual host configuration file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">nano \/etc\/apache2\/sites-available\/mattermost.conf<\/pre>\n\n\n\n<p>Add the following lines:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;VirtualHost *:80&gt;\n\nServerAdmin webmaster@example.com\nServerName mattermost.example.com\n\nProxyPreserveHost On\n\nRewriteEngine On\nRewriteCond %{REQUEST_URI} \/api\/v[0-9]+\/(users\/)?websocket [NC]\nRewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]\nRewriteCond %{HTTP:CONNECTION} \\bUpgrade\\b [NC]\nRewriteRule .* ws:\/\/127.0.0.1:8065%{REQUEST_URI} [P,QSA,L]\n\n&lt;Location \/&gt;\nRequire all granted\nProxyPass http:\/\/127.0.0.1:8065\/\nProxyPassReverse http:\/\/127.0.0.1:8065\/\nProxyPassReverseCookieDomain 127.0.0.1 mattermost.example.com\n&lt;\/Location&gt;\n\n&lt;\/VirtualHost&gt;<\/pre>\n\n\n\n<p>Save and close the file then activate the Apache virtual host file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ln -s \/etc\/apache2\/sites-available\/mattermost.conf \/etc\/apache2\/sites-enabled\/mattermost.conf<\/pre>\n\n\n\n<p>Finally, restart the Apache service to apply the changes:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">systemctl restart apache2<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-7-access-mattermost\"><span class=\"ez-toc-section\" id=\"Step-7-Access-Mattermost\"><\/span>Step 7: Access Mattermost<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>You can now connect to your Mattermost server at <code>http:\/\/mattermost.example.com<\/code> and follow the prompts to configure your first Mattermost user, which will be granted administrator privileges, and do some initial configuration and setup.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1024\" height=\"610\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/installing-mattermost-on-debian-11.jpg\" alt=\"installing mattermost on debian 11\" class=\"wp-image-39918\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/installing-mattermost-on-debian-11.jpg 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/installing-mattermost-on-debian-11-300x179.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/installing-mattermost-on-debian-11-150x89.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/12\/installing-mattermost-on-debian-11-768x458.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>That\u2019s it. Mattermost has been successfully installed in your Debian 11 server.<\/p>\n\n\n\n<p>Of course, you don\u2019t need to install Mattermost on Debian 11 yourself if you use one of our fully managed <strong><a href=\"https:\/\/www.rosehosting.com\/linux-vps-hosting\/\" target=\"_blank\" rel=\"noreferrer noopener\">VPS Hosting<\/a><\/strong> services, in which case you can simply ask our expert Linux admins to install your <a href=\"https:\/\/www.rosehosting.com\/mattermost-server\/\" target=\"_blank\" rel=\"noreferrer noopener\">Mattermost server<\/a> for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n\n\n\n<p>P.S. If you liked this post on how to install Mattermost on Debian 11 please share it with your friends on the social networks by using the share shortcuts below, or simply leave a comment in the comments section. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mattermost is a self-hosted and open-source online chat service designed to be used as an internal chat platform for companies &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install Mattermost on Debian 11\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mattermost-on-debian-11\/#more-39732\" aria-label=\"Read more about How to Install Mattermost on Debian 11\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":39814,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1700,13],"tags":[1962,172,942],"class_list":["post-39732","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","category-tutorials","tag-debian-11","tag-install","tag-mattermost","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.5 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install Mattermost on Debian 11 | RoseHosting<\/title>\n<meta name=\"description\" content=\"In this tutorial, we will show you how to install Mattermost on a Debian 11 VPS, using an Apache web server.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mattermost-on-debian-11\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Mattermost on Debian 11 | RoseHosting\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, we will show you how to install Mattermost on a Debian 11 VPS, using an Apache web server.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-mattermost-on-debian-11\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-27T18:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-24T12:59:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/11\/how-to-install-mattermost-on-debian-11.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to Install Mattermost on Debian 11 | RoseHosting\" \/>\n<meta name=\"twitter:description\" content=\"In this tutorial, we will show you how to install Mattermost on a Debian 11 VPS, using an Apache web server.\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mattermost-on-debian-11\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mattermost-on-debian-11\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install Mattermost on Debian 11\",\"datePublished\":\"2021-12-27T18:30:00+00:00\",\"dateModified\":\"2025-12-24T12:59:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mattermost-on-debian-11\\\/\"},\"wordCount\":743,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mattermost-on-debian-11\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/11\\\/how-to-install-mattermost-on-debian-11.jpg\",\"keywords\":[\"debian 11\",\"install\",\"Mattermost\"],\"articleSection\":[\"Debian\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mattermost-on-debian-11\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mattermost-on-debian-11\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mattermost-on-debian-11\\\/\",\"name\":\"How to Install Mattermost on Debian 11 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mattermost-on-debian-11\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mattermost-on-debian-11\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/11\\\/how-to-install-mattermost-on-debian-11.jpg\",\"datePublished\":\"2021-12-27T18:30:00+00:00\",\"dateModified\":\"2025-12-24T12:59:21+00:00\",\"description\":\"In this tutorial, we will show you how to install Mattermost on a Debian 11 VPS, using an Apache web server.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mattermost-on-debian-11\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mattermost-on-debian-11\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mattermost-on-debian-11\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/11\\\/how-to-install-mattermost-on-debian-11.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/11\\\/how-to-install-mattermost-on-debian-11.jpg\",\"width\":742,\"height\":372,\"caption\":\"How to install Mattermost on Debian 11\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-mattermost-on-debian-11\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Mattermost on Debian 11\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Install Mattermost on Debian 11 | RoseHosting","description":"In this tutorial, we will show you how to install Mattermost on a Debian 11 VPS, using an Apache web server.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mattermost-on-debian-11\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Mattermost on Debian 11 | RoseHosting","og_description":"In this tutorial, we will show you how to install Mattermost on a Debian 11 VPS, using an Apache web server.","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mattermost-on-debian-11\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2021-12-27T18:30:00+00:00","article_modified_time":"2025-12-24T12:59:21+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/11\/how-to-install-mattermost-on-debian-11.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_title":"How to Install Mattermost on Debian 11 | RoseHosting","twitter_description":"In this tutorial, we will show you how to install Mattermost on a Debian 11 VPS, using an Apache web server.","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mattermost-on-debian-11\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mattermost-on-debian-11\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install Mattermost on Debian 11","datePublished":"2021-12-27T18:30:00+00:00","dateModified":"2025-12-24T12:59:21+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mattermost-on-debian-11\/"},"wordCount":743,"commentCount":2,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mattermost-on-debian-11\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/11\/how-to-install-mattermost-on-debian-11.jpg","keywords":["debian 11","install","Mattermost"],"articleSection":["Debian","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-mattermost-on-debian-11\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mattermost-on-debian-11\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mattermost-on-debian-11\/","name":"How to Install Mattermost on Debian 11 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mattermost-on-debian-11\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mattermost-on-debian-11\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/11\/how-to-install-mattermost-on-debian-11.jpg","datePublished":"2021-12-27T18:30:00+00:00","dateModified":"2025-12-24T12:59:21+00:00","description":"In this tutorial, we will show you how to install Mattermost on a Debian 11 VPS, using an Apache web server.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mattermost-on-debian-11\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-mattermost-on-debian-11\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mattermost-on-debian-11\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/11\/how-to-install-mattermost-on-debian-11.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/11\/how-to-install-mattermost-on-debian-11.jpg","width":742,"height":372,"caption":"How to install Mattermost on Debian 11"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-mattermost-on-debian-11\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Mattermost on Debian 11"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/39732","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=39732"}],"version-history":[{"count":11,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/39732\/revisions"}],"predecessor-version":[{"id":51458,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/39732\/revisions\/51458"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/39814"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=39732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=39732"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=39732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}