Changes between Initial Version and Version 1 of Piwik


Ignore:
Timestamp:
May 1, 2015, 12:39:37 PM (3 years ago)
Author:
chris
Comment:

Page created and PiwikServer#Upgrades copied from ticket:4

Legend:

Unmodified
Added
Removed
Modified
  • Piwik

    v1 v1  
     1The [https://www.piwik.org/ Piwik] server at https://stats.crin.org/ was migrated from web2.crin.org to crin1.crin.org on ticket:4.
     2
     3== Upgrades ==
     4
     5These are the steps you need to follow to upgrade Piwik on the server using the command line (it is also possible to update using the web interface but this is not recommended for sites with a lot of data).
     6
     7Set Piwik not to record stats while we are upgrading:
     8
     9{{{
     10sudo -i
     11cd /var/www
     12vi piwik/config/config.ini.php
     13}}}
     14
     15Set this variable:
     16
     17{{{
     18[Tracker]
     19record_statistics = 0
     20}}}
     21
     22Download and verify the new version:
     23
     24{{{
     25export PIWIK="2.13.0"
     26wget "https://builds.piwik.org/piwik-$PIWIK.tar.gz"
     27wget "https://builds.piwik.org/piwik-$PIWIK.tar.gz.asc"
     28gpg --verify piwik-$PIWIK.tar.gz.asc
     29}}}
     30
     31Backup the config file:
     32
     33{{{
     34cp piwik/config/config.ini.php .
     35}}}
     36
     37Extract the new version, set the ownerships, copy back the config file and run the updater:
     38
     39{{{
     40tar -zxvf piwik-$PIWIK.tar.gz
     41cp config.ini.php piwik/config/
     42chown -R piwik:piwik /var/www/piwik/
     43php /var/www/piwik/console core:update
     44}}}
     45
     46Then reset the config file to record stats:
     47
     48{{{
     49vi piwik/config/config.ini.php
     50}}}
     51
     52And check the status of the system check in the web interface at https://stats.crin.org/
     53
     54