Actions

Upgrading from a previous version/nl: Difference between revisions

From LimeSurvey Manual

No edit summary
No edit summary
Line 9: Line 9:
= De snelle manier (voor kleine upgrades)=
= De snelle manier (voor kleine upgrades)=


You can use these instructions if you are doing a minor upgrade (for example from 2.00 to 2.01):
Gebruik deze instructies om een kleine upgrade te doen (bijvoorbeeld versie 2.00 naar 2.01)
*Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).
* Maak een back-up van bestanden en database([[Upgrading from a previous version/nl#Before you start...|We noemen het maar weer eens.]]).
*Delete all the old files/folders except for:
* Verwijder alles in files/folders, behalve
**/application/config/config.php;
** /application/config/config.php
**/upload directory - '''NOTE''': If you have any customized templates sitting under /upload/templates, make sure you 'refresh' those with any changes that come with the new LimeSurvey version. The easiest way to check for such changes is to file-compare your old template with the new version of the default template. If you see any differences other than your customizations, a refresh is needed.
** /upload directory '''NB.: Als je eigen sjablonen plaatst in of onder /upload/templates, zorg er dan voor dat je die aanpast met de wijzigingen in een nieuwe versie. Dit kan het makkelijkst met een programma om twee bestanden, hier dus sjablonen, te vergelijken.'''
*Copy the new files from the new LimeSurvey package to the existing location.
* Kopieer de bestanden van de nieuwe download naar de huidige locatie
*Open the admin page in your browser (e.g. https://www.example.com/limesurvey/admin) and check if a database scheme upgrade is necessary.
* Open in je browser de beheerpagina (https://www.example.com/limesurvey/admin) en controleer of er een wijziging van de database noodzakelijk is.
*After the upgrade: '''Clear your browser cache and cookies!'''
* '''Wis je browsercache en cookies'''





Revision as of 13:11, 14 August 2017

Andere pagina's:{toc}

Voordat je begint...

Maak altijd een back-up van je huidige installatie, de scripts en de database!

Dit laatste kun je doen via een beheerapplicatie als phpMyAdmin. Heb je daar geen kaas van gegeten, overweeg dan iemand te vragen die dat wel heeft, of gebruik ComfortUpdate.

De snelle manier (voor kleine upgrades)

Gebruik deze instructies om een kleine upgrade te doen (bijvoorbeeld versie 2.00 naar 2.01)

  • Maak een back-up van bestanden en database! (We noemen het maar weer eens.).
  • Verwijder alles in files/folders, behalve
    • /application/config/config.php
    • /upload directory NB.: Als je eigen sjablonen plaatst in of onder /upload/templates, zorg er dan voor dat je die aanpast met de wijzigingen in een nieuwe versie. Dit kan het makkelijkst met een programma om twee bestanden, hier dus sjablonen, te vergelijken.
  • Kopieer de bestanden van de nieuwe download naar de huidige locatie
  • Open in je browser de beheerpagina (https://www.example.com/limesurvey/admin) en controleer of er een wijziging van de database noodzakelijk is.
  • Wis je browsercache en cookies


De grondige manier (voor grote upgrades)

Unfortunately, there are a couple of things to consider, so please read carefully the following instructions.

Upgrading from version 1.50 or later to any later 2.xx version

  1. Download the latest version of LimeSurvey.
  2. Prepare and backup the old installation:
    1. Backup your installation directory files and SQL-based database just in case:
      1. At the command-line level, make a .zip or similar archive of the whole installation directory tree of files. For example, in Linux 'tar cvzf foo.tgz cps100' will tar and zip the whole of the cps100 directory;
      2. You can use [httsp://www.phpmyadmin.net phpMyAdmin] to export all tables or you can use the backup database function of LimeSurvey that is available in the Configuration dialog (under the Advanced tab) to backup the entire database; Note: Look for the LimeSurvey Administration button to export the database in the older LimeSurvey versions;
    2. Copy your config.php file, modified template directories, and the /upload directory separately for quick access later;
  3. Replace all the installation directory files:
    1. Delete all old files in the existing installation directory;
    2. Upload and unpack the new code version into the same installation directory;
    3. If your previous version was older than 1.90: Copy any customized templates to /upload/templates - you will also need to rename each template directory whose name matches an existing template in /templates.
    4. Copy your /upload directory back to the old location;
    5. Double check the permissions set on the directories (write access to /tmp, /upload and and their subdirectories is required) as described in the installation wiki;
    6. Open http://<yourdomain>/<yourlimesurveydir>/admin in your browser and follow the instructions (you can use the old config.php as reference). The existing database will be automatically detected and if necessary, upgraded after confirmation.
  4. Check if any special manual checks apply as listed below;
  5. Now clear your browser cache and cookies! and you are good to go.
  Attention : If you upgrade from e.g. 1.92, it might be necessary to first upgrade to latest 1.92, then to 2.00, then to 2.06, and then finally to the latest version (e.g. 2.55.x).


  Attention : Please note that the template structure has changed with the update from 2.0x to 2.50 or later. Your old templates will not be working anymore as the template system is now using responsive templates.


Special checks after an upgrade:
  • from any earlier version to 2.xx:
    • Proper question codes are mandatory now. After upgrading the installation, check the survey logic of all surveys and correct the codes where necessary.
  • from a version earlier than v1.53: When upgrading from a version before v1.53 to the latest version, please check the global user rights of each user. There was a new superadmin right introduced in v1.53 that can give a user the same privilege as the master administration account created during the install. The upgrade script is guessing to whom should be given this permission in the older versions. As this is not perfect, it should be carefully checked;
  • from any earlier version to v2.06: From 2.05 to 2.06, some unused permissions when editing global permissions for 'surveys' were activated. For example, if a user had only the 'create' permission in 2.05, the other permissions located on the right of 'create' would also get activated with the update to 2.06 (View/read, Update, Delete, Import, Export). Please, check whether the admin users got any other global permissions besides the 'original' ones after the update. If yes, please edit them accordingly.

Upgrade van versie 1.50 of later naar een 1.xx versie

  1. Download de laatste versie van LimeSurvey.
  2. Bereid de huidige installatie voor.
    1. Maak een back-up van je huidige installatie, en database
      1. Maak een zip-bestand van je bestanden met je favoriete inpaksoftware
      2. Gebruik phpMyAdmin of iets gelijkwaardig om alle tabellen uit de database te exporteren; of gebruik het icoon om een back-up te maken.
    2. Kopieer het config.php bestand, de gewijzigde template directories en de /upload directory om deze snel te kunnen benaderen.
  3. Vervang de gehele installatie door de nieuwe versie
    1. Verwijder alles in de gehele installatiedirectory (+ subdirectories)
    2. Upload en pak de nieuwe installatie uit in de installatiedirectory
    3. Upgrade de config.php file:
      1. Als je vorige versie < 1.70: Wijzig de nieuwe config.php met de waarden in de oude config.php. Zet niet zomaar de oude over de nieuwe heen!
      2. Als je vorige versie > 1.70: Kopieer de oude config.php over de nieuwe heen.
    4. Als je vorige versie ouder was dan versie 1.90: kopieer je gewijzigde sjablonen naar /upload/templates. Wijzig ook de naam van elke directory die nu in /templates staat.
    5. Kopieer de /upload-directory naar z'n oude locatie.
    6. Controleer of de rechten van de directories /tmp, /upload en hun subdirectories op "Lees&Schrijf" staat, zoals beschreven in Installatie.
    7. Open het administratiegedeelte en volg de instructies. De bestaande database wordt vernieuwd na bevestiging
    8. Verwijder, of hernoem de /admin/install directory zoals het installatiescript je zal vertellen
  4. Controleer of er nog handmatige zaken zijn (zie ook hieronder)
  5. Verwijder je browsergeschiedenis en cookies
Handmatige controles na een upgrade
  • upgrades naar 1.92 of later: de sjablonen zijn op veel plaatsen gewijzigd. Als je eigen sjablonen hebt, controleer dan of ze nog goed werken.
  • upgrades vanaf 1.53 of eerder: controleer of de global user rights van elke gebruiker nog kloppen. Er is een nieuwe superbeheerder gekomen, die een gebruiker dezelfde rechten geeft als diegene die de installatie draait. Het upgradescript probeert te raden wie dit is, maar dit gaat niet altijd goed.

Upgrade van een versie voor 1.50 (v1.0 tot v1.44)

Omdat de datastructuur en een hoop andere dingen flink gewijzigd zijn is een upgrade van een versie voor 1.50 NIET mogelijk. Als je oude enquêtes hebt opgeslagen met een *.sql-extensie is de enige mogelijkheid om versie 1.50 te installeren en daar de .sql-bestanden te importeren, en die versie te upgraden. Kijk dan ook even bij een installatie verplaatsen

Upgrade FAQ

What is the most recent LimeSurvey version that still supports PHP4?

De laatste versie die PHP4 ondersteund is 1.82+

Kan ik een upgrade doen als ik actieve enquêtes heb?

Ja, dat kan. Besef je wel dat de instructies verwijzen naar de handmatige zaken die je moet checken, zeker als je actieve enquêtes hebt met eigen sjablonen.

Wat is de beste manier om LimeSurvey *.sql-enquêtes naar nieuwe versie om te zetten?

Installeer versie 1.50, importeer het bestand en exporteer de enquête naar het nieuwe .csv-formaat. Importeer deze in de nieuwe versie, die kan dat formaat lezen.