| 1 | The [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 | |
| 5 | These 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 | |
| 7 | Set Piwik not to record stats while we are upgrading: |
| 8 | |
| 9 | {{{ |
| 10 | sudo -i |
| 11 | cd /var/www |
| 12 | vi piwik/config/config.ini.php |
| 13 | }}} |
| 14 | |
| 15 | Set this variable: |
| 16 | |
| 17 | {{{ |
| 18 | [Tracker] |
| 19 | record_statistics = 0 |
| 20 | }}} |
| 21 | |
| 22 | Download and verify the new version: |
| 23 | |
| 24 | {{{ |
| 25 | export PIWIK="2.13.0" |
| 26 | wget "https://builds.piwik.org/piwik-$PIWIK.tar.gz" |
| 27 | wget "https://builds.piwik.org/piwik-$PIWIK.tar.gz.asc" |
| 28 | gpg --verify piwik-$PIWIK.tar.gz.asc |
| 29 | }}} |
| 30 | |
| 31 | Backup the config file: |
| 32 | |
| 33 | {{{ |
| 34 | cp piwik/config/config.ini.php . |
| 35 | }}} |
| 36 | |
| 37 | Extract the new version, set the ownerships, copy back the config file and run the updater: |
| 38 | |
| 39 | {{{ |
| 40 | tar -zxvf piwik-$PIWIK.tar.gz |
| 41 | cp config.ini.php piwik/config/ |
| 42 | chown -R piwik:piwik /var/www/piwik/ |
| 43 | php /var/www/piwik/console core:update |
| 44 | }}} |
| 45 | |
| 46 | Then reset the config file to record stats: |
| 47 | |
| 48 | {{{ |
| 49 | vi piwik/config/config.ini.php |
| 50 | }}} |
| 51 | |
| 52 | And check the status of the system check in the web interface at https://stats.crin.org/ |
| 53 | |
| 54 | |