CentOS 5
Sponsored Link

Web Site Access Analyzer - Piwik2011/06/25

 
Install Web Site Access Analyzer "Piwik".
Piwik is different from AWStats and others, it analyzes a Web site, so it need to add Java Script codes on a web site you'd like to analyze accesses. PHP and MySQL is needed to install.
[1] Install Piwik
[root@www ~]#
yum -y install php-pdo php-gd
[root@www ~]#
vi /etc/php.ini
# line 314: increase memory limit

memory_limit =
512M
[root@www ~]#
cd /var/www/html

[root@www html]#
wget http://piwik.org/latest.zip

[root@www html]#
unzip latest.zip

[root@www html]#
chmod 777 ./piwik/tmp

[root@www html]#
chmod 777 ./piwik/config

[root@www html]#
mysql -u root -p
# connect to MySQL

Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.0.77 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

# create "piwik# database ( set any password for 'password' )

mysql>
create database piwik character set utf8 collate utf8_bin;

Query OK, 1 row affected (0.00 sec)
mysql>
grant all privileges on piwik.* to piwik@'localhost' identified by 'password';

Query OK, 0 rows affected (0.00 sec)
mysql>
flush privileges;

Query OK, 0 rows affected (0.00 sec)
mysql>
exit

Bye
[2] Access to "http://(server's hostname or IP address)/piwik/" and Click "Next".
[3] Confirm system requirements. If it's OK all, Go next.
[4] Input Database's infomation.
[5] A tabale is created normally if Database's infomation is correct.
[6] Set admin user. Input any name and password you like. For email address field, input real email address on the internet.
[7] Input web site's information you'd like to analyze accesses.
[8] Java Script code is generated like follows. You need to add it on your web site.
[9] Complete to set. Click "continue" to proceed.
[10] This is login screen. Authenticate with a user you set.
[11] This is main screen. Though no data is shown below, looks and feelings are good to use.
Matched Content