Piwik and Alpine Linux

Piwik is a real time web analytics software program. It provides you with detailed reports on your website visitors: the search engines and keywords they used, the language they speak, your popular pages, and more.

  • Setting Up Lighttpd with FastCGI
  • Install some additional packages apk add php-mysql mysql mysql-client php-zlib php-pdo_mysql
  • Create a directory mkdir -p /usr/share/webapps/
  • Switch to that directory cd /usr/share/webapps/
  • Now get the latest release of Piwik wg et http://piwik.org/latest.zip
  • Unpack the archive in the current location unzip latest.zip && rm How\ to\ install\ Piwik.html latest.zip
  • Create a symlink that point to the webserver directory ln -s /usr/share/webapps/phpsysinfo/ /var/www/localhost/htdocs/phpsysinfo
  • Change permission of the directory chmod -R 777 /usr/share/webapps/
  • Restart lighttpd /etc/init.d/lighttpd restart
  • Mysql needs some configuration too
    • /usr/bin/mysql_install_db --user=mysql
    • /etc/init.d/mysql start && rc-update add mysql default
    • /usr/bin/mysqladmin -u root password 'password'
  • Now browse to http://IP-ADDRESS/piwik to complete the configuration of Piwik

Full article is available on the Alpine Linux wiki.

This entry was posted in Alpine Linux. Bookmark the permalink.

Leave a Reply

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

Time limit is exhausted. Please reload CAPTCHA.