<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>matomo Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/matomo/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 04 Dec 2020 20:05:14 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<item>
		<title>Install Matomo on Ubuntu 20.04</title>
		<link>https://www.osradar.com/install-matomo-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/install-matomo-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 24 Nov 2020 01:31:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[Linuz]]></category>
		<category><![CDATA[matomo]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=25646</guid>

					<description><![CDATA[<p>Hello, friends. In this post, you will learn how to install Matomo on Ubuntu 20.04. It&#8217;s quite useful to measure the traffic to our website or blog. Matomo is an open-source tool that allows us to measure the traffic of our website. Matomo tracks, in real-time, the web pages seen and visited on a given [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-matomo-ubuntu-20-04/">Install Matomo on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. In this post, you will learn how to install Matomo on Ubuntu 20.04. It&#8217;s quite useful to measure the traffic to our website or blog.</p>



<p>Matomo is an open-source tool that allows us to measure the traffic of our website. Matomo tracks, in real-time, the web pages seen and visited on a given website. Also, reports are added for analysis.</p>



<p>So, it is a very useful tool for everyone who has a blog or website and now you will learn how to install it.</p>



<h2>Install Matomo on Ubuntu 20.04</h2>



<h3>1.- Install LAMP on Ubuntu 20.04</h3>



<p><a href="https://matomo.org/" target="_blank" rel="noreferrer noopener">Matomo</a> has a very friendly web interface built with open source web technologies. Besides this, it requires a relational database manager like MariaDB. That&#8217;s why we can use the LAMP- Stack</p>



<p>So, read our post about it</p>



<p><a href="https://www.osradar.com/install-lamp-ubuntu-20-04/" target="_blank" rel="noreferrer noopener">How to install LAMP on Ubuntu 20.04?</a></p>



<p>Also, install the following PHP packages and modules.</p>



<pre class="wp-block-preformatted">php libapache2-mod-php php-cli php-fpm php-json php-pdo php-mysql php-zip php-gd php-mbstring php-curl php-xml php-pear php-bcmath unzip wget</pre>



<h3>2.- Creating a new Database for Matomo</h3>



<p>With LAMP already created and configured, the next step is to create a new database and a new user to be used by Matomo to collect the data.</p>



<p>So, open the MariaDB console and start creating the database and user:</p>



<pre class="wp-block-preformatted">CREATE DATABASE matomodb;<br>GRANT ALL PRIVILEGES ON matomodb.* TO 'matomouser'@'localhost' IDENTIFIED BY 'matomopss';<br>FLUSH PRIVILEGES;<br>EXIT;</pre>



<p>Now we can start the download</p>



<h3>3.- Download Matomo on Ubuntu 20.04</h3>



<p>Matomo is distributed in a zip package. This file is the one that we must download and for it, we will use <a href="https://www.osradar.com/the-wget-command/" target="_blank" rel="noreferrer noopener">the command wget</a></p>



<pre class="wp-block-preformatted">cd /tmp<br>wget https://builds.matomo.org/matomo-latest.zip</pre>



<p>Once the installation is finished, it is time to decompress it</p>



<pre class="wp-block-preformatted">sudo unzip matomo-latest.zip -d /var/www/</pre>



<p>Then, assign the appropriate permissions and make Apache the owner of the folder.</p>



<pre class="wp-block-preformatted">sudo chown www-data:www-data -R /var/www/matomo/<br>sudo chmod 755 -R /var/www/matomo/</pre>



<p>Now it is time to create a new Virtualhost for Matomo</p>



<pre class="wp-block-preformatted">sudo nano /etc/apache2/sites-available/matomo.conf</pre>



<p>And add the following:</p>



<pre class="wp-block-preformatted">&lt;VirtualHost *:80>
     ServerAdmin angelo@osradar.com
     ServerName matomo.osradar.test
     DocumentRoot /var/www/matomo/
     
     &lt;<code>Directory /var/www/matomo></code>
            <code>DirectoryIndex index.php</code>
            <code>Options FollowSymLinks</code>
            <code>AllowOverride All</code>
            <code>Require all granted</code>
     &lt;/Directory> 

     &lt;Files "console">
            Options None
            Require all denied
      &lt;/Files> 

       &lt;Directory /var/www/matomo/misc/user>
            Options None
            Require all granted
        &lt;/Directory>

        &lt;Directory /var/www/matomo/misc>
            Options None
            Require all denied
        &lt;/Directory>

        &lt;Directory /var/www/matomo/vendor>
            Options None
            Require all denied
         &lt;/Directory>
ErrorLog ${APACHE_LOG_DIR}/matomo_error.log
CustomLog ${APACHE_LOG_DIR}/matomo_access.log combined
&lt;/VirtualHost></pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="984" height="624" src="https://www.osradar.com/wp-content/uploads/2020/11/1-10.png" alt="1.- Creating a new Virtualhost for Matomo" class="wp-image-25750" srcset="https://www.osradar.com/wp-content/uploads/2020/11/1-10.png 984w, https://www.osradar.com/wp-content/uploads/2020/11/1-10-300x190.png 300w, https://www.osradar.com/wp-content/uploads/2020/11/1-10-768x487.png 768w, https://www.osradar.com/wp-content/uploads/2020/11/1-10-696x441.png 696w" sizes="(max-width: 984px) 100vw, 984px" /><figcaption>1.- Creating a new Virtualhost for Matomo</figcaption></figure>



<p>You can change the <code>ServerName</code> and <code>ServerAdmin</code> values to your own without any problem. When you are done, save your changes and close the editor.</p>



<p>Enable the new Virtualhost and restart apache</p>



<pre class="wp-block-preformatted">sudo a2ensite matomo.conf<br>sudo systemctl restart apache2</pre>



<h3>4.- Install Matomo on Ubuntu 20.04</h3>



<p>Now you have to complete the installation from the web installer. To do this open your favorite web browser and go to <code>http://your-server</code> and you will see the Matomo installer&#8217;s welcome screen.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2020/11/2-8-1024x506.png" alt="2.- Installing Matomo on Ubuntu 20.04" class="wp-image-25751" srcset="https://www.osradar.com/wp-content/uploads/2020/11/2-8-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2020/11/2-8-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/11/2-8-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/11/2-8-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2020/11/2-8-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2020/11/2-8.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Installing Matomo on Ubuntu 20.04</figcaption></figure>



<p>Then, your server will be checked to see if it meets all the requirements. At the bottom of the page, click Next.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2020/11/3-8-1024x506.png" alt="3.- System check screen" class="wp-image-25752" srcset="https://www.osradar.com/wp-content/uploads/2020/11/3-8-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2020/11/3-8-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/11/3-8-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/11/3-8-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2020/11/3-8-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2020/11/3-8.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- System check screen</figcaption></figure>



<p>Then it&#8217;s time to configure the database. To do this, enter the credentials we have created above.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2020/11/4-7-1024x506.png" alt="4.- Database configuration" class="wp-image-25753" srcset="https://www.osradar.com/wp-content/uploads/2020/11/4-7-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2020/11/4-7-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/11/4-7-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/11/4-7-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2020/11/4-7-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2020/11/4-7.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>4.- Database configuration</figcaption></figure>



<p>If the connection to the database has worked, you will see the following message.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2020/11/5-6-1024x506.png" alt="5.- Connection with the database is correct" class="wp-image-25754" srcset="https://www.osradar.com/wp-content/uploads/2020/11/5-6-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2020/11/5-6-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/11/5-6-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/11/5-6-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2020/11/5-6-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2020/11/5-6.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>5.- Connection with the database is correct</figcaption></figure>



<p>The next step is to create a superuser account. Enter your details and click <em>Next</em>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2020/11/6-6-1024x506.png" alt="6.- Creating the super user account" class="wp-image-25755" srcset="https://www.osradar.com/wp-content/uploads/2020/11/6-6-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2020/11/6-6-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/11/6-6-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/11/6-6-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2020/11/6-6-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2020/11/6-6.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>6.- Creating the super user account</figcaption></figure>



<p>On the next screen, you will be informed that the website has been successfully created. And you can now define your website for the traffic.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2020/11/7-6-1024x506.png" alt="7.- Setup the new website" class="wp-image-25756" srcset="https://www.osradar.com/wp-content/uploads/2020/11/7-6-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2020/11/7-6-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/11/7-6-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/11/7-6-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2020/11/7-6-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2020/11/7-6.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>7.- Setup the new website</figcaption></figure>



<p>After this, a JavaScript code will be generated which you will have to copy into your website to monitor it.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2020/11/8-6-1024x506.png" alt="8.- Tracking code for osradar" class="wp-image-25757" srcset="https://www.osradar.com/wp-content/uploads/2020/11/8-6-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2020/11/8-6-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/11/8-6-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/11/8-6-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2020/11/8-6-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2020/11/8-6.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>8.- Tracking code for osradar</figcaption></figure>



<p>If all goes well, you will see a message like this</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2020/11/9-6-1024x506.png" alt="9.- Matomo installed" class="wp-image-25758" srcset="https://www.osradar.com/wp-content/uploads/2020/11/9-6-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2020/11/9-6-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/11/9-6-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/11/9-6-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2020/11/9-6-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2020/11/9-6.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>9.- Matomo installed</figcaption></figure>



<p>Now you only have to log in to Matomo</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2020/11/10-6-1024x506.png" alt="10.- Matomo login page" class="wp-image-25759" srcset="https://www.osradar.com/wp-content/uploads/2020/11/10-6-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2020/11/10-6-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/11/10-6-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/11/10-6-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2020/11/10-6-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2020/11/10-6.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>10.- Matomo login page</figcaption></figure>



<p>And see the dashboard with everything you can do.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2020/11/11-7-1024x506.png" alt="11.- Matomo on Ubuntu 20.04" class="wp-image-25760" srcset="https://www.osradar.com/wp-content/uploads/2020/11/11-7-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2020/11/11-7-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2020/11/11-7-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2020/11/11-7-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2020/11/11-7-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2020/11/11-7.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>11.- Matomo on Ubuntu 20.04</figcaption></figure>



<h2>Conclusion</h2>



<p>Thanks to this post you can install Matomo on a server with Ubuntu 20.04. The process is quite easy to do and has many benefits if you have a website or blog.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-matomo-ubuntu-20-04/">Install Matomo on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-matomo-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
