Skip to content

Instantly share code, notes, and snippets.

@krishnasrihari
Created October 10, 2013 11:42

Revisions

  1. krishnasrihari created this gist Oct 10, 2013.
    54 changes: 54 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,54 @@
    ########### 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