Difference between revisions of "Piwik"

From wiki
(Created page with "== Install == === Add Repository === Piwik is not present in Debian repositories. However they provide their own repository. You can add it using<syntaxhighlight lang="consol...")
 
(Add PHP settings)
Line 1: Line 1:
 +
== Prerequisite ==
 +
* [[Nginx]]
 +
* [[Let’s Encrypt]]
 +
* [[PHP]]
 +
* [[MariaDB]]
 +
 
== Install ==
 
== Install ==
  
Line 10: Line 16:
 
$ echo "deb https://debian.piwik.org/ piwik main" | sudo tee /etc/apt/sources.list.d/piwik.list > /dev/null
 
$ echo "deb https://debian.piwik.org/ piwik main" | sudo tee /etc/apt/sources.list.d/piwik.list > /dev/null
 
$ sudo apt update
 
$ sudo apt update
 +
</syntaxhighlight>
 +
 +
=== Configure PHP ===
 +
Edit file <code>[[PHP#Common_configuration|/etc/php5/mods-available/local-common.ini]]</code> and add <code>/usr/share/piwik/:/etc/piwik/:/var/lib/piwik/</code> to the <code>open_basedir</code> setting.
 +
 +
Reload PHP:
 +
<syntaxhighlight lang="console">
 +
$ sudo service php5-fpm reload
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Revision as of 07:01, 9 September 2016

Prerequisite

Install

Add Repository

Piwik is not present in Debian repositories. However they provide their own repository. You can add it using

$ wget https://debian.piwik.org/repository.gpg -qO piwik-repository.gpg
$ sha256sum --binary piwik-repository.gpg
0d7c880f6c838bba2d02817dcacfc97fc538b1ebcdb41c3106595265c0d371d4 *piwik-repository.gpg
$ cat piwik-repository.gpg | sudo apt-key add -
OK
$ echo "deb https://debian.piwik.org/ piwik main" | sudo tee /etc/apt/sources.list.d/piwik.list > /dev/null
$ sudo apt update

Configure PHP

Edit file /etc/php5/mods-available/local-common.ini and add /usr/share/piwik/:/etc/piwik/:/var/lib/piwik/ to the open_basedir setting.

Reload PHP:

$ sudo service php5-fpm reload

Install Package

$ sudo apt install piwik geoip-database/jessie-backports geoip-database-extra/jessie-backports