How to install Piwik 3.5.1 on Ubuntu 18.04
How to install Piwik 3.5.1 on Ubuntu 18.04
Piwik is an open source project with advanced privacy features that can be executed on your own server. Those who have a own website probably know what &ldquo web analytics&rdquo refers to. It&rsquo s a general term indicating the study of the impact of a website on its users. A business based on Internet services, like e-commerce, needs to find statistical information about people who visit the site, and this data is provided by web analytics software. According to W3Techs, the most used is Google Analytics. But, if you don&rsquo t want to use a remote-hosted service, you may want to give Piwik a chance.
Prerequisites
To install LAMP(Apache, MariaDB, php7)
In MariaDB (create database and user and give privileges to that user )
Php installation with required following modules
< ads 1>
add-apt-repository ppa:ondrej/php
apt-get update
apt-get install php7.0 php7.0-mysql php7.0-curl php7.0-json php7.0-cgi libapache2-mod-php7.0 php7.0-mcrypt php7.0-xmlrpc php7.0-gd php7.0-mbstring php7.0 php7.0-common php7.0-xmlrpc php7.0-soap php7.0-xml php7.0-intl php7.0-cli php7.0-ldap php7.0-zip php7.0-readline php7.0-imap php7.0-tidy php7.0-recode php7.0-sq php7.0-intl
Now we have to download a Moodle package using this following command
root@linuxhelp1:~# wget https://builds.matomo.org/piwik.zip
--2018-06-05 13:35:39-- https://builds.matomo.org/piwik.zip
Resolving builds.matomo.org (builds.matomo.org)... 185.31.40.177, 2a00:b6e0:1:200:177::1
Connecting to builds.matomo.org (builds.matomo.org)|185.31.40.177|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 18907738 (18M) \[application/zip\]
Saving to: &lsquo piwik.zip&rsquo
piwik.zip 100%\[==============================> \] 18.03M 1.07MB/s in 24s
2018-06-05 13:36:05 (775 KB/s) - &lsquo piwik.zip&rsquo saved \[18907738/18907738\]
the downloaded package is a tar file, so we need to extract the package now
root@linuxhelp1:~# unzip piwik.zip
Archive: piwik.zip
creating: piwik/
creating: piwik/tmp/
creating: piwik/tests/
inflating: piwik/tests/README.md
inflating: piwik/bower.json
.
.
inflating: piwik/js/README.md
inflating: piwik/js/piwik.js
inflating: piwik/js/LICENSE.txt
inflating: piwik/js/tracker.php
inflating: piwik/js/index.php
inflating: piwik/js/piwik.min.js
inflating: How to install Matomo.html
Then we have to move the extracted file into the following path
root@linuxhelp1:~# mv piwik /var/www/
And then switch to the following directory
root@linuxhelp1:~# cd /var/www/
Here to change the ownership and permission of the file
root@linuxhelp1:/var/www# chown -R www-data.www-data piwik
root@linuxhelp1:/var/www# chmod -R 775 piwik
Now we have to create a new virtualhost configuration to accessing the Moodle application
root@linuxhelp1:/var/www# vim /etc/apache2/sites-available/piwik.conf
< VirtualHost \*:80>
ServerName www.linuxhelp1.com
DocumentRoot /var/www/piwik/
< Directory /var/www/piwik/>
AllowOverride All
allow from all
< /Directory>
< /VirtualHost>
Now we have to enable the site access
root@linuxhelp1:/var/www# a2ensite piwik.conf
Enabling site piwik.
To activate the new configuration, you need to run:
systemctl reload apache2
Now we have to disable the default access
root@linuxhelp1:/var/www# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
systemctl reload apache2
Now we have to enable the rewrite module
root@linuxhelp1:/var/www# a2enmod rewrite Enabling module rewrite.
To activate the new configuration, you need to run:
systemctl restart apache2
Then we need to restart the apache2 service
root@linuxhelp1:/var/www# systemctl restart apache2
Now we have to open a browser and type the following URL of http://local IP (or ) domain name
Now we are in a Welcome page of Matomo
Here it will check it out the system configuration
Here we have to configure the Database detail
Here it will show a table creation
Here we have to configure the Admin user credential
Here we have to configure the site information
Here it will show a Tracking code of site
Here it will show a successful message of complete the installation
Now we are in a Login page of Piwik, and then here to login with help of using Piwik
Now we are getting to open a of Piwik CMS
Here it will show a version of Piwik
Comments ( 0 )
No comments available