Actions

Upgrading from a previous version/de: Difference between revisions

From LimeSurvey Manual

No edit summary
(Updating to match new version of source page)
Line 9: Line 9:
=Der schnelle Weg (für kleinere Versionssprünge)=
=Der schnelle Weg (für kleinere Versionssprünge)=


Sie können diese Anleitung verwenden, wenn Sie kleinere Upgrades (z.B. von 2.00 auf 2.05 durchführen)
You can use these instructions if you are doing a minor upgrade  (for example from 2.00 to 2.01)
*Sicherung Ihrer Dateien und der Datenbank erstellen (haben wir schon erwähnt, oder?)
*Backup your files and database (did we already mention that?)
*Löschen Sie alle alten Dateien/Verzeichnis bis auf
*Delete all the old files/directory except for
**/application/config/config.php
**/application/config/config.php
**/upload Verzeichnis
**/upload directory
*Kopieren die neuen Dateien aus dem neuen LimeSurvey-Paket in das bestehende Verzeichnis.
*Copy the new files from the new LimeSurvey package to the existing location.
*'''Nach dem Upgrade: Leeren des Browser-cache und alte Cookies löschen!'''
* Open the admin page in your brower, e.g. https://www.example.com/limesurvey/admin and check if a database scheme upgrade is necessary.
*'''After the upgrade: Clear your browser cache and cookies!'''


=Der gründliche Weg (für große Versionssprünge)=
=Der gründliche Weg (für große Versionssprünge)=
Line 21: Line 22:
Leider gibt es ein paar Dinge zu beachten, so lesen Sie bitte die folgenden Anweisung sehr genau.
Leider gibt es ein paar Dinge zu beachten, so lesen Sie bitte die folgenden Anweisung sehr genau.


==Upgrade von Version 1.50 oder neuer zur Version 2.xx==
==Upgrading from version 2.0x to 2.50 or later==
#[http://www.limesurvey.org/download Laden] Sie die neueste Version von LimeSurvey herunter.
*Please note that the template structure has changed. Your old templates will not be working anymore as the template system is now using responsive templates.
# Vorbereitung und Sicherung der alten Installation
## Sichern Sie Ihre Installations-Verzeichnis Dateien und SQL-basierten Datenbank - sicher ist sicher.
### Auf der Kommandozeilen-Ebene, eine "'.zip"' oder ähnliche Archiv für die gesamte installation directory-Baum von Dateien. Zum Beispiel Linux tar cvzf foo.tgz cps100 wird tar-und zip die ganze cps100 Verzeichnis.
### Mit phpMyAdmin oder ähnliches exportieren Sie alle Tabellen, oder verwenden Sie den  '''LimeSurvey-Administration''' - Knopf [[File:button-export-sql.png]] um ein Backup der gesamten Datenbank zu erstellen.
## Kopieren Sie Ihre '''config.php''' Datei geändert " - " Vorlage"' Verzeichnisse und /upload-Verzeichnis separat für den schnellen Zugriff später.
# Ersetzen Sie alle Installations-Verzeichnis Dateien
## Löschen Sie alle alten Dateien in die vorhandene installation-Verzeichnis
## Laden und entpacken Sie den neuen code-version in das Installations-Verzeichnis
## Wenn die Vorherige version war, die älter als 1.90: Kopieren Sie alle benutzerdefinierten Vorlagen /upload/Vorlagen - Sie müssen auch benennen Sie die einzelnen template-Verzeichnis, dessen name mit einer vorhandenen Vorlage in /templates.
## Kopieren Sie Ihre /upload-Verzeichnis zurück zu den alten Ort
## Überprüfen Sie die "Berechtigungen"' set auf die Verzeichnisse (schreib-Zugriff auf "/tmp"', "'" /upload' und Ihre Unterverzeichnisse abgebildet werden, ist es erforderlich) wie beschrieben [http://docs.limesurvey.org/tiki-index.php?page=Installation&structure;=English+Instructions+for+LimeSurvey#Set_Directory_permissions Installation]
## Öffnen http://<yourdomain>/<yourlimesurveydir>/admin in Ihrem browser auf und Folgen Sie den Anweisungen (Sie können die alte config.php als Referenz). Die vorhandene Datenbank wird automatisch erkannt und , wenn nötig, aktualisiert nach der Bestätigung.
# Prüfen Sie, ob eine spezielle manuelle Prüfungen gelten wie unten aufgeführt
# '''Nun Ihren Browser-cache und Cookies leeren !'''
# Sie sind fertig!


