Skip to content

Instantly share code, notes, and snippets.

@krishnasrihari
Created October 10, 2013 11:42
Show Gist options
  • Save krishnasrihari/6917057 to your computer and use it in GitHub Desktop.
Save krishnasrihari/6917057 to your computer and use it in GitHub Desktop.
Piwik installation
########### PHP5 install ######################
https://www.digitalocean.com/community/articles/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu
#apache
sudo apt-get update
sudo apt-get install apache2
#mysql
sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
#php
sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
#php extension
sudo apt-get install php5-gd
#New page and add below content
sudo nano /var/www/info.php
<?php
phpinfo();
?>
#Restart server
sudo service apache2 restart
#access server
http://localhost/info.php
################ Mysql user ################
http://piwik.org/docs/requirements/
############ Piwik installation ##########
http://piwik.org/docs/installation/
#Download piwik zip file
http://builds.piwik.org/latest.zip
#Unzip
unzip file and you will find piwik directory after unziped it
#Copy piwik installation file to apache
mkdir /var/www/analytics
cp -r piwik/ /var/www/analytics/
#Reload and restart apache
sudo service apache2 reload
sudo service apache2 restart
#Open piwik installation
http://localhost/analytics/piwik
If you get any issue add permission as for instruction on above url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment