Matomo requirements for self-hosting
This guide lists Matomo's server requirements, archiving cron, updates, backups and CNIL setup from matomo.org, and says when a managed tool fits better.
Short answer. Matomo 6 needs PHP 8.1 or newer and MySQL 8.0 or newer, or MariaDB 10.6 or newer, behind Apache, Nginx or a similar web server. Matomo 4.16 and 5 run on PHP 8 with MySQL 5.5 or MariaDB. Beyond the install, plan for an hourly archiving cron, updates, backups and a geolocation database.
Every fact about Matomo on this page comes from matomo.org and was checked in December 2026. Matomo changes; if you read this much later, their pages are the reference, not ours.
What self-hosting Matomo really involves
PHP and database versions
According to Matomo's requirements page, as checked on 1 December 2026:
| Matomo version | PHP | Database |
|---|---|---|
| 6.0.0 and later | 8.1 or newer | MySQL 8.0+ or MariaDB 10.6+ |
| 4.16 and 5 | 8 | MySQL 5.5+ or MariaDB |
Matomo recommends the latest PHP 8.x release. PHP needs pdo and pdo_mysql, or mysqli; curl, gd, xml, mbstring and the CLI are recommended. The database user must be able to create and alter tables, including CREATE TEMPORARY TABLES, LOCK TABLES and FILE. Shared hosting that withholds those privileges is the first thing to rule out.
Browser-triggered archiving versus cron
Matomo does not compute reports when it records a visit. It builds them in a separate step called archiving. Out of the box, that step runs when someone opens a report, which Matomo itself describes as slow and a poor experience. Its auto-archiving guide recommends a cron as soon as a site gets more than a few hundred visits a day, run every hour:
5 * * * * /usr/bin/php /path/to/matomo/console core:archive --url=http://example.org/matomo/ > /dev/null
Once the cron works, turn off browser-triggered archiving. The same guide suggests a PHP memory_limit of 512M for smaller sites and mentions 8G as a common size for medium to large instances.
Updates and plugins
Matomo offers a one-click update from the interface, provided the Matomo folder is writable. On busy sites, it strongly recommends running the database migration from the command line instead. Back up config/config.ini.php before every update: it holds your database credentials and the list of enabled plugins. Each plugin you install, free or premium, is one more piece to keep compatible with the next core release.
Backups
Matomo's backup FAQ is about the database: a mysqldump with --single-transaction, compressed and copied to another server. For large databases or heavy tracking it points to Percona XtraBackup, ideally run on a replica. A backup you have never restored is a hope, not a backup: test the restore on a separate instance, with automated emails turned off.
The geolocation database
Country, region and city reports depend on a geolocation database. Matomo recommends a city database from DB-IP or MaxMind GeoIP2, downloadable from the geolocation settings, and updated at least once a month. Recent versions include an auto-updater, which you still need to check is running.
Time and maintenance to expect
The install itself is quick. The cost is what comes after, and it recurs:
- following Matomo and PHP security releases, then applying them;
- watching the archiving cron, which fails silently: reports simply stop moving;
- adjusting PHP memory as traffic grows;
- running backups and testing a restore now and then;
- checking plugins before each major version.
None of this is hard for someone who already runs PHP servers. It is a real cost for a team that does not, and it lands on whoever is on call the day the cron breaks.
Configuring Matomo for the CNIL exemption
In France, the CNIL lets some audience measurement run without consent, under strict conditions. Matomo publishes a guide to the CNIL consent exemption. As described there on 1 December 2026, a superuser goes to Administration > Privacy > Compliance, chooses one site or all sites, and can enforce every setting at once. Among other things, that configuration:
- masks 3 bytes of the IP address (at least 2 are required);
- disables User ID, the Visits Log and visitor profiles;
- keeps only major browser and OS versions, and only the referrer host or type;
- masks campaign parameters and rounds small counts in segmented reports;
- disables heatmaps, session recordings and A/B testing (enabling it permanently deletes existing experiment data);
- caps tracker cookie lifetimes at 13 months, not extended on new visits, and limits raw data retention.
Two items stay manual: checking that third-party cookies are off, and adding a visible opt-out, for example in your privacy policy. The configuration is yours to keep. The CNIL certifies no tool; it is your setup that falls inside the exemption or not.
When self-hosting Matomo is the right choice
Full control of the infrastructure. Data stays on your server, in the country you choose. For some public bodies and regulated sectors, that settles the question.
Feature coverage. Funnels, heatmaps, A/B testing, ecommerce, segments, a tag manager, plus a plugin marketplace. A lighter tool will not cover that ground.
Raw data. Every visit sits in your own database. You can query it, join it with your data, keep it as long as your policy allows.
No licence cost for the core. The Community edition is free, with no limit on users. Premium plugins are paid; their pricing page is the reference.
If someone on your team already runs PHP servers and wants these things, self-hosting Matomo is a sound decision.
When a managed service without identifying cookies fits better
When the question is "how many people read this page, and where did they come from", and nobody wants to own a cron, a database and a monthly update cycle. Or when the analytics server would be the only PHP server you maintain. In those cases the requirements above are pure overhead.
How Quiet Metrics differs
Quiet Metrics is a hosted service: there is no instance to install, no archiving to schedule, nothing to update or back up on your side. Measurement data is hosted in France. It sets no identifying or tracking cookies; the only things it can write on a visitor's device are a visit continuity cookie holding 1 for everyone, expiring after ten minutes without browsing, and an opt-out marker the visitor sets themselves. The method is on how we count.
It measures from the browser with a script or from your server with Composer packages for Laravel, Symfony and plain PHP.
The trade-off is real. We do not offer self-hosting, funnels, heatmaps or A/B testing, and we do not import Matomo history. Whether you need consent remains your decision as the publisher: the absence of identifying cookies does not guarantee an exemption by itself.
The detailed comparison is on our Matomo alternative page, and Matomo vs Google Analytics covers the other common choice.
Sources
Checked on 1 December 2026 on matomo.org: requirements, auto-archiving, updates, backup and restore, geolocation databases, CNIL consent exemption, pricing. Matomo is a trademark of its publisher; this guide is independent.
Try it without a server
If you would rather skip the cron and the upgrades, start on the free plan and run Quiet Metrics next to Matomo for a few weeks. Plans and the conditions of the trial are on the pricing page.