<div class="simplebox">"'Spezielle Prüfungen nach einem upgrade"':
==Upgrading from version 1.50 or later to any later 2.xx version==
*"'aus eine frühere version 2.xx"': " " Vorlagen"' geändert wurden, in vielen Orten. Bitte überprüfen Sie Ihre individuelle Vorlagen, wenn Sie noch auf der Suche rechts. Wenn nicht, müssen Sie Ihre Vorlagen entsprechend (schauen Sie sich die original-Vorlagen um zu sehen, was geändert wurde). Der upgrade-Prozess versucht zu ersetzen, die template.js die Aufnahme von den Platzhalter {TEMPLATEJS}. Falls Sie javascript Problem mit dem benutzerdefinierten Vorlage, überprüfen Sie, ob Ihre Vorlage haben die Platzhalter {TEMPLATEJS} in startpage.pstpl.
#[http://www.limesurvey.org#download Download] the latest version of LimeSurvey.
*"'aus eine ältere version als v1.53"': Wenn Sie ein Upgrade von einer version vor v1.53 auf die neueste version, prüfen Sie bitte den "globalen user-Rechte"' der einzelnen Benutzer. Es wurde eine neue "' " superadmin " "' rechts eingeführt v1.53 geben kann, dass ein Benutzer die gleichen Berechtigungen wie die master-Verwaltung-Konto während der Installation erstellt. Das upgrade-Skript ist zu raten, wer dieses Recht in den älteren Versionen. Wie dieser ist nicht perfekt, es sollte sorgfältig geprüft werden.</div>
# Prepare and backup the old installation
## Backup your installation directory files and SQL-based database just in case.
### 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.
### Using phpMyAdmin or similar to export all tables; or use the according '''LimeSurvey Administration''' button [[File:button-export-sql.png]] to backup the entire database
## Copy your '''config.php''' file, modified '''template''' directories and the /upload directory separately for quick access later.
# Replace all the installation directory files
## Delete all old files in the existing installation directory
## Upload and unpack the new code version into the same installation directory
## 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.
## Copy your /upload directory back to the old location
## Double check the '''permissions''' set on the directories (write access to '''/tmp''', '''/upload''' and and their subdirectories is required) as described in [[Installation#Set_Directory_permissions|Installation]]
## 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.
# Check if any special manual checks apply as listed below
# '''Now clear your browser cache and cookies!'''
# You are done (:biggrin:).


==Aktualisierung von Version 1.50 (od. später) auf eine aktuelle 1.xx Version==
 
#[http://www.limesurvey.org/de/herunterladen Laden] sie die neuste Version herunter
{{Alert|title=Attention|text=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).}}
#Vorbereiten und sichern der alten Installation
 
