Install Piwik on CentOS 5

From CSLabsWiki
Revision as of 14:51, 28 March 2011 by Deanejm (talk | contribs) (Created Piwik installation page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This page summarizes how to perform a basic installation of Piwik on CentOS 5. This tutorial assumes you have root/sudo access.

Note: under construction, will finish soon! --Deanejm 15:51, 28 March 2011 (EDT)

Unpacking the Files

  • Navigate to /var/www
  • Download and unpack the files
  • Give Piwik Permission to Access its Folder
    • chmod -R g+w piwik/
    • chgrp -R apache piwik/
  • Install the following packages: php-json, php-dom, php-gd, and php-mbstring
  • Restart httpd
    • /etc/init.d/httpd restart

Configure MySQL for Piwik Installation

  • Create the piwik database, user, and allow the piwik user to access the database
    • CREATE DATABASE piwik;
    • CREATE USER 'piwik'@'localhost' IDENTIFIED BY 'insert password here';
    • GRANT ALL ON piwik.* TO 'piwik'@'localhost';
  • Exit MySQL