注意:

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Package:Piwik

From Funtoo
Revision as of 11:35, December 2, 2014 by Threesixes (talk | contribs) (add media playlist)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Piwik

   Tip

We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.

Piwik is a web-server-stack web analytics web application.

As piwik is not officially in portage we pull in the piwik overlay:

root # layman -L
root # layman -a piwik
root # layman -s piwik

Or fetch the latest piwik from their website and insert it to /var/www/localhost/htdocs/piwik/

root # emerge piwik

Database setup:

   Note

change me passwords are insecure, change them!

root # mysql -u root -p
mysql> CREATE DATABASE IF NOT EXISTS `piwik` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`;
mysql> CREATE USER 'piwik'@'localhost' IDENTIFIED BY 'changeme';
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES ON `piwik`.* TO 'piwik'@'localhost' IDENTIFIED BY 'changeme';
mysql> \q

navigate to http://localhost/piwik/ to start the install.

  1. next
  2. next
  3. enter database information.... user: piwik, password: changeme, database: piwik, next
  4. next
  5. create a default administrator account. super user login: admin, password: changeme, password again: changeme, next
  6. set your websites name, domain name, time zone, and if it is running ecommerce or not..... next
  7. piwik gives you java script code to add to your page headers to track traffic. insert them into the pages you wish to track now...... next
  8. continue to piwik

Media