{"id":27242,"date":"2018-06-26T02:16:10","date_gmt":"2018-06-26T07:16:10","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=27242"},"modified":"2026-01-09T06:22:40","modified_gmt":"2026-01-09T12:22:40","slug":"how-to-install-matomo-on-centos-7","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-centos-7\/","title":{"rendered":"How to Install Matomo on CentOS 7"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-27274\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Install-Matomo-on-CentOS-7.jpg\" alt=\"How to Install Matomo on CentOS 7\" width=\"742\" height=\"371\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Install-Matomo-on-CentOS-7.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Install-Matomo-on-CentOS-7-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Install-Matomo-on-CentOS-7-300x150.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>This tutorial explains the process of installing an open source web analytic application named\u00a0Matomo (formerly known as Piwik) on a CentOS 7 VPS.\u00a0Matomo helps you gather and analyze important information about your website visitors. Matomo features tracking of visits, goals, conversion rates, A\/B Testing, funnels, heatmaps, downloads, keywords, and many more.\u00a0Let&#8217;s get started with the installation of Matomo on your CentOS 7 server.<\/p>\n<p><!--more--><\/p>\n<h3><strong>Requirements<\/strong><\/h3>\n<p>In order to run Matomo on your CentOS 7 VPS you need the following requirements pre-installed:<\/p>\n<ul>\n<li>Web Server: Apache &gt;= 2.0 compiled with mod_rewrite module, or Nginx<\/li>\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>MySQL 5.5 or later is recommended, or MariaDB installed on your <a href=\"https:\/\/www.rosehosting.com\/centos-hosting.html\">CentOS virtual server.<\/a><\/li>\n<li>CentOS 7 VPS with root access enabled<\/li>\n<\/ul>\n<h3><strong>1. Login via SSH<\/strong><\/h3>\n<p>Log in to your CentOS 7 VPS via ssh as user root<\/p>\n<pre>ssh roo@IP_Address -p Port_number<\/pre>\n<h3><strong>2. Update all packages<\/strong><\/h3>\n<p>Once you are logged in to the server run the following command to make sure that all installed packages are up to date<\/p>\n<pre>yum clean all\nyum update<\/pre>\n<h3><strong>3. Install LAMP stack<\/strong><\/h3>\n<p>As mention in the requirements section of the tutorial, a LAMP stack (Apache, MySQL\/MariaDB and PHP) is required to run Matomo on the server. We will start with installing Apache web server<\/p>\n<pre>yum -y install httpd<\/pre>\n<p>After the Apache installation is complete, start the Apache web server and enable it to start upon server boot<\/p>\n<pre>systemctl enable httpd<\/pre>\n<p>PHP version 7.1 is not available in the default CentOS 7 repositories so we will use the Remi repository.<\/p>\n<p>To install and enable both EPEL and Remi repositories run the following command:<\/p>\n<pre>yum install epel-release\nrpm -Uhv https:\/\/rpms.remirepo.net\/enterprise\/remi-release-7.rpm\nyum-config-manager --enable remi-php71<\/pre>\n<p>You can now proceed and install PHP 7.1 and all necessary PHP modules using the following command:<\/p>\n<pre>yum install php php-common php-mbstring php-gd php-curl php-mysql php-xml<\/pre>\n<p>During the installation, the yum package manager will prompt you to install the Remi GPG Signing key. Accept the key by typing &#8216;y&#8217; and the package manager will install\u00a0 all necessary PHP extensions.<\/p>\n<p>In order to complete the LAMP installation, install MariaDB database server using the following command:<\/p>\n<pre>yum -y mariadb mariadb-server<\/pre>\n<p>Start the MariaDB service and set it to start on reboot<\/p>\n<pre>systemctl start mariadb\nsystemctl enable mariadb<\/pre>\n<p>Run the &#8216;mysql_secure_installation&#8217; post installation script provided by MariaDB to strengthen the security of the database server and set a root password. You can use the following options:<\/p>\n<pre>Set root password? [Y\/n] Y\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<h3><strong>4. Install Matomo on CentOS 7<\/strong><\/h3>\n<p>Matomo is not available in the official CentOS 7 repositories, so we will have to download Matomo from the official website page at https:\/\/builds.matomo.org\/ and extract the Matomo archive to a directory on the server by executing the following commands:<\/p>\n<pre>cd \/opt\nwget https:\/\/builds.matomo.org\/piwik.zip -O matomo.zip\nunzip matomo.zip -d \/var\/www\/html\/\nmv \/var\/www\/html\/piwik\/ \/var\/www\/html\/matomo\/<\/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 apache:apache \/var\/www\/html\/matomo<\/pre>\n<h3>5. Configure Apache to serve Matomo<\/h3>\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\/httpd\/conf.d\/matomo.conf file with nano or your favorite editor:<\/p>\n<pre># vi \/etc\/httpd\/conf.d\/matomo.conf<\/pre>\n<p>Add the following lines:<\/p>\n<p>&lt;VirtualHost *:80&gt;<br \/>\nServerAdmin admin@your-domain.com<br \/>\nDocumentRoot \/var\/www\/html\/matomo<br \/>\nServerName your-domain.com<br \/>\nServerAlias www.your-domain.com<\/p>\n<p>Alias \/matomo &#8220;\/var\/www\/html\/matomo\/&#8221;<br \/>\n&lt;Directory \/var\/www\/html\/matomo\/&gt;<br \/>\nOptions +FollowSymlinks<br \/>\nAllowOverride All<\/p>\n<p>&lt;\/Directory&gt;<\/p>\n<p>ErrorLog \/var\/log\/httpd\/matomo-error_log<br \/>\nCustomLog \/var\/log\/httpd\/matomo-access_log common<br \/>\n&lt;\/VirtualHost&gt;<\/p>\n<p>Save the changes and restart the Apache web server for the changes to take effect:<\/p>\n<pre>systemctl restart httpd<\/pre>\n<h3>6. Create a MySQL database for Matomo<\/h3>\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<p>You can now open a web browser and access the Matomo application at http:\/\/your-domain.com<\/p>\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 server meets the Matomo requirements. If everything is OK, click Next<\/li>\n<li>Enter localhost or 127.0.0.1 as 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 CentOS 7 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 and start tracking and analyzing the website traffic. To access Matomo official documentation, please navigate to <a href=\"https:\/\/matomo.org\/docs\/\" target=\"_blank\" rel=\"noopener noreferrer\">Matomo Official Documentation<\/a><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-27272\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/installing-matomo-on-centos-7.jpg\" alt=\"installing matomo on centos 7\" width=\"742\" height=\"350\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/installing-matomo-on-centos-7.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/installing-matomo-on-centos-7-150x71.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/installing-matomo-on-centos-7-300x142.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-27273\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/install-matomo-on-centos-7.jpg\" alt=\"install matomo on centos 7\" width=\"200\" height=\"113\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/install-matomo-on-centos-7.jpg 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/install-matomo-on-centos-7-150x85.jpg 150w\" sizes=\"(max-width: 200px) 100vw, 200px\" \/>Of course, you don\u2019t have to install and configure Matomo on CentOS 7, if you use one of our\u00a0<a href=\"https:\/\/www.rosehosting.com\/centos-hosting.html\">CentOS Hosting<\/a> solutions, in which case you can simply ask our expert Linux admins to install and configure Matomo on CentOS 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 CentOS VPS, please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial explains the process of installing an open source web analytic application named\u00a0Matomo (formerly known as Piwik) on a &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install Matomo on CentOS 7\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-centos-7\/#more-27242\" aria-label=\"Read more about How to Install Matomo on CentOS 7\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":27274,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1699,13],"tags":[34,1716],"class_list":["post-27242","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-tutorials","tag-centos","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.7 (Yoast SEO v27.7) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install Matomo on CentOS 7 | RoseHosting<\/title>\n<meta name=\"description\" content=\"Learn how to install Matomo on CentOS 7 with our step-by-step guide. Analyze your website visitors effectively!\" \/>\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-centos-7\/\" \/>\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 CentOS 7\" \/>\n<meta property=\"og:description\" content=\"How to Install Matomo on CentOS 7 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-centos-7\/\" \/>\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-26T07:16:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-09T12:22:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Install-Matomo-on-CentOS-7.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-centos-7\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-centos-7\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install Matomo on CentOS 7\",\"datePublished\":\"2018-06-26T07:16:10+00:00\",\"dateModified\":\"2026-01-09T12:22:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-centos-7\\\/\"},\"wordCount\":895,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-centos-7\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/How-to-Install-Matomo-on-CentOS-7.jpg\",\"keywords\":[\"centos\",\"matomo\"],\"articleSection\":[\"CentOS\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-centos-7\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-centos-7\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-centos-7\\\/\",\"name\":\"How to Install Matomo on CentOS 7 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-centos-7\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-centos-7\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/How-to-Install-Matomo-on-CentOS-7.jpg\",\"datePublished\":\"2018-06-26T07:16:10+00:00\",\"dateModified\":\"2026-01-09T12:22:40+00:00\",\"description\":\"Learn how to install Matomo on CentOS 7 with our step-by-step guide. Analyze your website visitors effectively!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-centos-7\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-centos-7\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-centos-7\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/How-to-Install-Matomo-on-CentOS-7.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/How-to-Install-Matomo-on-CentOS-7.jpg\",\"width\":742,\"height\":371,\"caption\":\"How to Install Matomo on CentOS 7\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-matomo-on-centos-7\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Matomo on CentOS 7\"}]},{\"@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 CentOS 7 | RoseHosting","description":"Learn how to install Matomo on CentOS 7 with our step-by-step guide. Analyze your website visitors effectively!","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-centos-7\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Matomo on CentOS 7","og_description":"How to Install Matomo on CentOS 7 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-centos-7\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2018-06-26T07:16:10+00:00","article_modified_time":"2026-01-09T12:22:40+00:00","og_image":[{"width":742,"height":371,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Install-Matomo-on-CentOS-7.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-centos-7\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-centos-7\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install Matomo on CentOS 7","datePublished":"2018-06-26T07:16:10+00:00","dateModified":"2026-01-09T12:22:40+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-centos-7\/"},"wordCount":895,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-centos-7\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Install-Matomo-on-CentOS-7.jpg","keywords":["centos","matomo"],"articleSection":["CentOS","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-centos-7\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-centos-7\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-centos-7\/","name":"How to Install Matomo on CentOS 7 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-centos-7\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-centos-7\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Install-Matomo-on-CentOS-7.jpg","datePublished":"2018-06-26T07:16:10+00:00","dateModified":"2026-01-09T12:22:40+00:00","description":"Learn how to install Matomo on CentOS 7 with our step-by-step guide. Analyze your website visitors effectively!","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-centos-7\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-centos-7\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-centos-7\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Install-Matomo-on-CentOS-7.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Install-Matomo-on-CentOS-7.jpg","width":742,"height":371,"caption":"How to Install Matomo on CentOS 7"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-matomo-on-centos-7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Matomo on CentOS 7"}]},{"@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\/27242","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=27242"}],"version-history":[{"count":4,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/27242\/revisions"}],"predecessor-version":[{"id":51523,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/27242\/revisions\/51523"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/27274"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=27242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=27242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=27242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}