How to install Matomo Web Analytics on Ubuntu 18.04

19

Buy Organic Traffic | Cheap Organic Traffic | Increase Organic Traffic | Organic Traffic


The Matomo web site analytic device permits you to analyze visitors to your cloud and different servers.

Picture: Jack Wallen

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.

Dependencies

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

Database

Safe the MySQL set up with the command:

sudo mysq_secure_installation

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.

NGINX

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:

server 

the place SERVER_NAME is both the identify of the server or the IP tackle. Save and shut that file.

Obtain Matamo

Subsequent, we have to obtain the required file for putting in Matamo. From the terminal window, subject the command:

wget https://builds.piwik.org/piwik.zip

Unzip the downloaded file with the command:

unzip piwik.zip

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).

Figure AFigure A

Determine A: The Matamo web-based installer.

You can be required so as to add a monitoring code to each web page in your web site, or set up a pre-made plugin that covers a variety of web site sorts (resembling Drupal, WordPress, Joomla, Sharepoint, Type3, Moodle, and lots of extra). You can be given the Javascript monitoring code to your web site throughout set up. Copy that code right into a file (you will want it whenever you go to arrange your websites). For those who do not copy it, you’ll be able to retrieve it from the Matomo admin web page.

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.

Additionally see

Buy Website Traffic | Cheap Website Traffic | Increase Website Traffic | Website Traffic



Source link