The Matomo web site analytic device permits you to analyze visitors to your cloud and different servers.
Your cloud servers see tons of tourists and utilization. A lot so, you may wish to preserve tabs on the analytics of these servers. A technique to take action is utilizing the Matomo (previously Piwik) Internet Analytics device. With the assistance of this device, you’ll be able to preserve tabs on visits to your cloud servers (or another server you may need).
I’ll stroll you thru the method of putting in Matomo on Ubuntu 18.04.
SEE: Vendor comparability: Microsoft Azure, Amazon AWS, and Google Cloud (Tech Professional Analysis)
What you want
The one stuff you want for it is a operating occasion of Ubuntu Server 18.04 and a person account with sudo privileges. I am going to do that with the thought of serving this solely to an inside community. For those who plan on reaching your Matomo occasion from the skin world, you will additionally want a Absolutely Certified Area Identify (so that you could use an SSL certificates). However since this can focus solely on inside utilization, we’ll skip that course of right here.
And with that mentioned, let’s set up.
The very first thing to care for is the required dependencies. Open a terminal window and subject the next command:
sudo apt set up curl wget git unzip socat -y
Subsequent set up PHP and the required modules with the command:
sudo apt set up php7.2 php7.2-cli php7.2-fpm php7.2-common php7.2-curl php7.2-gd php7.2-xml php7.2-mbstring php7.2-mysql -y
Lastly set up the MySQL server with the command:
sudo apt set up mysql-server -y
Safe the MySQL set up with the command:
Make certain to provide the MySQL admin person a robust/distinctive password and reply Y to the remaining questions. Entry the MySQL immediate with the command:
udo mysql -u root -p
Create the database (and the required person) with the next instructions:
CREATE DATABASE matomo; GRANT ALL PRIVILEGES ON matomo.* TO 'matomo'@'localhost' IDENTIFIED BY "PASSWORD"; FLUSH PRIVILEGES; exit
the place PASSWORD is a robust/distinctive password.
We’ll serve up Matomo with the NGINX internet server. To put in NGINX, open a terminal window and subject the next command:
sudo apt-get set up nginx -y
Create a brand new configuration file with the command:
sudo nano /and so on/nginx/conf.d/matomo.conf
In that file, copy the next contents:
the place SERVER_NAME is both the identify of the server or the IP tackle. Save and shut that file.
Subsequent, we have to obtain the required file for putting in Matamo. From the terminal window, subject the command:
Unzip the downloaded file with the command:
Transfer the newly created listing with the command:
sudo mv piwik /srv/matomo
Give the newly moved folder the correct permission with the command:
sudo chown -R www-data:www-data /srv/matomo/
Restart and allow NGINX with the instructions:
sudo systemctl restart nginx sudo systemctl allow nginx
End set up
To complete set up, level an online browser to http://SERVER_IP and stroll via the user-friendly web-based installer (Determine A).
As soon as you’ve got accomplished that course of, Matomo is able to begin monitoring your web site.
And that’s all there’s to putting in Matomo on Ubuntu Server 18.04. The time you spend with the set up will pale compared to what it requires so as to add your varied websites to the monitoring. The time spent can be properly value having all of that analytical knowledge to comb via.