{"id":44875,"date":"2023-03-01T12:30:23","date_gmt":"2023-03-01T18:30:23","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=44875"},"modified":"2025-12-24T08:24:34","modified_gmt":"2025-12-24T14:24:34","slug":"how-to-install-matomo-on-debian-11","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-debian-11\/","title":{"rendered":"How to Install Matomo on Debian 11"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"size-full wp-image-44988 alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/02\/how-to-install-matomo-on-debian-11.webp\" alt=\"how to install matomo on debian 11\" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/02\/how-to-install-matomo-on-debian-11.webp 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/02\/how-to-install-matomo-on-debian-11-300x150.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/02\/how-to-install-matomo-on-debian-11-150x75.webp 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>In this blog post, we will show you how to install Matomo on Debian 11 OS.<\/p>\n<p>Matomo is a free and open-source <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-web-analytics-on-ubuntu-20-04\/\">web analytics application<\/a> used for live tracking of website visits. Matomo is written in PHP, and it uses MySQL for storing analytics data. It was known previously as Piwik and, in 2018, was officially renamed Matomo. In this tutorial, we will install Matomo with the <a href=\"https:\/\/www.rosehosting.com\/lamp-hosting\/\">LAMP stack<\/a>.<\/p>\n<p>Installing Matomo on Debian 11 with LAMP stack is very easy, and it may take up to 30 minutes. Let&#8217;s get things done!<\/p>\n<p><!--more--><\/p>\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-69eb6561485d0\" 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-69eb6561485d0\"  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-matomo-on-debian-11\/#Prerequisites\" >Prerequisites<\/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-matomo-on-debian-11\/#Step-1-Update-the-System\" >Step 1. 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-matomo-on-debian-11\/#Step-2-Install-LAMP-Stack\" >Step 2. Install LAMP Stack<\/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-matomo-on-debian-11\/#Step-3-Create-a-Matomo-database-and-user\" >Step 3. Create a Matomo database and user<\/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-matomo-on-debian-11\/#Step-4-Install-Matomo\" >Step 4. Install Matomo<\/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-matomo-on-debian-11\/#Step-6-Finish-Matomo-Installation\" >Step 6. Finish Matomo Installation<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>A <a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting\/\" target=\"_blank\" rel=\"noopener\">server with Debian 11<\/a> as OS<\/li>\n<li>User privileges: root or non-root user with sudo privileges<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Step-1-Update-the-System\"><\/span>Step 1. Update the System<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Update the system packages to the latest versions available. Execute the following command:<\/p>\n<pre>sudo apt-get update -y &amp;&amp; sudo apt-get upgrade -y<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-2-Install-LAMP-Stack\"><\/span>Step 2. Install LAMP Stack<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We will start with installing the <b>Apache Web server<\/b>. To do that, execute the following command:<\/p>\n<pre>sudo apt-get install apache2 -y<\/pre>\n<p>Once installed, start and enable the service.<\/p>\n<pre>sudo systemctl enable apache2 &amp;&amp; sudo systemctl start apache2<\/pre>\n<p>Check if the service is up and running:<\/p>\n<pre>sudo systemctl status apache2<\/pre>\n<p>You should receive the following output:<\/p>\n<pre>    root@host:~# sudo systemctl status apache2\n\u25cf apache2.service - The Apache HTTP Server\n     Loaded: loaded (\/lib\/systemd\/system\/apache2.service; enabled; vendor preset: enabled)\n     Active: active (running) since Thu 2023-02-02 10:56:26 CST; 1 day 4h ago\n       Docs: https:\/\/httpd.apache.org\/docs\/2.4\/\n   Main PID: 442 (apache2)\n      Tasks: 9 (limit: 4675)\n     Memory: 27.8M\n        CPU: 6.175s\n     CGroup: \/system.slice\/apache2.service\n<\/pre>\n<p>Next, we will install the <b>MariaDB<\/b> database service. To install it execute the following command:<\/p>\n<pre>sudo apt-get install mariadb-server -y<\/pre>\n<p>Start and enable the mariadb.service with the following commands:<\/p>\n<pre>sudo systemctl start mariadb &amp;&amp; sudo systemctl enable mariadb<\/pre>\n<p>Check the status of the mariadb.service<\/p>\n<pre>sudo systemctl status mariadb<\/pre>\n<p>You should receive the following output:<\/p>\n<pre>root@host:~# sudo systemctl status mariadb\n\u25cf mariadb.service - MariaDB 10.5.18 database server\n     Loaded: loaded (\/lib\/systemd\/system\/mariadb.service; enabled; vendor preset: enabled)\n     Active: active (running) since Fri 2023-02-03 15:55:08 CST; 12s ago\n       Docs: man:mariadbd(8)\n             https:\/\/mariadb.com\/kb\/en\/library\/systemd\/\n   Main PID: 5350 (mariadbd)\n     Status: \"Taking your SQL requests now...\"\n      Tasks: 20 (limit: 4675)\n     Memory: 70.3M\n        CPU: 724ms\n     CGroup: \/system.slice\/mariadb.service\n             \u2514\u25005350 \/usr\/sbin\/mariadbd\n<\/pre>\n<p>The last of the LAMP stack is the <b>PHP<\/b>, along with its extensions. First, add the GPG key and the repo with the following commands:<\/p>\n<pre>sudo apt -y install lsb-release apt-transport-https ca-certificates \n\nwget -O \/etc\/apt\/trusted.gpg.d\/php.gpg https:\/\/packages.sury.org\/php\/apt.gpg\n\necho \"deb https:\/\/packages.sury.org\/php\/ $(lsb_release -sc) main\" | tee \/etc\/apt\/sources.list.d\/php.list\n\nsudo apt-get update -y\n<\/pre>\n<p>Once the PHP key and repo are added, you can install the PHP with extensions using this long command:<\/p>\n<pre>sudo apt-get install php8.1 php8.1-common php8.1-curl libapache2-mod-php php8.1-imap php8.1-redis php8.1-cli php8.1-snmp php8.1-xml php8.1-zip php8.1-mbstring php8.1-mysql php-mbstring -y<\/pre>\n<p>After successful installation, you can check the PHP version with the following command:<\/p>\n<pre>php -v<\/pre>\n<p>You should get the following output:<\/p>\n<pre>root@host:~# php -v\nCreated directory: \/var\/lib\/snmp\/cert_indexes\nPHP 8.2.2 (cli) (built: Feb  3 2023 15:21:45) (NTS)\nCopyright (c) The PHP Group\nZend Engine v4.2.2, Copyright (c) Zend Technologies\n    with Zend OPcache v8.2.2, Copyright (c), by Zend Technologies\n<\/pre>\n<p>We are ready to proceed with database creation and Matomo installation when the LAMP stack is installed.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-3-Create-a-Matomo-database-and-user\"><\/span>Step 3. Create a Matomo database and user<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To create a Matomo database, the Matomo user logs in to the MySQL command line with the <b>mysql<\/b> command and executes the following lines of code one by one:<\/p>\n<pre> CREATE USER 'matomo'@'localhost' IDENTIFIED BY 'YourStrongPasswordHere';\n CREATE DATABASE matomo;\n GRANT ALL PRIVILEGES ON matomo.* TO 'matomo'@'localhost';\n FLUSH PRIVILEGES;\n EXIT;\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-4-Install-Matomo\"><\/span>Step 4. Install Matomo<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Go into the Apache document root directory and download the Matomo installation:<\/p>\n<pre>cd \/var\/www\/html\/\n\nwget https:\/\/builds.matomo.org\/matomo-latest.zip\n<\/pre>\n<p>Extract the file and remove the zip folder:<\/p>\n<pre>unzip matomo-latest.zip\n\nrm matomo-latest.zip\n<\/pre>\n<p>Set the right permissions to <b>Matomo<\/b> directory and files:<\/p>\n<pre>cd \/var\/www\/html\n\nsudo chown -R www-data:www-data matomo\/\n\nfind . -type d -exec chmod 755 {} \\;\n\nfind . -type f -exec chmod 644 {} \\;\n\n<\/pre>\n<p>h2&gt;Step 5. Create <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-set-up-apache-virtual-hosts-on-debian-9\/\">Apache Virtual Host<\/a> File<\/p>\n<p>Go into the Apache directory and create a configuration file for Matomo.<\/p>\n<pre>cd \/etc\/apache2\/sites-available\/\n\ntouch matomo.conf\n<\/pre>\n<p>Open the file, paste the following lines of code, save the file, and close it.<\/p>\n<pre>&lt;VirtualHost *:80&gt;\nServerName <b>yourdomain.com<\/b>\nDocumentRoot \/var\/www\/html\/matomo\n\n&lt;Directory \/var\/www\/html\/matomo&gt;\nAllowOverride All\n&lt;\/Directory&gt;\n\nErrorLog ${APACHE_LOG_DIR}\/error.log\nCustomLog ${APACHE_LOG_DIR}\/access.log combined\n\n&lt;\/VirtualHost&gt;\n\n<\/pre>\n<p>Enable the Apache configuration for Matomo and rewrite the module.<\/p>\n<pre>a2dissite 000-default.conf\n\nsudo a2enmod rewrite\n\nsudo a2ensite matomo.conf\n<\/pre>\n<p>Check the syntax:<\/p>\n<pre>apachectl -t<\/pre>\n<p>You should receive the following output:<\/p>\n<pre>root@vps:~# apachectl -t\nSyntax OK\n<\/pre>\n<p>If the syntax is OK, restart the Apache service.<\/p>\n<pre>systemctl restart apache2\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-6-Finish-Matomo-Installation\"><\/span>Step 6. Finish Matomo Installation<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Access the URL at <b>http:\/\/yourdomain.com<\/b>. You should see the following screen:<\/p>\n<p><img decoding=\"async\" class=\"wp-image-44975 size-full aligncenter\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/02\/matomo-finished-installation.webp\" alt=\"matomo finished installation\" width=\"1210\" height=\"546\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/02\/matomo-finished-installation.webp 1210w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/02\/matomo-finished-installation-300x135.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/02\/matomo-finished-installation-1024x462.webp 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/02\/matomo-finished-installation-150x68.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/02\/matomo-finished-installation-768x347.webp 768w\" sizes=\"(max-width: 1210px) 100vw, 1210px\" \/><\/p>\n<p>Click on the<b> Next<\/b> button. On the next window, if everything is OK, the system check will pass. Click on the <b>Next<\/b> button as well:<\/p>\n<p><img decoding=\"async\" class=\"wp-image-44990 size-full aligncenter\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-system-check.webp\" alt=\"matomo system check\" width=\"970\" height=\"599\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-system-check.webp 970w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-system-check-300x185.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-system-check-150x93.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-system-check-768x474.webp 768w\" sizes=\"(max-width: 970px) 100vw, 970px\" \/><\/p>\n<p>Fill in the Database name, database user, and password you set in step 3.<\/p>\n<p><img decoding=\"async\" class=\"wp-image-44991 size-full aligncenter\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-setup-database.webp\" alt=\"matomo setup database\" width=\"1059\" height=\"591\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-setup-database.webp 1059w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-setup-database-300x167.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-setup-database-1024x571.webp 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-setup-database-150x84.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-setup-database-768x429.webp 768w\" sizes=\"(max-width: 1059px) 100vw, 1059px\" \/><\/p>\n<p>The tables will be created.<\/p>\n<p><img decoding=\"async\" class=\"wp-image-44993 size-full aligncenter\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-creating-tables.webp\" alt=\"matomo creating tables\" width=\"1207\" height=\"439\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-creating-tables.webp 1207w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-creating-tables-300x109.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-creating-tables-1024x372.webp 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-creating-tables-150x55.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-creating-tables-768x279.webp 768w\" sizes=\"(max-width: 1207px) 100vw, 1207px\" \/><\/p>\n<p>In the next window, create the administrator user and set a strong password:<\/p>\n<p><img decoding=\"async\" class=\"wp-image-44994 size-full aligncenter\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-create-superuser.webp\" alt=\"matomo create superuser\" width=\"1034\" height=\"571\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-create-superuser.webp 1034w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-create-superuser-300x166.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-create-superuser-1024x565.webp 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-create-superuser-150x83.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-create-superuser-768x424.webp 768w\" sizes=\"(max-width: 1034px) 100vw, 1034px\" \/><\/p>\n<p>Next, set the website name and your URL.<\/p>\n<p><img decoding=\"async\" class=\"wp-image-44995 size-full aligncenter\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-set-website-name-and-url.webp\" alt=\"matomo set website name and url\" width=\"1161\" height=\"586\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-set-website-name-and-url.webp 1161w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-set-website-name-and-url-300x151.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-set-website-name-and-url-1024x517.webp 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-set-website-name-and-url-150x76.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-set-website-name-and-url-768x388.webp 768w\" sizes=\"(max-width: 1161px) 100vw, 1161px\" \/><\/p>\n<p>On the next window, Matomo will generate the tracking code that you will need to insert into the code of your website.<\/p>\n<p><img decoding=\"async\" class=\"wp-image-44996 size-full aligncenter\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-javascript-tracking-code.webp\" alt=\"matomo javascript tracking code\" width=\"1169\" height=\"528\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-javascript-tracking-code.webp 1169w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-javascript-tracking-code-300x136.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-javascript-tracking-code-1024x463.webp 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-javascript-tracking-code-150x68.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/03\/matomo-javascript-tracking-code-768x347.webp 768w\" sizes=\"(max-width: 1169px) 100vw, 1169px\" \/><\/p>\n<p>That&#8217;s it; you successfully installed Matomo. Click on the <b>Continue to Matomo<\/b> button, and you should see the login form.<\/p>\n<p><img decoding=\"async\" class=\"wp-image-44982 size-full aligncenter\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/02\/matomo-login-form.webp\" alt=\"matomo login form\" width=\"552\" height=\"576\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/02\/matomo-login-form.webp 552w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/02\/matomo-login-form-288x300.webp 288w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/02\/matomo-login-form-144x150.webp 144w\" sizes=\"(max-width: 552px) 100vw, 552px\" \/><\/p>\n<p>If you encounter any difficulties with the installation of your <a href=\"https:\/\/www.rosehosting.com\/matomo-analytics-hosting\/\" target=\"_blank\" rel=\"noopener\">Matomo analytics server<\/a>, you can contact our system admins, who can help with their expertise. All you need to do is contact our support via ticket or live chat. We are available 24\/7.<\/p>\n<p>PS. If you liked this post on how to install <a href=\"https:\/\/www.rosehosting.com\/debian-hosting\/\">Matomo on Debian 11<\/a>, please share it with your friends on social networks or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog post, we will show you how to install Matomo on Debian 11 OS. Matomo is a free &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install Matomo on Debian 11\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-debian-11\/#more-44875\" aria-label=\"Read more about How to Install Matomo on Debian 11\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":44988,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1236,13],"tags":[48,2047,1716],"class_list":["post-44875","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-guides","category-tutorials","tag-debian","tag-lamp-stack","tag-matomo","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.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install Matomo on Debian 11 | RoseHosting<\/title>\n<meta name=\"description\" content=\"Check out our in-depth tutorial, and find out how to install Matomo on Debian 11. Let&#039;s get started!\" \/>\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-matomo-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 Matomo on Debian 11\" \/>\n<meta property=\"og:description\" content=\"Check out our in-depth tutorial, and find out how to install Matomo on Debian 11. Let&#039;s get started!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-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=\"2023-03-01T18:30:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-24T14:24:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/02\/how-to-install-matomo-on-debian-11.webp\" \/>\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\/webp\" \/>\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 Matomo on Debian 11\" \/>\n<meta name=\"twitter:description\" content=\"Check out our in-depth tutorial, and find out how to install Matomo on Debian 11. Let&#039;s get started!\" \/>\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-matomo-on-debian-11\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-debian-11\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install Matomo on Debian 11\",\"datePublished\":\"2023-03-01T18:30:23+00:00\",\"dateModified\":\"2025-12-24T14:24:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-debian-11\\\/\"},\"wordCount\":613,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-debian-11\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/how-to-install-matomo-on-debian-11.webp\",\"keywords\":[\"debian\",\"lamp stack\",\"matomo\"],\"articleSection\":[\"Guides\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-debian-11\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-debian-11\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-debian-11\\\/\",\"name\":\"How to Install Matomo on Debian 11 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-debian-11\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-debian-11\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/how-to-install-matomo-on-debian-11.webp\",\"datePublished\":\"2023-03-01T18:30:23+00:00\",\"dateModified\":\"2025-12-24T14:24:34+00:00\",\"description\":\"Check out our in-depth tutorial, and find out how to install Matomo on Debian 11. Let's get started!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-debian-11\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-debian-11\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-debian-11\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/how-to-install-matomo-on-debian-11.webp\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/how-to-install-matomo-on-debian-11.webp\",\"width\":742,\"height\":372,\"caption\":\"how to install matomo on debian 11\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-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 Matomo 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 Matomo on Debian 11 | RoseHosting","description":"Check out our in-depth tutorial, and find out how to install Matomo on Debian 11. Let's get started!","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-matomo-on-debian-11\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Matomo on Debian 11","og_description":"Check out our in-depth tutorial, and find out how to install Matomo on Debian 11. Let's get started!","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-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":"2023-03-01T18:30:23+00:00","article_modified_time":"2025-12-24T14:24:34+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/02\/how-to-install-matomo-on-debian-11.webp","type":"image\/webp"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_title":"How to Install Matomo on Debian 11","twitter_description":"Check out our in-depth tutorial, and find out how to install Matomo on Debian 11. Let's get started!","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-matomo-on-debian-11\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-debian-11\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install Matomo on Debian 11","datePublished":"2023-03-01T18:30:23+00:00","dateModified":"2025-12-24T14:24:34+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-debian-11\/"},"wordCount":613,"commentCount":1,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-debian-11\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/02\/how-to-install-matomo-on-debian-11.webp","keywords":["debian","lamp stack","matomo"],"articleSection":["Guides","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-debian-11\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-debian-11\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-debian-11\/","name":"How to Install Matomo on Debian 11 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-debian-11\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-debian-11\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/02\/how-to-install-matomo-on-debian-11.webp","datePublished":"2023-03-01T18:30:23+00:00","dateModified":"2025-12-24T14:24:34+00:00","description":"Check out our in-depth tutorial, and find out how to install Matomo on Debian 11. Let's get started!","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-debian-11\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-debian-11\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-debian-11\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/02\/how-to-install-matomo-on-debian-11.webp","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2023\/02\/how-to-install-matomo-on-debian-11.webp","width":742,"height":372,"caption":"how to install matomo on debian 11"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-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 Matomo 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\/44875","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=44875"}],"version-history":[{"count":9,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/44875\/revisions"}],"predecessor-version":[{"id":51471,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/44875\/revisions\/51471"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/44988"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=44875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=44875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=44875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}