yum -y install mysql-server php php-mysql php-pdo php-gd php-mbstring php-dom php-xml httpd
vi /etc/php.inimbstring.func_overload = 0extension=mysqli.soextension=pdo.soextension=pdo_mysql.soservice mysqld start; chkconfig mysqld onservice httpd start; chkconfig httpd onmysql -uroot -pCREATE 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.zipmv piwik /var/www/htmlchmod -R 755 /var/www/html/piwikchown -R apache:apache /var/www/html/piwikhttp://ip-address/piwik