Skip to content

Hoe Matomo Web Analytics te installeren op Debian 12

Cloud Infrastructure Expert
Hoe Matomo Web Analytics te installeren op Debian 12

 

 

In dit artikel laten we je zien hoe je Matomo Web Analytics kunt installeren op een server VPS met Debian 12.

Stap 1: Systeemvereisten

  • Een werkende installatie van Debian 12
  • Toegang tot de terminal met root- of sudo-rechten
  • Een webserver (bijvoorbeeld Apache of Nginx)
  • PHP (versie 7.2 of hoger)
  • MySQL of MariaDB

Stap 2: PHP installeren

Open je terminal en voer de volgende commando’s uit om de vereiste PHP-extensies te installeren:

sudo apt update
sudo apt install php php-mysql php-xml php-mbstring php-curl

Stap 3: MariaDB installeren

Installeer MariaDB met het volgende commando:

sudo apt install mariadb-server

Beveilig de MariaDB-installatie:

sudo mysql_secure_installation

Stap 4: Maak een database voor Matomo

Log in op MariaDB:

sudo mysql -u root -p

Voer de volgende commando’s uit om een database en gebruiker aan te maken:

CREATE DATABASE matomo;
CREATE USER 'matomo_user'@'localhost' IDENTIFIED BY 'your_password';
GRANT ALL PRIVILEGES ON matomo.* TO 'matomo_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Stap 5: Matomo downloaden

Download Matomo van de officiële website:

wget https://builds.matomo.org/matomo-latest.zip

Pak de gedownloade bestanden uit:

unzip matomo-latest.zip
sudo mv matomo /var/www/html/

Stap 6: Configuratie van de webserver

Als je Apache gebruikt, maak dan een configuratiebestand voor Matomo:

sudo nano /etc/apache2/sites-available/matomo.conf

Voeg de volgende configuratie toe:

<VirtualHost *:80>
    DocumentRoot /var/www/html/matomo
    <Directory /var/www/html/matomo>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Require all granted
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/matomo_error.log
    CustomLog ${APACHE_LOG_DIR}/matomo_access.log combined
</VirtualHost>

Schakel de nieuwe site in en herstart de webserver:

sudo a2ensite matomo
sudo systemctl restart apache2

Stap 7: Voltooi de Matomo-installatie

Open je webbrowser en ga naar http://jouw-ip-adres/matomo. Volg de instructies op het scherm om de installatie te voltooien.

Conclusie

Gefeliciteerd! Je hebt Matomo Web Analytics succesvol geïnstalleerd op een server VPS met Debian 12. Begin nu met het analyseren van je websiteverkeer.

Windows VPS Deutschland

Windows VPS España

Windows VPS Nederland

Windows VPS Italia

Windows VPS Portugal

VPS Windows Italia

Windows VPS

Windows VPS

Windows VPS Sverige

Windows VPS Norge

Windows VPS

Windows VPS Türkiye

Windows RDS (Remote Desktop Services)

Windows VPS

Explore more

More on this topic

Netcloud24
Netcloud24
Cloud Infrastructure Expert · NetCloud24

Comments are closed.