Matomo
v5.8.0
Privacy-focused web analytics platform, alternative to Google Analytics
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.Pre-flight checks
- 2.Opening firewall
- 3.Installing system dependencies
- 4.Installing Caddy
- 5.Installing PHP and dependencies
- 6.Setting up database
- 7.Installing Matomo
- 8.Starting PHP-FPM
- 9.Tuning PHP
- 10.Detecting HTTPS
- 11.Configuring Matomo
- 12.Setting up report archiving
- 13.Configuring Caddy
Supported Operating Systems
Ubuntu 24Ubuntu 25Debian 12Debian 13Rocky 9Rocky 10Alma 9Alma 10
Requirements
- RAM
- 512MB minimum
- Disk
- 5GB minimum
Configuration
| Variable | Default | Description |
|---|---|---|
| MATOMO_HOST | server hostname | Domain name or IP. Domains get auto-HTTPS via Let's Encrypt. |
| MATOMO_ADMIN_USER | admin | Matomo superuser username |
| MATOMO_ADMIN_PASS | random 24-char | Matomo superuser password |
| MATOMO_ADMIN_EMAIL | admin@hostname | Matomo superuser email |
| MATOMO_DB_PASS | random 24-char | MariaDB password |
| MATOMO_SITE_NAME | My Website | Name of the first tracked site |
| MATOMO_SITE_URL | auto (protocol + host) | URL of the first tracked site |
4 installsOfficial website →
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