{"id":26974,"date":"2018-06-04T03:36:47","date_gmt":"2018-06-04T08:36:47","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=26974"},"modified":"2025-12-24T07:58:12","modified_gmt":"2025-12-24T13:58:12","slug":"how-to-install-matomo-on-ubuntu-16-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-ubuntu-16-04\/","title":{"rendered":"How to Install Matomo on Ubuntu 16.04"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-27059\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-matomo-on-ubuntu-16.04.jpg\" alt=\"how to install matomo on ubuntu 16.04\" width=\"742\" height=\"371\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-matomo-on-ubuntu-16.04.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-matomo-on-ubuntu-16.04-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-matomo-on-ubuntu-16.04-300x150.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>Today, we are going to show you how to install Matomo on\u00a0 Ubuntu 16.04. Matomo (formerly known as Piwik) is a free and popular analytics platform currently used by individuals, companies, and governments all over the world. To install Matomo on Ubuntu 16.04, carefully follow the steps below, and you should have Matomo installed on your Ubuntu 16.04 server in less than 10 minutes. Let&#8217;s get started with the installation.<br \/>\n<!--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-69f9a551a885e\" 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-69f9a551a885e\"  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-ubuntu-16-04\/#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-ubuntu-16-04\/#Login-via-SSH-and-update-the-system\" >Login 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-matomo-on-ubuntu-16-04\/#Create-a-MySQL-database-for-Matomo\" >Create a MySQL database for Matomo<\/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-ubuntu-16-04\/#Install-and-Configure-Matomo-on-Ubuntu-1604\" >Install and Configure Matomo on Ubuntu 16.04<\/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-ubuntu-16-04\/#Configure-Apache-to-serve-Matomo\" >Configure Apache to serve Matomo<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span><strong>Prerequisites<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>PHP &gt;= 5.59 (PHP 7.0 or above is recommended), with the following PHP extensions enabled: XML (Expat), curl, GD Graphics Library version 2.0.x+ and mbstring.<\/li>\n<li>Apache Web Server &gt;= 2.0 compiled with mod_rewrite module, or Nginx<\/li>\n<li>MySQL 5.5 or later is recommended, or MariaDB is installed on your <a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Linux virtual server<\/a>.<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-27061\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/installing-matomo-on-ubuntu-16.04.jpg\" alt=\"installing matomo on ubuntu 16.04\" width=\"350\" height=\"97\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/installing-matomo-on-ubuntu-16.04.jpg 350w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/installing-matomo-on-ubuntu-16.04-150x42.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/installing-matomo-on-ubuntu-16.04-300x83.jpg 300w\" sizes=\"(max-width: 350px) 100vw, 350px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Login-via-SSH-and-update-the-system\"><\/span><strong>Login via SSH and update the system<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To begin, log in to your Ubuntu 16.04 VPS via SSH as user root<\/p>\n<pre>ssh root@IP_Address -p Port_number<\/pre>\n<p>Make sure that all OS packages are up to date by running the following command-line commands:<\/p>\n<pre>apt-get update\napt-get upgrade<\/pre>\n<p>You should always keep your system updated for security reasons.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Create-a-MySQL-database-for-Matomo\"><\/span>Create a MySQL database for Matomo<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Log into MySQL with the root account:<\/p>\n<pre># mysql -u root -p<\/pre>\n<p>Now we will create a MySQL database for Matomo using the following query:<\/p>\n<pre>mysql&gt; CREATE DATABASE matomo;<\/pre>\n<p>Then execute the following query to add a separate user for Matomo that will interact with the database:<\/p>\n<pre>mysql&gt; GRANT ALL PRIVILEGES ON matomo.* to 'matomo'@'localhost' IDENTIFIED BY '5tr0ng_Pa55w0rd';<\/pre>\n<p>Execute the following command to apply the privileges we set:<\/p>\n<pre>mysql&gt; FLUSH PRIVILEGES;<\/pre>\n<p>Now we can exit the MySQL session:<\/p>\n<pre>mysql&gt; quit<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Install-and-Configure-Matomo-on-Ubuntu-1604\"><\/span>Install and Configure Matomo on Ubuntu 16.04<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>First make sure the following packages are installed as they are needed by Matomo:<\/p>\n<pre># sudo apt-get install libapache2-mod-php7.0 php7.0 php7.0-cli php7.0-common php7.0-curl php7.0-gd php7.0-mbstring php7.0-mysql php7.0-xml<\/pre>\n<p>Download the latest release Matomo (Piwik) and extrat it to the \/var\/www\/matomo directory on the server:<\/p>\n<pre>cd \/opt\nwget https:\/\/builds.matomo.org\/piwik.zip -O matomo.zip\nunzip matomo.zip -d \/var\/www\/<\/pre>\n<p>This will create a new directory named \u2018matomo\u2019 containing the necessary files and directories.<br \/>\nChange the ownership of the matomo directory<\/p>\n<pre>chown -R www-data:www-data \/var\/www\/matomo<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Configure-Apache-to-serve-Matomo\"><\/span>Configure Apache to serve Matomo<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now we will have to setup the Apache configuration so it can serve the Matomo directory, add the following contents below to the \/etc\/apache2\/sites-available\/matomo.conf file with nano or your favorite editor:<\/p>\n<pre># sudo nano \/etc\/apache2\/sites-available\/matomo.conf\n\nAdd the following lines:\n<\/pre>\n<p>&lt;VirtualHost *:80&gt;<br \/>\nServerAdmin admin@your-domain.com<br \/>\nDocumentRoot \/var\/www\/matomo<br \/>\nServerName your-domain.com<br \/>\nServerAlias www.your-domain.com<\/p>\n<p>Alias \/matomo &#8220;\/var\/www\/matomo\/&#8221;<br \/>\n&lt;Directory \/var\/www\/matomo\/&gt;<br \/>\nOptions +FollowSymlinks<br \/>\nAllowOverride All<\/p>\n<p>&lt;\/Directory&gt;<\/p>\n<p>ErrorLog \/var\/log\/apache2\/matomo-error_log<br \/>\nCustomLog \/var\/log\/apache2\/matomo-access_log common<br \/>\n&lt;\/VirtualHost&gt;<\/p>\n<p>Enable the following Apache modules:<\/p>\n<pre># sudo a2enmod rewrite\n# sudo a2enmod headers\n# sudo a2enmod env\n# sudo a2enmod dir\n# sudo a2enmod mime\n<\/pre>\n<p>Enable the Apache ownCloud configuration:<\/p>\n<pre># sudo a2ensite matomo.conf<\/pre>\n<p>Remove the default Apache configuration file:<\/p>\n<pre>rm \/etc\/apache2\/sites-enabled\/000-default.conf<\/pre>\n<p>Now restart the Apache web server:<\/p>\n<pre># sudo systemctl restart apache2<\/pre>\n<p>Open your web browser and type in the following URL to access the Matomo web interface:<\/p>\n<pre>http:\/\/your-domain.com\/matomo<\/pre>\n<p>From here you can finish the setup by following the steps below:<\/p>\n<ul>\n<li>Matomo will check to make sure that your <a href=\"https:\/\/www.rosehosting.com\/matomo-analytics-hosting\/\" target=\"_blank\" rel=\"noopener\">Matomo analytics server<\/a> meets the technical requirements. If everything is OK, click Next<\/li>\n<li>Enter localhost or 127.0.0.1 as the database server, then enter a database username and password, database name, and once you have filled in the form, click Next<\/li>\n<li>You should receive a message: &#8216;Tables created with success!&#8217;. Click on the Next button once again<\/li>\n<li>Enter a username, password and email address for the administrator user account<\/li>\n<li>On the next page, set up the Website name and URL you want to track.<\/li>\n<\/ul>\n<p>That&#8217;s it, now you should have successfully installed Matomo on your server. You need to add the JavaScript tracking code on every page of your website before the closing tag so you can track and analyze the websites. You can now log in to the Matomo administration back-end and add more websites, check the stats etc.<\/p>\n<p>Since millions of websites today are powered by WordPress, there is a very useful plugin which will help you to add all the website stats at your Matomo dashboard. You can get the plugin at https:\/\/wordpress.org\/plugins\/wp-piwik\/. There are much more ways to integrate Matomo with other popular applications. You can check the list of all available Matomo plugins and extensions <a href=\"https:\/\/matomo.org\/faq\/plugins\/faq_20\/#faq_20\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>.<\/p>\n<p>If your website is a medium or high-traffic website, it is a good idea to\u00a0set up a cron job so that Matomo calculates the reports periodically. Create a new file matomo-archive in the \/etc\/cron.d\/ directory:<\/p>\n<pre>nano \/etc\/cron.d\/matomo-archive<\/pre>\n<p>add the following line:<\/p>\n<p>MAILTO=&#8221;admin@your-domain.com&#8221; 5 * * * * www-data \/usr\/bin\/php \/var\/www\/matomo\/console core:archive &#8211;url=http:\/\/your-domain.com\/matomo\/ &gt; \/var\/log\/apache2\/matomo-archive.log<\/p>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-27060\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/install-matomo-on-ubuntu-16.04.jpg\" alt=\"install matomo on ubuntu 16.04\" width=\"150\" height=\"150\" \/>Of course, you don\u2019t have to install and configure Matomo on Ubuntu 16.04, if you use one of our\u00a0<a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting.html\">Ubuntu Hosting<\/a> solutions, in which case you can simply ask our expert Linux admins to install and configure Matomo on Ubuntu 16.04 for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS<\/strong><\/span>. If you liked this post on how to install and configure Matomo on a Ubuntu 16.04 VPS, please share it with your friends or leave a comment below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today, we are going to show you how to install Matomo on\u00a0 Ubuntu 16.04. Matomo (formerly known as Piwik) is &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install Matomo on Ubuntu 16.04\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-ubuntu-16-04\/#more-26974\" aria-label=\"Read more about How to Install Matomo on Ubuntu 16.04\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":27059,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[1715,59],"class_list":["post-26974","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-matamo","tag-ubuntu","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 Matomo on Ubuntu 16.04 | RoseHosting<\/title>\n<meta name=\"description\" content=\"Learn how to install Matomo on Ubuntu 16.04 in just 10 minutes with our step-by-step guide for beginners, or ask our admins to help.\" \/>\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-ubuntu-16-04\/\" \/>\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 Ubuntu 16.04\" \/>\n<meta property=\"og:description\" content=\"How to Install Matomo on Ubuntu 16.04 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-ubuntu-16-04\/\" \/>\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=\"2018-06-04T08:36:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-24T13:58:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-matomo-on-ubuntu-16.04.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"371\" \/>\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: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-ubuntu-16-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-ubuntu-16-04\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install Matomo on Ubuntu 16.04\",\"datePublished\":\"2018-06-04T08:36:47+00:00\",\"dateModified\":\"2025-12-24T13:58:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-ubuntu-16-04\\\/\"},\"wordCount\":791,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-ubuntu-16-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/how-to-install-matomo-on-ubuntu-16.04.jpg\",\"keywords\":[\"Matamo\",\"ubuntu\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-ubuntu-16-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-ubuntu-16-04\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-ubuntu-16-04\\\/\",\"name\":\"How to Install Matomo on Ubuntu 16.04 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-ubuntu-16-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-ubuntu-16-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/how-to-install-matomo-on-ubuntu-16.04.jpg\",\"datePublished\":\"2018-06-04T08:36:47+00:00\",\"dateModified\":\"2025-12-24T13:58:12+00:00\",\"description\":\"Learn how to install Matomo on Ubuntu 16.04 in just 10 minutes with our step-by-step guide for beginners, or ask our admins to help.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-ubuntu-16-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-ubuntu-16-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-ubuntu-16-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/how-to-install-matomo-on-ubuntu-16.04.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/how-to-install-matomo-on-ubuntu-16.04.jpg\",\"width\":742,\"height\":371,\"caption\":\"how to install matomo on ubuntu 16.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-ubuntu-16-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Matomo on Ubuntu 16.04\"}]},{\"@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 Ubuntu 16.04 | RoseHosting","description":"Learn how to install Matomo on Ubuntu 16.04 in just 10 minutes with our step-by-step guide for beginners, or ask our admins to help.","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-ubuntu-16-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Matomo on Ubuntu 16.04","og_description":"How to Install Matomo on Ubuntu 16.04 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-ubuntu-16-04\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2018-06-04T08:36:47+00:00","article_modified_time":"2025-12-24T13:58:12+00:00","og_image":[{"width":742,"height":371,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-matomo-on-ubuntu-16.04.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","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-ubuntu-16-04\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-ubuntu-16-04\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install Matomo on Ubuntu 16.04","datePublished":"2018-06-04T08:36:47+00:00","dateModified":"2025-12-24T13:58:12+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-ubuntu-16-04\/"},"wordCount":791,"commentCount":2,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-ubuntu-16-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-matomo-on-ubuntu-16.04.jpg","keywords":["Matamo","ubuntu"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-ubuntu-16-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-ubuntu-16-04\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-ubuntu-16-04\/","name":"How to Install Matomo on Ubuntu 16.04 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-ubuntu-16-04\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-ubuntu-16-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-matomo-on-ubuntu-16.04.jpg","datePublished":"2018-06-04T08:36:47+00:00","dateModified":"2025-12-24T13:58:12+00:00","description":"Learn how to install Matomo on Ubuntu 16.04 in just 10 minutes with our step-by-step guide for beginners, or ask our admins to help.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-ubuntu-16-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-ubuntu-16-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-ubuntu-16-04\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-matomo-on-ubuntu-16.04.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-matomo-on-ubuntu-16.04.jpg","width":742,"height":371,"caption":"how to install matomo on ubuntu 16.04"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-ubuntu-16-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Matomo on Ubuntu 16.04"}]},{"@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\/26974","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=26974"}],"version-history":[{"count":2,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/26974\/revisions"}],"predecessor-version":[{"id":51467,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/26974\/revisions\/51467"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/27059"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=26974"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=26974"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=26974"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}