Matomo 5

One-Click Installation

Matomo 5 Initialization:

Overview:

This guide will walk you through initializing Matomo 5 on your AWS instance in just one click. The setup process is streamlined using our custom script, designed for ease of use and efficiency. Before starting the script, ensure the minimum requirement is met.

Pro Tip: We recommend associating an AWS Elastic IP with your instance before running the setup. This prevents your IP address from changing when the instance is stopped and restarted.

Please note: there is no browser setup wizard in this build. Matomo, your administrator account and your first site are all created while the script runs. Guides written for earlier builds describe an eight step wizard covering the system check, database details, superuser form and website form. None of those screens appear any more.

 

Step 1: Access Your AWS Instance

1. Launch Your AWS EC2 Instance:

  • Choose your desired AWS EC2 instance type. (Recommended: t3a.small / t3.small)
  • Open ports 22, 80 and 443 in the security group.
  • Once the instance is running, connect to it via SSH.

2. Connect to the Instance:

  • Open your terminal (Mac/Linux) or use an SSH client (e.g., PuTTY for Windows).
  • Run the following SSH command:
ssh ec2-user@<your-aws-public-ip>

3. Run the Initialization Script:

  • To initiate the installation, run the following command:
/usr/local/bin/egl_init.sh.x
  • Note: This script automates the entire installation process. While it runs, ensure your terminal remains active, and do not close the session. It typically takes under a minute: the application is downloaded, then Matomo creates its database, your administrator account and your first site before the site is served. The script generates new credentials for this instance. There is no need to run sudo or update the system first.

Step 2: Instance Set Up and Installation

1. Completion Confirmation:

  • Once the installation is finished, you will see a summary on the screen that includes your administrator login.
  • Write the password down. It is generated for this instance and is not stored anywhere you can read it back.

Your Matomo is installed and ready to use.

Your analytics: http://<your-public-ip>/

++++++++++++ Administrator login +++++++++++++++++++
Username: mtmadmin
Password: <generated for your instance>

WRITE THIS PASSWORD DOWN. It is generated for this instance
and is not stored anywhere you can read it back.

System Check shows a shell_exec warning. It is turned off on
purpose, so a compromised web page cannot run commands on your
server. Reports are still processed every hour. The Forced SSL
warning clears when you add your own domain.

2. Access the Web Interface:

  • Open your web browser and navigate to http://<your-public-ip> (port 80):
http://<your-public-ip>
  • You will be greeted by the sign-in screen. There is no setup wizard, because Matomo is installed for you during initialization.

3. Sign in:

  • Sign in with mtmadmin and the password shown in the summary.
  • You will arrive at your Matomo dashboard. It is empty until your site starts sending data, which is the next step.
  • Change the administrator password and set a real email address under Administration, the cog icon, then Personal, Settings. The account is created with the placeholder address [email protected], and Matomo uses the address for password resets and emailed reports.

 

Step 3: Start Measuring Your Site

  • A site named My website has already been created so that Matomo has something to show you.
  • Open Administration, the cog icon, then Websites, Manage. Rename it to your own site and set its URL.
  • Go to Administration, Websites, Tracking Code and copy the JavaScript snippet into every page of your site, just before the closing </head> tag.
  • Visit your site once, then return to Matomo. Your first visit appears in Visitors, Visits Log within a minute or two.

Please note: if your website is served over HTTPS, port 443 must be open on this instance before the tracking snippet can reach it. A browser will not load a plain HTTP tracker from a secure page.

Step 4: Add Your Own Domain and SSL

  • Your Matomo is served over plain HTTP until you associate a domain. To use your own domain name with a free SSL certificate, run:
sudo /usr/local/bin/egl-setup-domain.sh.x
  • Full instructions are in Associating Your Domain. From then on Matomo is served over HTTPS only, and your first site’s address is updated to the new domain.

 

Important Notes:

  • Scheduled report processing is already running.
    It runs in the background every hour and is what keeps your dashboard fast as traffic grows. There is nothing to start and no file to edit. Guides written for earlier builds tell you to edit a cron file on the server; that step no longer applies.
  • Outgoing Email:
    This instance does not send email until you configure an outgoing mail server under Administration, System, General settings, in the Email server settings section. This image does not include a local mail server. Until then, password resets and scheduled report emails will not be delivered.
  • Mail Sending Blockage:
    AWS blocks outbound port 25 by default, so use port 587 or 465 with your mail provider. AWS may also have email-sending restrictions in place on new accounts; submit a request to AWS to lift them before relying on email.
  • Visitor locations are ready from the first visit.
    A city-level location database (DB-IP Lite) is downloaded in the background when Matomo is installed and refreshed every month, so your reports show each visitor’s country, region and city. You can see or change the setting under Administration, System, Geolocation.
  • System Check shows one warning, on purpose.
    Under Administration, Diagnostic, System Check, Matomo warns that shell_exec is disabled. It is turned off deliberately, so that a compromised web page cannot run commands on your server. Your reports are still processed every hour. The Forced SSL Connection warning you may also see before adding a domain clears when you add your own domain.
  • Do not run the initialization script a second time
    on an instance where Matomo is already installed. Each run generates new database passwords, and an existing database keeps the ones it was created with, so the two no longer match. If this happens, contact [email protected] rather than running it again.

 

CONTENTS