Install Piwik 2.7 on CentOS 6.5


yum -y install mysql-server php php-mysql php-pdo php-gd php-mbstring php-dom php-xml httpd

vi /etc/php.ini
mbstring.func_overload = 0
extension=mysqli.so
extension=pdo.so
extension=pdo_mysql.so

service mysqld start; chkconfig mysqld on
service httpd start; chkconfig httpd on

mysql -uroot -p
CREATE DATABASE piwik;
CREATE USER 'piwik'@'localhost' IDENTIFIED BY 'password';
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON piwik.* TO 'piwik'@'localhost' WITH GRANT OPTION;
flush privileges;

unzip -x piwik.zip
mv piwik /var/www/html
chmod -R 755 /var/www/html/piwik
chown -R apache:apache /var/www/html/piwik

http://ip-address/piwik



你可能感兴趣的:(centos,piwik)