
Set the appropriate time zone and memory limit. Since we are using the PHP-FPM with NGINX to execute the PHP scripts, edit the PHP configuration file for the PHP-FPM.
Piwik nginx php fpm install#
Install the NGINX web server and PHP 7.2 along with the required PHP modules.Īpt -y install nginx php7.2 php7.2-curl php7.2-gd php7.2-cli php7.2-mysql php-xml php7.2-mbstring php7.2-fpm unzip apt -y install software-properties-common Add the Ubuntu PPA repository for PHP 7.2. PHP 7.2 is the latest available version of PHP and has a significant advantage over the older versions of PHP. We will install the Matomo app on a lightweight NGINX web server with PHP 7.2. Matomo can be installed on any PHP supported web server.
Piwik nginx php fpm update#
Once you are connected to your instance via SSH, run the following command to update the repository cache and the base system.Īpt update & apt -y upgrade & apt -y autoremove Install NGINX with PHP 7 This tutorial assumes that you have already created your Alibaba Cloud ECS instance and configured to point to your Ubuntu instance. You can follow the Quick Start Guide to create the ECS instance and find the steps to connect to your instance. A domain name that needs to be pointed towards your ECS instance.Firewall or Security group rules configured to allow ports 80, and 443.Alibaba Cloud ECS instance with Ubuntu 16.04 64-bit installed.In this article, we will be installing Matomo (Piwik) on an Alibaba Cloud Elastic Compute Service (ECS) instance to perform web and mobile analytics. Matomo is a very popular application and more than a million websites are currently using Matomo to get their analytics. Matomo also has plugins to easily set up the tracking for nearly all popular CMS, blogs or e-commerce platforms.

Setting up tracking on a website is very easy, you just need to add a JavaScript code on every page you want to track. There is no data or user limit on a self-hosted Matomo instance. It is capable of providing a comprehensive report of your website and the visitors, including search engine keywords, referrer, visitor country and language, device and browser used, searches within the site, liked pages, time spent on pages, and conversions. Being a self-hosted application, it provides full ownership of the analytical data to the users. It is a self-hosted and open-source alternative to the Google Analytics, providing nearly similar features.

Matomo is an open-source and free web and mobile analytics platform, formerly known as Piwik. Tech Share is Alibaba Cloud's incentive program to encourage the sharing of technical knowledge and best practices within the cloud community. By Liptan Biswas, Alibaba Cloud Tech Share Author.
