Critical PHP2Shell: two unauthenticated RCE flaws in PHP itself. Fixes shipped on 21 Oct 2026. Check if you are affected →
← All news

Matomo 6.0.0 Requires PHP 8.1 and MySQL 8.0: Proxy trusted_hosts, Long log_visit Migration and Other Upgrade Gotchas

Matomo 6.0.0 (Nov 23, 2026), the first major release since 2023, raises minimums to PHP 8.1 and MySQL 8.0/MariaDB 10.6. It also tightens hostname checks behind proxies, runs a potentially slow ALTER TABLE on log_visit, and builds in bot filtering.

Matomo released 6.0.0 on November 23, 2026. It is the analytics platform's first major release since December 2023. For on-premise administrators, the important parts are the new minimum requirements and a database upgrade that can take a long time on large installations.

New minimum requirements

  • PHP 8.1 or newer. Installations on PHP 8.0 or older must upgrade PHP before updating to Matomo 6 (#21736, #24638).
  • MySQL 8.0 or MariaDB 10.6. Matomo now checks the actual database server type, tells MariaDB Enterprise and Community apart, and drops the experimental TiDB schema (#24858).
  • One Click Update now requires HTTPS. The option to retry the download over HTTP has been removed (#24877).

Upgrade gotchas

  • Proxy setups: Matomo now validates the effective hostname behind a proxy. If you use proxy_host_headers, add both the public hostname and the hostname used to reach Matomo to trusted_hosts before updating (#18675, #25206).
  • Long-running schema changes: the upgrade adds a consent column to log_visit with an ALTER TABLE (in preparation for consent tracking) and creates a new log_page_view_time table with one row per page view. Matomo says this can be the slowest part of the upgrade on large installations, so plan a maintenance window and take a database backup first.
  • API output changes: API responses and exports now include a …_percent_of_total column for each metric. Add percent_of_total=0 to requests if downstream scripts expect the old columns (#10739, #24983).
  • Removed: the SEO plugin and the SEO.getRank API method (#19665, #21780).
  • Spam filtering is now core: Tracking Spam Prevention is built in, enabled by default, and can't be uninstalled. It now also filters headless-browser traffic from AI tools (#25035, #25079). Expect visit counts to change.

Other notable changes

  • Per-token access levels, so an API token can be read-only instead of inheriting all of its owner's permissions (#24450).
  • More accurate Average Time on Page, measured per page view (#24788, #24841).
  • Percentage-of-total columns in scheduled reports (HTML, PDF, CSV, TSV).
  • Redrawn visitor and real-time maps using current geographic data.
  • New installations archive page URL and page title reports from a single flattened record for better performance on large sites. Updated installations keep the old behaviour.
  • A new core:rotate-encryption-keys console command with a dry-run mode (#25410).

Takeaway

If your Matomo server still runs PHP 7.x/8.0 or MySQL 5.7, Matomo 6 is blocked until the stack is upgraded. Stay on the 5.x line until then. Before you upgrade, check trusted_hosts on proxied installs, schedule the log_visit migration, and review any integrations that parse API output.

RescuePHP can help move legacy servers to supported PHP and database versions so applications like Matomo can keep getting updates.

Sources: Matomo 6.0.0 changelog, GitHub release 6.0.0