Overview
This AMI runs a self-hosted web analytics suite with MariaDB 11.8 on Ubuntu 24.04 LTS. It measures visits to your websites and apps with reports on pages, referrers, goals, e-commerce, events, devices and real-time visitors, with a tracking script, a tracking API, user and permission management and privacy settings such as IP anonymisation. Your data stays on your own server. The upstream vendor image (Apache variant), release 5.14.2, is pinned together with MariaDB 11.8.9 and baked into the AMI, so first start does not depend on a registry.
What Perimattic adds
Installation completed for you: a fresh install lets the first visitor run the installation wizard and become the super user. During first-login setup this AMI completes the wizard itself, on the loopback port, before the site is published: database, tables, a super user (user name admin, your email address and a random 24-character password generated on your server) and a sample website. It then switches the installer off, so the wizard is gone, and checks that the password works, that a wrong password is refused, that anonymous API calls are refused and that exactly one real account exists. The database passwords are generated per instance; there are no default or shared credentials in the image.
Configured for production behind Apache: trusted_hosts is your domain, force_ssl is on, visitor addresses come from Apache's X-Forwarded-For, IP anonymisation is on, and browser-triggered archiving is replaced by a cron job on the server that runs the archiver every 15 minutes (the host's cron service is required and is checked by the tests). Internet features are switched off (enable_internet_features = 0, enable_auto_update = 0), so the plugin marketplace, update checks and downloads from the vendor's servers are off, and the GeoIP database is not downloaded.
HTTPS: Apache is configured as a reverse proxy and a free Let's Encrypt certificate is requested for your domain with certbot. The application listens only on the loopback interface and MariaDB is reachable only inside the Docker network. The configuration file holding the database password is readable only by its owner and group.
Patched base: Ubuntu 24.04 LTS built through an automated EC2 Image Builder pipeline, with security updates applied at build time.
What you should know
The tracker is public by design: the tracking endpoint and the tracking script must be reachable by your visitors' browsers, so they are open and accept page views for any site ID. Reports and the API need a login or a token.
The vendor's commercial premium plugins are not part of this image, and the plugin marketplace is switched off, so they cannot be installed from it. The built-in features are available.
No mail server is configured, so reports, invitations and password-reset emails cannot be sent until you add SMTP settings under Administration (use port 587 or 465: Amazon EC2 blocks outbound port 25). Without a GeoIP database visitor country and city are not resolved until you add one in the geolocation settings.
The suite is moderate: about 125 to 290 MB of memory for the application and about 140 to 150 MB for MariaDB in our tests, so a t3.small (2 GB) is the recommended starting size for small sites; busy sites need more.
Licence and attribution
Built on the open-source Matomo (GPL-3.0-or-later; the upstream repository lists a few separately licensed libraries, for example the JavaScript tracker under the BSD licence). The image is unmodified and the source is at github.com/matomo-org/matomo. Not affiliated with, endorsed by, or sponsored by InnoCraft Ltd or the Matomo project; Matomo is a trademark of its owner. MariaDB Server is released under GPL-2.0.
Getting Started Launch the AMI and open ports 22, 80 and 443 in the security group SSH in and answer the setup prompts (domain and admin email) Open https://your-domain and sign in as admin with the password printed at the end of setup Add your website and paste the tracking code into your pages
A domain name with an A record pointing at the instance is required, because the site is served over HTTPS.
This AMI is built and supported by Perimattic.
Book a free setup consultation at https://cal.com/gaurav-pareek-perimattic/marketplace-setup-consultations or email us at aws-support@perimattic.com .
Support Managed and supported by Perimattic, a cloud infrastructure company with 13+ years of experience serving global clients. We offer free setup assistance, custom integrations, infrastructure consulting, and 24/7 support.
Highlights
- Self-hosted web analytics suite 5.14.2 (GPL-3.0) with MariaDB 11.8.9, pinned and pre-installed. Premium plugins are not included; the plugin marketplace is off.
- Secure first login: the installation wizard is completed for you with a random 24-character super user password before the site is published, then switched off; anonymous API calls refused; HTTPS through Apache and Let's Encrypt.
- Built on patched Ubuntu 24.04 LTS and supported by Perimattic: free setup assistance at aws-support@perimattic.com.
Details
Introducing multi-product solutions
You can now purchase comprehensive solutions tailored to use cases and industries.
Features and programs
Financing for AWS Marketplace purchases
Pricing
- ...
Dimension | Cost/hour |
|---|---|
t3.small Recommended | $0.03 |
t3.micro | $0.03 |
c3.2xlarge | $0.03 |
c3.4xlarge | $0.03 |
c3.8xlarge | $0.03 |
c3.large | $0.03 |
c3.xlarge | $0.03 |
c4.2xlarge | $0.03 |
c4.4xlarge | $0.03 |
c4.8xlarge | $0.03 |
Vendor refund policy
For any questions or concerns, please contact: Perimattic.com Email: aws-support@perimattic.com
How can we make this page better?
Legal
Vendor terms and conditions
Content disclaimer
Delivery details
64-bit (x86) Amazon Machine Image (AMI)
Amazon Machine Image (AMI)
An AMI is a virtual image that provides the information required to launch an instance. Amazon EC2 (Elastic Compute Cloud) instances are virtual servers on which you can run your applications and workloads, offering varying combinations of CPU, memory, storage, and networking resources. You can launch as many instances from as many different AMIs as you need.
Version release notes
Initial release.
- Application: Web Analytics Suite 5.14.2 (container image pinned, baked into the AMI).
- Base: Ubuntu 24.04 LTS, fully patched at build time, built by an automated EC2 Image Builder pipeline.
- TLS: Apache reverse proxy with a Let's Encrypt certificate requested by certbot at first login.
- Credentials are generated on the instance at first login; none are present in the image.
- The installation wizard is completed during first-login setup, before the site is published: a random 24-character super user password is generated on the instance, the installer is switched off, and setup verifies that the password works, that a wrong password and anonymous API calls are refused and that exactly one real account exists.
- Application: upstream web analytics suite 5.14.2 (GPL-3.0-or-later, unmodified official image, Apache variant) with MariaDB 11.8.9 (both pinned). trusted_hosts, force_ssl and IP anonymisation are set; internet features and automatic updates are off; archiving runs by host cron every 15 minutes. See the product description for the licence and attribution notice.
- The vendor's premium plugins are not included and the plugin marketplace is off. No SMTP and no GeoIP database are configured. The tracking endpoint is public by design.
- Database: reachable only inside the Docker network.
Additional details
Usage instructions
-
Launch an Instance
From AWS Marketplace, click Continue to Subscribe and then Continue to Configuration to launch the AMI.
-
Choose the Recommended Instance Type
t3.small (2 GB of memory) is the recommended starting size for small sites: the application used about 125 to 290 MB and MariaDB about 140 to 150 MB in our tests. Choose t3.medium or larger for busy sites.
-
Configure Security Group
Allow inbound traffic on the following ports:
- 22 (SSH) - terminal access for setup
- 80 (HTTP) - needed to validate your domain for the TLS certificate
- 443 (HTTPS) - access to Web Analytics Suite
-
Point a domain at the instance
Create a DNS A record (for example analytics.example.com) pointing to the instance's public IP before you log in.
-
Connect to the Instance
ssh -i <your-key.pem> ubuntu@<public-ip>
-
First-Login Setup
The first SSH login runs a guided setup:
- Prompts for your domain and admin email and checks the DNS A record
- Generates a random 24-character super user password and two database passwords on your server
- Starts MariaDB and the application and completes the installation wizard (database, tables, super user, sample website) on the loopback port
- Switches the installer off, sets trusted hosts, HTTPS and archiving by cron, and checks that the password works, a wrong one is refused and anonymous API calls are refused
- Configures Apache as an HTTPS reverse proxy and requests a Let's Encrypt certificate
- Prints the URL and the super user credentials; they are also stored in /opt/app/access.txt (root only)
If a step fails, fix the problem shown and log in again: the setup resumes where it stopped.
-
Access Web Analytics Suite
Open https://<your-domain> and sign in as admin with the generated password (view it again with: sudo cat /opt/app/access.txt). Add your website under Administration > Websites and paste the tracking code.
-
Credentials
Generated on your server, never shared between customers. View them again with:
sudo cat /opt/app/access.txt
-
Manage the Services
cd /opt/app sudo docker compose ps sudo docker compose restart
Reports are in the MariaDB database in /opt/app/mariadb and the application's files and configuration in /opt/app/html: back up all of /opt/app or snapshot the volume before upgrades. Reports are archived by a cron job (in /etc/cron.d) that needs the host's cron service. No email can be sent until you add SMTP settings; EC2 blocks outbound port 25, so use 587 or 465. The tracking endpoint and script are public by design. Premium plugins are not included. This listing relies on factual use of the upstream name in the attribution notice only; the product is not affiliated with its vendor.
Thank you for subscribing.
Need Support or Customization? Perimattic's team can help with setup issues, custom features and integrations:
Email us: aws-support@perimattic.com WhatsApp: +91-92142 66896 Learn more: <www.perimattic.com >
We offer free setup assistance, custom development and integrations, and infrastructure consulting.
Resources
Vendor resources
Support
Vendor support
Support by Perimattic
Perimattic provides 24/7 support for all AWS Marketplace products. Our team has 13+ years of cloud infrastructure expertise serving global clients.
Contact Channels: Email: aws-support@perimattic.com WhatsApp: +91-92142 66896 Website: <www.perimattic.com >
What We Help With: Initial setup and configuration assistance (free) Troubleshooting connectivity, performance, and backup issues Custom development and integrations Infrastructure consulting and architecture review Migration planning from other solutions Automation solutions and scaling guidance
Instance Sizing Guidance: t2.medium or t3.medium: Development environments, small applications m5.large: Production workloads with moderate traffic m5.xlarge: High-traffic production deployments and larger datasets
For workload-specific sizing recommendations, contact our team for a free consultation.
Refunds and Issues: If you experience any issues or need to request a refund, contact us at aws-support@perimattic.com and we will respond promptly.
AWS infrastructure support
AWS Support is a one-on-one, fast-response support channel that is staffed 24x7x365 with experienced and technical support engineers. The service helps customers of all sizes and technical abilities to successfully utilize the products and features provided by Amazon Web Services.