{"id":1073,"date":"2019-11-07T15:36:16","date_gmt":"2019-11-07T21:36:16","guid":{"rendered":"https:\/\/www.linuxcloudvps.com\/blog\/?p=1073"},"modified":"2019-11-07T15:36:16","modified_gmt":"2019-11-07T21:36:16","slug":"how-to-install-matomo-on-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-matomo-on-ubuntu-18-04\/","title":{"rendered":"How to Install Matomo on Ubuntu 18.04"},"content":{"rendered":"<p>In this tutorial we are going to install the self-hosted version of Matomo on an <a href=\"https:\/\/www.linuxcloudvps.com\/cloud-vps.html\">Ubuntu 18.04 Cloud VPS<\/a> with the Apache web server, the MySQL database server, and PHP version 7.2.<\/p>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-1080\" src=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2019\/10\/set-up-install-matomo-analytics-platform-on-ubuntu18.04-cloud-vps.jpg\" alt=\"\" width=\"140\" height=\"24\" \/>Matomo (formerly known as Piwik) is a free and open-source real-time web analytics platform, similar to Google&#8217;s own Analytics platform. Matomo provides its users with reports about their websites such as visitors, search engine results, languages, keywords, and much more. The install process is fairly straightforward, so let&#8217;s get started.<\/p>\n<p><!--more--><\/p>\n<p>First, let&#8217;s see what other features Matomo has that can come in handy:<\/p>\n<p>Matomo comes with tons of useful features, such as:<\/p>\n<ul>\n<li>Real-time data updates<\/li>\n<li>Customizable dashboard<\/li>\n<li>Analytics for Ecommerce<\/li>\n<li>Goal Conversion Tracking<\/li>\n<li>Scheduled email reports in PDF and HTML format<\/li>\n<li>Accurately measure the time spent by visitors on your website<\/li>\n<li>Custom Dimensions<\/li>\n<li>Site Search Analytics<\/li>\n<li>Site speed and page speed reports<\/li>\n<\/ul>\n<p>and lots more&#8230;<\/p>\n<h2><strong>Prerequisites<\/strong><\/h2>\n<ul>\n<li>Ubuntu 18.04 server<\/li>\n<li>System user with root privileges (or the root user itself)<\/li>\n<li>Apache, Nginx or IIS web server<\/li>\n<li>PHP version 5.5.9 or greater. PHP 7+ is recommended<\/li>\n<li>MySQL or MariaDB database server version 5.5 or greater. Version 5.7+ is recommended<\/li>\n<li>PHP extension pdo and pdo_mysql, or the mysqli extension.<\/li>\n<\/ul>\n<h2><strong>Step 1. Log in and Update the Server<\/strong><\/h2>\n<p>Login to your Ubuntu 18.04 server via SSH as user root (or as a user with sudo privileges)<\/p>\n<pre>ssh root@&lt;span style=&quot;color: #ff0000;&quot;&gt;IP_Address&lt;\/span&gt; -p &lt;span style=&quot;color: #ff0000;&quot;&gt;Port_number&lt;\/span&gt;<\/pre>\n<p>You only need to specify &#8220;<span style=\"color: #ff0000;\">-p Port_number<\/span>&#8221; if your server uses an SSH port number other than the default port number, 22. Once you&#8217;re logged in, run the following commands to update all installed packages to their latest available versions:<\/p>\n<pre>apt update &amp;&amp; apt upgrade<\/pre>\n<h2><strong>Step 2. Install the Apache Web Server<\/strong><\/h2>\n<p>Matomo needs a web server on which it will serve its web interface. It can run on almost all of the major web servers. In this tutorial we decided to install the Apache web server, which is one of the most popular web servers in the world. Run the following command to install it on your Ubuntu 18.04 server:<\/p>\n<pre>apt install apache2<\/pre>\n<p>Once it is installed, you can start the web server and enable it to automatically start after a server reboot:<\/p>\n<pre>systemctl start apache2\r\nsystemctl enable apache2<\/pre>\n<p>You can check if Apache is properly installed and running on your server by checking its status:<\/p>\n<pre>systemctl status apache2<\/pre>\n<p>Output:<\/p>\n<pre>apache2.service - The Apache HTTP Server\r\n   Loaded: loaded (\/lib\/systemd\/system\/apache2.service; enabled; vendor preset: enabled)\r\n  Drop-In: \/lib\/systemd\/system\/apache2.service.d\r\n           apache2-systemd.conf\r\n   Active: active (running) \r\n  Process: 7031 ExecStop=\/usr\/sbin\/apachectl stop (code=exited, status=0\/SUCCESS)\r\n  Process: 7036 ExecStart=\/usr\/sbin\/apachectl start (code=exited, status=0\/SUCCESS)\r\n Main PID: 7040 (apache2)\r\n    Tasks: 7 (limit: 2321)\r\n   CGroup: \/system.slice\/apache2.service\r\n           7040 \/usr\/sbin\/apache2 -k start\r\n           7042 \/usr\/sbin\/apache2 -k start<\/pre>\n<h2><strong>Step 3. Install PHP<\/strong><\/h2>\n<p>Matomo is based on the PHP programming language, so we have to install PHP and several PHP extensions required by the application:<\/p>\n<pre>apt install php7.2 php7.2-curl php7.2-gd php7.2-cli mysql-server php7.2-mysql php-xml php7.2-mbstring<\/pre>\n<p>Verify that PHP is properly installed by checking which version is currently installed:<\/p>\n<pre>php -v<\/pre>\n<p>Output:<\/p>\n<pre>PHP 7.2.10-0ubuntu0.18.04.1 (cli) (built: Sep 13 2018 13:45:02) ( NTS )\r\nCopyright (c) 1997-2018 The PHP Group\r\nZend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies\r\n    with Zend OPcache v7.2.10-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies<\/pre>\n<h2><strong>Step 4. Install the MySQL Database Server<\/strong><\/h2>\n<p>Matomo stores its information in an SQL database, so we will install the MySQL database server. MySQL server can be easily installed from the official Ubuntu repository by executing the following command:<\/p>\n<pre>apt install mysql-server<\/pre>\n<p>You can verify that the database server is properly installed and running by checking its status<\/p>\n<pre>systemctl status mysql<\/pre>\n<p>Output<\/p>\n<pre>mysql.service - MySQL Community Server\r\n   Loaded: loaded (\/lib\/systemd\/system\/mysql.service; enabled; vendor preset: enabled)\r\n   Active: active (running)\r\n Main PID: 24854 (mysqld)\r\n    Tasks: 27 (limit: 2321)\r\n   CGroup: \/system.slice\/mysql.service\r\n           24854 \/usr\/sbin\/mysqld --daemonize --pid-file=\/run\/mysqld\/mysqld.pid<\/pre>\n<p>Next you can set a password for your MySQL root user and additionally strengthen the security of the MySQL server, using the \u2018mysql_secure_installation\u2019 script. You can select the following options &#8211; we suggest answering with &#8216;Y&#8217; to all of the prompts:<\/p>\n<pre>Set root password? [Y\/n] Y\r\nRemove anonymous users? [Y\/n] Y\r\nDisallow root login remotely? [Y\/n] Y\r\nRemove test database and access to it? [Y\/n] Y\r\nReload privilege tables now? [Y\/n] Y<\/pre>\n<h2><strong>Step 5. Create a MySQL User and Database<\/strong><\/h2>\n<p>Finally, you can log in to the MySQL server as the root user and create a new MySQL user and database for Matomo:<\/p>\n<pre>mysql -u root -p\r\n\r\nmysql&amp;gt; CREATE DATABASE matomo;\r\nmysql&amp;gt; GRANT ALL PRIVILEGES ON matomo.* TO &#039;matomo_user&#039;@&#039;localhost&#039; IDENTIFIED BY &#039;&lt;span style=&quot;color: #ff0000;&quot;&gt;PASSWORD&lt;\/span&gt;&#039;;\r\nmysql&amp;gt; FLUSH PRIVILEGES;\r\nmysql&amp;gt; exit;<\/pre>\n<p>Don&#8217;t forget to replace &#8216;<span style=\"color: #ff0000;\">PASSWORD<\/span>&#8216; with an actual strong password.<\/p>\n<h2><strong>Step 6. Download Matomo<\/strong><\/h2>\n<p>Go Matomo&#8217;s official website and download the latest stable release of the application. At the moment of writing this tutorial, it is version 3.8.0.<\/p>\n<pre>wget https:\/\/builds.matomo.org\/matomo-latest.zip<\/pre>\n<p>Unpack the downloaded ZIP archive of the application to the document root directory of your server. This will create a \u201cpiwik\u201d folder containing the files and directories.<\/p>\n<pre>unzip matomo-latest.zip -d \/var\/www\/html<\/pre>\n<p>Set the correct ownership. All Matomo files and directories have to be readable by the web server user.<\/p>\n<pre>chown -R www-data:www-data \/var\/www\/html\/matomo\/<\/pre>\n<h2><strong>Step 7. Create an Apache Virtual host<\/strong><\/h2>\n<p>If you want to access Matomo with a domain or subdomain, you have to create Apache virtual host directive for the appropriate domain \/ subdomain. Create a new file in Apache&#8217;s &#8216;sites-available&#8217; directory with the following content<\/p>\n<pre>nano \/etc\/apache2\/sites-available\/matomo.conf\r\n\r\n&lt;span style=&quot;font-family: &#039;Helvetica Neue&#039;, Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;&quot;&gt;&amp;lt;VirtualHost *:80&amp;gt;&lt;\/span&gt;\r\n    ServerName &lt;span style=&quot;color: #ff0000;&quot;&gt;yourdomain.com&lt;\/span&gt;\r\n    ServerAlias www.&lt;span style=&quot;color: #ff0000;&quot;&gt;yourdomain.com&lt;\/span&gt;\r\n    ServerAdmin admin@&lt;span style=&quot;color: #ff0000;&quot;&gt;yourdomain.com&lt;\/span&gt;\r\n    DocumentRoot \/var\/www\/html\/matomo\/\r\n    &amp;lt;Directory \/var\/www\/html\/matomo\/&amp;gt;\r\n        Options FollowSymLinks\r\n        AllowOverride All\r\n        Order allow,deny\r\n        allow from all\r\n    &amp;lt;\/Directory&amp;gt;\r\n    ErrorLog \/var\/log\/apache2\/&lt;span style=&quot;color: #ff0000;&quot;&gt;yourdomain.com&lt;\/span&gt;-error_log\r\n    CustomLog \/var\/log\/apache2\/&lt;span style=&quot;color: #ff0000;&quot;&gt;yourdomain.com&lt;\/span&gt;-access_log common\r\n&amp;lt;\/VirtualHost&amp;gt;<\/pre>\n<p>&nbsp;<\/p>\n<p>Save the changes and enable the Apache virtual host using the following command<\/p>\n<pre>a2ensite matomo.conf<\/pre>\n<p>output:<\/p>\n<pre>Enabling site matomo.\r\nTo activate the new configuration, you need to run:\r\n  systemctl reload apache2<\/pre>\n<p>As suggested in the output above, reload the web server for the changes to take effect:<\/p>\n<pre>systemctl reload apache2<\/pre>\n<h2><strong>Step 8. Complete the Installation<\/strong><\/h2>\n<p>To complete Matomo&#8217;s installation, open your favorite web browser and navigate it to http:\/\/<span style=\"color: #ff0000;\">yourdomain.com<\/span>. If everything is properly installed and configured, you will get Matomo&#8217;s welcome screen as shown in the image below:<\/p>\n<figure id=\"attachment_1074\" aria-describedby=\"caption-attachment-1074\" style=\"width: 1313px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" class=\"size-full wp-image-1074\" src=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2019\/10\/matomo.png\" alt=\"\" width=\"1323\" height=\"510\" srcset=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2019\/10\/matomo.png 1323w, https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2019\/10\/matomo-470x181.png 470w, https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2019\/10\/matomo-768x296.png 768w, https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2019\/10\/matomo-970x374.png 970w\" sizes=\"(max-width: 1323px) 100vw, 1323px\" \/><figcaption id=\"caption-attachment-1074\" class=\"wp-caption-text\">The Matomo Welcome Screen<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>From there, you can follow the installation wizard and enter the MySQL information, create tables in the MySQL database, create your administrative account, and enter the details about your website.<\/p>\n<p>For more details on how to configure and use Matomo, please check their <a href=\"https:\/\/matomo.org\/docs\/\" target=\"_blank\" rel=\"noopener noreferrer\">official documentation<\/a>.<\/p>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-1079\" src=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2019\/10\/expert-help-and-support-for-matomo-setup-installation-ubuntu18-cloud-vps.jpg\" alt=\"\" width=\"140\" height=\"24\" \/>Of course, you don\u2019t have to install and configure Matomo on Ubuntu 18.04, if you use one of our <a href=\"https:\/\/www.linuxcloudvps.com\/cloud-vps.html\" target=\"_blank\" rel=\"noopener noreferrer\">Managed Cloud VPS 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><strong>PS.\u00a0<\/strong>If you liked this post on How to Install Matomo on Ubuntu 18.04, please share it with your friends on the social networks using the share shortcuts, or simply leave a comment down below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial we are going to install the self-hosted version of Matomo on an Ubuntu 18.04 Cloud VPS with the Apache web server, the MySQL database server, and PHP version 7.2. Matomo (formerly known as Piwik) is a free and open-source real-time web analytics platform, similar to Google&#8217;s own Analytics platform. Matomo provides its &#8230; <a title=\"How to Install Matomo on Ubuntu 18.04\" class=\"read-more\" href=\"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-matomo-on-ubuntu-18-04\/\" aria-label=\"More on How to Install Matomo on Ubuntu 18.04\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":1076,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-1073","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install Matomo on Ubuntu 18.04 | LinuxCloudVPS Blog<\/title>\n<meta name=\"description\" content=\"In this tutorial we are going to install the self-hosted version of Matomo on an Ubuntu 18.04 Cloud VPS with the Apache web server, the MySQL database\" \/>\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.linuxcloudvps.com\/blog\/how-to-install-matomo-on-ubuntu-18-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 18.04 | LinuxCloudVPS Blog\" \/>\n<meta property=\"og:description\" content=\"In this tutorial we are going to install the self-hosted version of Matomo on an Ubuntu 18.04 Cloud VPS with the Apache web server, the MySQL database\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-matomo-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxCloudVPS Blog\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/LinuxCloudVPS\" \/>\n<meta property=\"article:published_time\" content=\"2019-11-07T21:36:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2019\/10\/how-to-install-matomo-on-ubuntu18.04.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"360\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@LinuxCloudVPS\" \/>\n<meta name=\"twitter:site\" content=\"@LinuxCloudVPS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-matomo-on-ubuntu-18-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-matomo-on-ubuntu-18-04\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/person\\\/ed907227ee7d151c617e6d0fe74f531a\"},\"headline\":\"How to Install Matomo on Ubuntu 18.04\",\"datePublished\":\"2019-11-07T21:36:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-matomo-on-ubuntu-18-04\\\/\"},\"wordCount\":880,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-matomo-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/10\\\/how-to-install-matomo-on-ubuntu18.04.jpg\",\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-matomo-on-ubuntu-18-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-matomo-on-ubuntu-18-04\\\/\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-matomo-on-ubuntu-18-04\\\/\",\"name\":\"How to Install Matomo on Ubuntu 18.04 | LinuxCloudVPS Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-matomo-on-ubuntu-18-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-matomo-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/10\\\/how-to-install-matomo-on-ubuntu18.04.jpg\",\"datePublished\":\"2019-11-07T21:36:16+00:00\",\"description\":\"In this tutorial we are going to install the self-hosted version of Matomo on an Ubuntu 18.04 Cloud VPS with the Apache web server, the MySQL database\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-matomo-on-ubuntu-18-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-matomo-on-ubuntu-18-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-matomo-on-ubuntu-18-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/10\\\/how-to-install-matomo-on-ubuntu18.04.jpg\",\"contentUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/10\\\/how-to-install-matomo-on-ubuntu18.04.jpg\",\"width\":750,\"height\":360},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/how-to-install-matomo-on-ubuntu-18-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Matomo on Ubuntu 18.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/\",\"name\":\"LinuxCloudVPS\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#organization\",\"name\":\"LinuxCloudVPS\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/logo.png\",\"width\":217,\"height\":25,\"caption\":\"LinuxCloudVPS\"},\"image\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"http:\\\/\\\/www.facebook.com\\\/LinuxCloudVPS\",\"https:\\\/\\\/x.com\\\/LinuxCloudVPS\",\"http:\\\/\\\/www.linkedin.com\\\/company\\\/linuxcloudvps-com\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/person\\\/ed907227ee7d151c617e6d0fe74f531a\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"http:\\\/\\\/www.linuxcloudvps.com\\\/\"],\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/author\\\/r0s3admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Matomo on Ubuntu 18.04 | LinuxCloudVPS Blog","description":"In this tutorial we are going to install the self-hosted version of Matomo on an Ubuntu 18.04 Cloud VPS with the Apache web server, the MySQL database","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.linuxcloudvps.com\/blog\/how-to-install-matomo-on-ubuntu-18-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Matomo on Ubuntu 18.04 | LinuxCloudVPS Blog","og_description":"In this tutorial we are going to install the self-hosted version of Matomo on an Ubuntu 18.04 Cloud VPS with the Apache web server, the MySQL database","og_url":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-matomo-on-ubuntu-18-04\/","og_site_name":"LinuxCloudVPS Blog","article_publisher":"http:\/\/www.facebook.com\/LinuxCloudVPS","article_published_time":"2019-11-07T21:36:16+00:00","og_image":[{"width":750,"height":360,"url":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2019\/10\/how-to-install-matomo-on-ubuntu18.04.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@LinuxCloudVPS","twitter_site":"@LinuxCloudVPS","twitter_misc":{"Written by":"admin","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-matomo-on-ubuntu-18-04\/#article","isPartOf":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-matomo-on-ubuntu-18-04\/"},"author":{"name":"admin","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/person\/ed907227ee7d151c617e6d0fe74f531a"},"headline":"How to Install Matomo on Ubuntu 18.04","datePublished":"2019-11-07T21:36:16+00:00","mainEntityOfPage":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-matomo-on-ubuntu-18-04\/"},"wordCount":880,"commentCount":0,"publisher":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-matomo-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2019\/10\/how-to-install-matomo-on-ubuntu18.04.jpg","articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-matomo-on-ubuntu-18-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-matomo-on-ubuntu-18-04\/","url":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-matomo-on-ubuntu-18-04\/","name":"How to Install Matomo on Ubuntu 18.04 | LinuxCloudVPS Blog","isPartOf":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-matomo-on-ubuntu-18-04\/#primaryimage"},"image":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-matomo-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2019\/10\/how-to-install-matomo-on-ubuntu18.04.jpg","datePublished":"2019-11-07T21:36:16+00:00","description":"In this tutorial we are going to install the self-hosted version of Matomo on an Ubuntu 18.04 Cloud VPS with the Apache web server, the MySQL database","breadcrumb":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-matomo-on-ubuntu-18-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-matomo-on-ubuntu-18-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-matomo-on-ubuntu-18-04\/#primaryimage","url":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2019\/10\/how-to-install-matomo-on-ubuntu18.04.jpg","contentUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2019\/10\/how-to-install-matomo-on-ubuntu18.04.jpg","width":750,"height":360},{"@type":"BreadcrumbList","@id":"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-matomo-on-ubuntu-18-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.linuxcloudvps.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Matomo on Ubuntu 18.04"}]},{"@type":"WebSite","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#website","url":"https:\/\/www.linuxcloudvps.com\/blog\/","name":"LinuxCloudVPS","description":"","publisher":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.linuxcloudvps.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#organization","name":"LinuxCloudVPS","url":"https:\/\/www.linuxcloudvps.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2023\/08\/logo.png","contentUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2023\/08\/logo.png","width":217,"height":25,"caption":"LinuxCloudVPS"},"image":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["http:\/\/www.facebook.com\/LinuxCloudVPS","https:\/\/x.com\/LinuxCloudVPS","http:\/\/www.linkedin.com\/company\/linuxcloudvps-com"]},{"@type":"Person","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/person\/ed907227ee7d151c617e6d0fe74f531a","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"admin"},"sameAs":["http:\/\/www.linuxcloudvps.com\/"],"url":"https:\/\/www.linuxcloudvps.com\/blog\/author\/r0s3admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts\/1073","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/comments?post=1073"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts\/1073\/revisions"}],"predecessor-version":[{"id":1089,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts\/1073\/revisions\/1089"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/media\/1076"}],"wp:attachment":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/media?parent=1073"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/categories?post=1073"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/tags?post=1073"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}