Install the package to idea (http://piwik.org/docs/requirements/): sudoapt-getinstallphp5sudoapt-getinstallphp5-gd (graphics library, not required) sudoapt-getinstallmysql-to http://piwik.org/docs/installation-optimization/one-way idea requirement (http://piwik.org/docs/requirements) Installation package:Sudo apt-get install php5sudo apt-get install php5-gd (graphics library, not required) sudo apt-get install mysql-server
Sudo apt-get install php5-mysql (install PDO_MYSQL extension and MYSQLI extension) 2. install piwik (http://piwik.org/docs/installation/) download the latest piwik: Http://piwik.org/latest.zipDownload and unzip the command line: Wget http://piwik.org/latest.zip & unzip latest.zip Put the decompressed piwik folder to the www directory on the server (I use the apache server, and the website directory is/var/www /). Use a browser to enter Http: // yourwebsite/piwik/(yourwebsite is your website) Install piwik. Problems and Solutions are prompted during installation. 1. Welcome Page:
If any problem exists, follow the prompts to solve the problem. If no problem exists, click the next page. 2. Check the system:
Continue. 3. Set the database as needed: before clicking the next page, you must create your own database account and name as follows: ① enter root: mysql-uroot-p; ② create a piwik database: create database piwik; ③ create a piwik user. It can only connect to the database from localhost and connect to the piwik database: grant all on piwik. * to piwik @ localhost identified by '20140901 '. For example:
Click Next page:
4. Successful:
5. Administrator settings
6. Set website information
7. Display javascript and paste the code to the end of the page to be traced.Before.
Installed successfully:
8. Go to the Piwik System Management page. Complete.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.