← Back to catalog
Matomo

Matomo

v5.8.0

Privacy-focused web analytics platform, alternative to Google Analytics

Install

$curl -fsSL https://virtua.sh/i/matomo | bash
No server?Virtua.Cloud →

What's included

  • Matomo 5.8.0 (fully configured, ready to use)
  • Caddy web server with auto-HTTPS
  • PHP-FPM (tuned for performance)
  • MariaDB database
  • Automated report archiving via cron

After install

  • Login at the URL shown with superuser credentials
  • No setup wizard exposed to the internet
  • Add the tracking code to your website (shown in Matomo dashboard)
  • Custom domain: MATOMO_HOST=analytics.example.com

How the install works

Generated from the install script itself -- these are the exact phases it runs on your server.

  1. 1.Pre-flight checks
  2. 2.Opening firewall
  3. 3.Installing system dependencies
  4. 4.Installing Caddy
  5. 5.Installing PHP and dependencies
  6. 6.Setting up database
  7. 7.Installing Matomo
  8. 8.Starting PHP-FPM
  9. 9.Tuning PHP
  10. 10.Detecting HTTPS
  11. 11.Configuring Matomo
  12. 12.Setting up report archiving
  13. 13.Configuring Caddy

Supported Operating Systems

Ubuntu 24Ubuntu 25Debian 12Debian 13Rocky 9Rocky 10Alma 9Alma 10

Requirements

RAM
512MB minimum
Disk
5GB minimum

Configuration

VariableDefaultDescription
MATOMO_HOSTserver hostnameDomain name or IP. Domains get auto-HTTPS via Let's Encrypt.
MATOMO_ADMIN_USERadminMatomo superuser username
MATOMO_ADMIN_PASSrandom 24-charMatomo superuser password
MATOMO_ADMIN_EMAILadmin@hostnameMatomo superuser email
MATOMO_DB_PASSrandom 24-charMariaDB password
MATOMO_SITE_NAMEMy WebsiteName of the first tracked site
MATOMO_SITE_URLauto (protocol + host)URL of the first tracked site

Changelog

v1.0.12026-07-12
  • Rocky/Alma: fixed PHP-FPM socket and user mismatch (requests returned 502)
  • Reliable Caddy config load on apt systems (restart instead of enable --now)
v1.0.02026-04-02
  • Initial release with Caddy + PHP-FPM + MariaDB
  • CLI-based install (no web wizard exposed)
  • Auto-HTTPS via Let's Encrypt
  • Automated report archiving via cron
  • First tracked site pre-configured