Install Mamoto (piwik) on AWS EC2 instance

In this article I will be going to explain how to install Mamoto (piwik) on AWS EC2 instance. Mamoto formerly known as Piwik is a free and opensource web analytics software that runs on top of php/mysql. This software tracks the online visits from customer. You can add any number of sites to mamoto analytics and can see reportings on dashboard. It has a decent UI, modern and elegant look with full api support. Mamoto is released under the GPL v3 or later license, its already been used on more than 100000+ sites. There isn’t any doubt in saying it as an alternative to google analytics.

How to Install Mamoto or Piwik

Please follow step by step tutorial below to install mamoto on an AWS EC2 server. I assume you already have working knowledge on how to connect an AWS EC2 instance through ssh. Incase you don’t know you can refer following page – How to Connect to AWS instance. Before proceeding for installation make sure you have webserver (apache, nginx), php and mysql installed.


Connect to your AWS EC2 instance through putty or ssh cli. Make sure to escalate to root user and run below command

$ wget && unzip


Create a virtual host entry pointing to piwik directory to configure mamoto on a domain or subdomain.

    DocumentRoot /var/www/html/piwik
    ErrorLog /var/log/apache2/
    CustomLog /var/log/apache2/ combined
    LogLevel warn


Open your domain in web browser that you configured i.e If everything goes well, you will see a welcome screen with further instructions on installation, if any errors or requirements not satisfied then it will give you error. There are 9 steps that you can see on welcome screen. Click next to move to next screen put in information and you can move forward with next screen if no errors are there.

Mamoto welcome screen

  1. The Welcome Screen – It shows information about software.
  2. System Check – It check whether all the requirement dependencies are met for software installation or not.
  3. Database Setup: It asks for database info where the software will store data.
  4. Database Check – It verifies whether database credentials are correct or not.
  5. Creating the tables – In this step database tables will be created.
  6. General Setup – In this step you will be creating user like super user etc, who will use the system.
  7. Setup a website – In this step you add website info that needs to be tracked.
  8. Javascript Tracking Code – In this step you get a javascript tracking code that you will be placing on website like google analytics tracking code.
  9. Congratulations – This screen shows congratulation message.

If you have installed the tracking code properly, you may start seeing tracking activity on dashboard once traffic starts coming on site. Please see below images to know how the dashboard looks like-

Please follow and like us:

Add a Comment

Your email address will not be published. Required fields are marked *