Skip to content

Hoe Matomo Web Analytics te installeren op Debian 12

Netcloud24
Cloud Infrastructure Expert
NetCloud24 Expert Guides Open the dedicated video page

Video transcript: NetCloud24 Expert Guides. Practical knowledge for a reliable cloud. Cloud and VPS expertise, security, performance, and step-by-step tutorials. Learn, deploy, and keep building with NetCloud24.

 

 

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:

Visual overview of Hoe Matomo Web Analytics te installeren op Debian 12
Visual overview: Hoe Matomo Web Analytics te installeren op Debian 12
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

Key topics covered in Hoe Matomo Web Analytics te installeren op Debian 12
Key topics covered in this NetCloud24 guide.

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

Practical checklist for Hoe Matomo Web Analytics te installeren op Debian 12
Practical checklist for applying the guidance in this article.

Windows RDS (Remote Desktop Services)

Windows VPS

Hoe Matomo Web Analytics te installeren op Debian 12
Hoe Matomo Web Analytics te installeren op Debian 12
Explore more

More on this topic

Netcloud24
Netcloud24
Cloud Infrastructure Expert · NetCloud24

Comments are closed.