Post

Installing Matomo

Installing Matomo

Installing Matomo On-Premise

I’ve installed MariaDB on another server, so I’m not installing the mysql-server package

1
sudo apt-get install php php-curl php-gd php-cli php-mysql php-xml php-mbstring

Get Matomo installation files

1
2
cd /var/www/html
sudo wget https://builds.matomo.org/matomo.zip

Install unzip

1
sudo apt install unzip

Unzip matomo.zip file

1
sudo unzip matomo.zip

Assigning privileges

1
sudo chown -R www-data:www-data /var/www/html/matomo

MariaDB database

Create matomo database

1
create database matomo ;

Select matomo database

1
use matomo ;

Create the matomo application user on the database

1
create user matom@'hostname.local' identified by 'securePassword';

Assign the required privileges

1
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON `matomo`.* TO `matom`@`hostname.local` ;

Open your web browser and navigate to the URL to which you uploaded Matomo.

Sources

Photo by Choong Deng Xiang on Unsplash

Installing Matomo On-Premise https://matomo.org/faq/on-premise/installing-matomo/

Want to thank me?

🤝 Buy me a coffee https://buymeacoffee.com/dbplatz

This post is licensed under CC BY 4.0 by the author.