## Sichern Sie die Dateien der alten Installation und die Daten Ihrer SQL-basierten Datenbank
<div class="simplebox">'''Special checks after an upgrade''':
###Erstellen Sie ein ZIP-Datei oder anderes Archiv des alten Installationsverzeichnisses. Unter Linux auf der Kommandozeile würde der Befehl "tar cvzf foo.tgz cps100" das komplette csp100 Verzeichnis sichern.
*'''from any earlier version to 2.xx''':
###Nutzen Sie phpMyAdmin oder ein ähnliches Datenbankwerkzeug um alle Tabelle zu sichern/exportieren - oder nutzen Sie in der '''LimeSurvey Administration''' das folgene Symbol [[File:button-export-sql.png]] um Ihre gesamte LimeSurvey Daten zu sichern.
**The '''templates''' have been changed in a lot of places. Please check your customized templates if they are still looking right. If not you will have to edit your templates accordingly (check out the original templates to see what was changed). The upgrade process tries to replace the template.js inclusion by the placeholder {TEMPLATEJS}. If you have javascript issue with your custom template, verify if your template have the placeholder {TEMPLATEJS} in startpage.pstpl.
##Kopieren Sie die Datei '''config.php''' , evtl. angepasste Templates und das /upload Verzeichnis (sofern vorhanden) an einen separaten Ort, um später schnell wieder darauf zugreifen zu können.
**Proper question codes are mandatory, now. After upgrade check the survey logic of all surveys and correct the codes where necessary.
#Ersetzen der bestehenden Dateien
*'''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 who to give this right to in the older versions.  As this is not perfect, it should be carefully checked.
##Löschen Sie alle alten Dateien im bestehenden Installationsverzeichnis.
*'''from any earlier version to v2.06''': From 2.05 to 2.06 some unused permissions when editing global permission for 'surveys' were activated. So if a user has any permission besides the 'create' they will be able to apply this additional permission on other surveys then their own. So please check the global permission of admin users that should only be able to see their own surveys and make sure they only have the 'create' permission assigned for 'surveys'.
## Laden Sie die neuen Dateien hoch (und entpacken Sie ggf.) an den selben Ort wie die alten Dateien.
</div>
### Wenn Sie vorher eine Version < 1.70 hatten: Passen sie die neue Version der Datei config.php anhand der alten Version an. '''Wichtig: Nicht einfach die neue config.php mit der alten config.php überschreiben.'''
 
### Wenn Sie vorher eine Version >= 1.70 hatten: Ersetzen Sie einfach die neue config.php mit der alten config.php.
==Upgrading from version 1.50 or later to any later 1.xx version==
## Kopieren Sie Ihre geänderten Templates in das /upload/templates Verzeichnis.
#[http://www.limesurvey.org/download Download] the desired version of LimeSurvey.
## Überprüfen Sie die  '''Berechtigungen''' auf den Verzeichnis (Schreibzugriff auf  '''/tmp''', '''/upload''' and '''/templates''' wird benötigt) wie in der [[Installationsanleitung]] beschrieben.
# Prepare and backup the old installation
#Rufen Sie nun die LimeSurvey Administration auf. Sie werden nun gefragt, ob Sie die bestehenden Datenbank aktualisieren wollen. Bestätigen Sie dies.
## Backup your installation directory files and SQL-based database just in case.
#Führen sie das Installations-Skript aus /admin/install/index.php; Hiermit wird ihre Datenbank automatisch auf die neue LimeSurvey-Version aktualisiert.
### At the command-line level, make a '''.zip''' or similar archive of the whole installation directory tree of files. e.g. tar cvzf foo.tgz cps100 will tar and zip the whole of the cps100 directory
#Überprüfen Sie, ob irgendwelche manuelle Prüfungen (siehe unten) nötig sind.
### Using phpMyAdmin or similar to export all tables; or using the '''LimeSurvey Administration''' button [[File:button-export-sql.png]] to backup the entire database
#Fertig (:biggrin:). Wenn Sie irgenwelche Probleme bemerken: Leeren Sie Ihre Browsercache und löschen sie Ihre Cookies.
## Copy your '''config.php''' file ,modified '''template''' directories and the /upload directory separately for quick access later.
# Replace all the installation directory files
## Delete all old files in the existing installation directory
## Upload and unpack the new code version into the same installation directory
## Edit or replace the '''config.php''' file:
### If your previous version was < 1.70: Edit the new '''config.php''' to reflect changed settings in the backup '''config.php''' file. '''Do not just overwrite the new '''config.php''' with your old one!'''
### If your previous version was >= 1.70: Simply replace the new '''config.php''' with your backup '''config.php''' (as the file format has not changed).
## 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.
## Copy your /upload directory back to the old location
## Double check the '''permissions''' set on the directories (write access to '''/tmp''', '''/upload''' and and their subdirectories is required) as described in [[Installation#Set Directory permissions|Installation]]
# Finishing the installation
## Once you open the URL to your LimeSurvey administration the database tables will be updated after confirmation
## Remove or rename the '''/admin/install''' directory as/if instructed by the installation script
## Check if any special, manual checks apply as listed below
# You are done (:biggrin:). If you notice any problems after the upgrade: Clear your browser cache and cookies!


<div class="simplebox">'''Spezielle Prüfungen nach einem Update''':
<div class="simplebox">'''Spezielle Prüfungen nach einem Update''':

Revision as of 15:16, 30 January 2017

Additional pages:{toc}

Bevor Sie beginnen...

...beachten Sie bitte folgendes: Erstellen Sie UNBEDINGT zuerst eine Sicherung der Dateien und der Datenbank ihrer aktuellen Installation!

Sie können dies mit Hilfe eines Datenbank-Administrations-Tool wie phpMyAdmin etc. und einen Datei-Manager durchführen! Wenn Sie sich nicht sicher sind, wie man das macht, kontaktieren Sie einen Spezialisten oder nutzen Sie die ComfortUpdate-Funktion.

Der schnelle Weg (für kleinere Versionssprünge)

You can use these instructions if you are doing a minor upgrade  (for example from 2.00 to 2.01)

  • Backup your files and database (did we already mention that?)
  • Delete all the old files/directory except for
    • /application/config/config.php
    • /upload directory
  • Copy the new files from the new LimeSurvey package to the existing location.
  • Open the admin page in your brower, e.g. https://www.example.com/limesurvey/admin and check if a database scheme upgrade is necessary.
  • After the upgrade: Clear your browser cache and cookies!

Der gründliche Weg (für große Versionssprünge)

Leider gibt es ein paar Dinge zu beachten, so lesen Sie bitte die folgenden Anweisung sehr genau.

Upgrading from version 2.0x to 2.50 or later

  • Please note that the template structure has changed. Your old templates will not be working anymore as the template system is now using responsive templates.

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. Using phpMyAdmin or similar to export all tables; or use the according LimeSurvey Administration button to backup the entire database
    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 Installation
    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!
  6. You are done (:biggrin:).


  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).


Special checks after an upgrade:
  • from any earlier version to 2.xx:
    • The templates have been changed in a lot of places. Please check your customized templates if they are still looking right. If not you will have to edit your templates accordingly (check out the original templates to see what was changed). The upgrade process tries to replace the template.js inclusion by the placeholder {TEMPLATEJS}. If you have javascript issue with your custom template, verify if your template have the placeholder {TEMPLATEJS} in startpage.pstpl.
    • Proper question codes are mandatory, now. After upgrade 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 who to give this right to 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 permission for 'surveys' were activated. So if a user has any permission besides the 'create' they will be able to apply this additional permission on other surveys then their own. So please check the global permission of admin users that should only be able to see their own surveys and make sure they only have the 'create' permission assigned for 'surveys'.

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

  1. Download the desired 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. e.g. tar cvzf foo.tgz cps100 will tar and zip the whole of the cps100 directory
      2. Using phpMyAdmin or similar to export all tables; or using the LimeSurvey Administration button to backup the entire database
    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. Edit or replace the config.php file:
      1. If your previous version was < 1.70: Edit the new config.php to reflect changed settings in the backup config.php file. Do not just overwrite the new config.php with your old one!
      2. If your previous version was >= 1.70: Simply replace the new config.php with your backup config.php (as the file format has not changed).
    4. 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.
    5. Copy your /upload directory back to the old location
    6. Double check the permissions set on the directories (write access to /tmp, /upload and and their subdirectories is required) as described in Installation
  4. Finishing the installation
    1. Once you open the URL to your LimeSurvey administration the database tables will be updated after confirmation
    2. Remove or rename the /admin/install directory as/if instructed by the installation script
    3. Check if any special, manual checks apply as listed below
  5. You are done (:biggrin:). If you notice any problems after the upgrade: Clear your browser cache and cookies!
Spezielle Prüfungen nach einem Update:
  • Von einer älteren Version nach 1.92: Die Designvorlagen haben sich stark geändert. Bitte überprüfen Sie Ihre angepassten Designvorlagen, ob diese immer noch korrekt funktionieren. Wenn nicht, dann müssen Sie diese anpassen (werden Sie einen Blick auf die Originaltemplates um zu sehen, was sich geändert hat).
  • Von einer Version älter als v1.53: Nach dem Update überprüfen Sie bitte die globalen Benutzerrechte, da ein neues Superadmin-Recht eingeführt wurde und während des Updates versucht das Script zu schätzen, wer es bekommen sollte. Das ist nicht immer perfekt, daher sollten die Benutzerrechte noch einmal geprüft werden.

Aktualisierung von einer Version älter als v1.50 (v1.0 bis 1.44)

Durch den Umstand, dass sich die komplette Datenstruktur und viele weitere kleine Dinge geändert haben ist eine Aktualisierung von Versionen älter als 1.50 NICHT möglich. Wenn Sie noch alte Umfragestruktur-Dateien mit einer *.sql Erweiterung besitzen, dann ist es nur möglich diese zu importieren, indem man Version 1.50 installiert, diese dort importiert, und dann diese Version auf die aktuellste Version aktualisiert. Siehe auch die Seite Übertragung einer Installation für weitere Details.

Update FAQ

Welches ist die aktuellste Version, die noch PHP4 unterstützt?

Die letzte Version, die PHP4 unterstützt, ist Version 1.82+

Kann ich auch updaten, wenn ich aktive Umfragen habe?

Ja, das ist möglich und bei kleineren Versionssprüngen im Regelfall unbedenklich. Sie sollten in jedem Fall Ihre Umfragen nach dem Update immer testen, vor allen Dingen wenn Sie ein angepasste Designvorlage nutzen.

Was ist der beste Weg, um LimeSurvey *.sql-Umfrage Struktur-Dateien auf die neueste Version zu portieren?

Installieren Sie die Version 1.50, importieren Sie die Datei und exportieren Sie die UmfragesStruktur als neueres CSV-Format. Die neueste Version kann dieses Format immer noch lesen.