Actions

Transferring an installation/de: Difference between revisions

From LimeSurvey Manual

m (Text replace - "Ö" to "Ö")
(Updating to match new version of source page)
Line 2: Line 2:
__TOC__
__TOC__


Sie kommen vielleicht in die Situation, dass Sie Ihre Installation  auf einen neuen Server bewegen wollen. Das Verfahren ist normalerweise einfach, kann aber durch andere Faktoren kompliziert werden. Hier dokumentieren wir, wie die Übertragung funktioniert, worauf Sie achten müssen und was zu tun ist, wenn Sie ein Problem auftritt.
You might get the task of moving the LimeSurvey installation to a new server. The process should be simple, but it can get complicated by other factors. You may find below information on how to do the transfer and what to look out for, and information on how to recover from if you encounter a problem.


Im Allgemeinen sind die einzigen vorzunehmenden Änderungen ausgehend von einer frischen Installation die folgenden:
In general, the only changes from a new and clean installation are the following:
# '''config.php''' wird in der Regel angepasst, um grundlegende Installationsparameter  zu setzen sowie benutzerdefinierte Einstellungen vorzunehmen.
# '''config.php''' is usually changed to store basic installation parameters as well as any custom settings made;
# '''upload/*''' enthält benutzerdefinierte Vorlagen oder hochgeladene Dateien
# '''upload/*''' may contain custom templates or uploaded files;
# '''SQL Datenbanktabellen''' Hier sind alle Daten rund im LimeSurvey gespeichert. Beachten Sie auch, dass einige neue Tabellen erstellt worden sein müssen, um Kopien von Token-und Ergebnisdaten aus alten oder derzeit aktiven Umfragen zu speichern. Diese neuen Tabellen tragen in der Regel Namen wie '''lime_survey_nnn ...''', '''lime_tokens_nnn ...''', lime_oldsurvey_nnn ...''', und lime_oldtokens_nnn ...'''.
# '''SQL database tables''' should have had data added to the tables created at installation time. Note also that some new tables may have been created to save copies of token and result data from previously or currently active surveys. These new tables are usually named '''lime_survey_nnn...''', '''lime_tokens_nnn...''', '''lime_oldsurvey_nnn...''', and '''lime_oldtokens_nnn...'''.


SOfern Sie keine Änderungen aan den Quelltexten vorgenommen haben, werden Änderungen auf diese oben genannten Bereiche begrenzt sein.
Otherwise, unless you went in and made custom patches to the code, changes should be limited to these areas.


Das Ziel bei der Übertragung einer Installation auf ein neues System ist vergleichbar mit einem Upgrade. Der größte Unterschied ist, dass wir versuchen die vorhandene Installation auf dem neuen Computer wiederaufzubauen. Wenn Sie auch [[Aktualisierung von einer früheren Version|ein Upgrade]] druchführen wollen, so machen Sie dies in einem späteren, zweiten Schritt - nachdem Sie die Installation übertragen und kontrolliert haben, dass alles funktioniert.
The goal in transferring an installation over to a new system is similar to upgrading. The biggest difference is that we simply try to recreate the existing installation on the new computer. If you wish to [[Upgrading from a previous version|upgrade to a newer version]] also, do this as a later, second step once you have transferred the installation and verified that it works.


= Übertragen einer Version=
= Übertragen einer Version=
Line 31: Line 31:
# Fertig! (:biggrin:).
# Fertig! (:biggrin:).


Wenn Sie auf dieser Maschine upgraden wollen, nutzen Sie nun [[Aktualisierung von einer früheren Version|die entsprechende Anleitung]].
If you wish to upgrade on this machine, you can now go through the same process described in the section related to the [[Upgrading from a previous version|LimeSurvey upgrade to a newer version]].


=Wenn Dinge schieflaufen=
=Wenn Dinge schieflaufen=


So einfach es auch sein mag, manchmal läuft trotzdem was schief. Atmen Sie tief ein. Überprüfen Sie ob Sie obige Schritte genau ausgeführt haben. Andernfalls lesen Sie weiter, um zu sehen, wo evtl. andere Leute Probleme hatten.
As simple as this appears, things do seem to go wrong sometimes. Take a deep breath. Verify that you followed thoroughly the steps. Otherwise, read below to see where other people got hung up along the way.


==Unterschiedliche PHP-Installation auf jedem Rechner==
==Unterschiedliche PHP-Installation auf jedem Rechner==
Line 43: Line 43:
==Unterschiedliche LimeSurvey Version (Installations-und DB-Backup-Datei-Archive stimmen nicht überein)==
==Unterschiedliche LimeSurvey Version (Installations-und DB-Backup-Datei-Archive stimmen nicht überein)==


Vielleicht haben Sie nicht die richtige LimeSurvey Dateien und diese passen nicht zur gesicherten SQL-Datenbank? Es kann gut sein, dass man sich bei mehreren Sicherungen vertan hat und die eine alte Sicherung genommen hat, o.ä. Es gibt ein paar Wege herauszufinden, welche Version jede Sicherung hat. Bei Verwendung der '''LimeSurvey''' Backup-Option, hat der vorgegebenen Dateinamen das Datum des Backups im Namen. Auch durch Suchen in der SQL-Datenbank-Backup-Datei, sollten Sie einen Abschnitt finden, der ähnlich wie der unten aussieht, wo die Version der Datenbank gespeichert ist. Dieser Wert wird vom Installationsprogramm genutzt, um festzustellen, welche Änderungen an der Datenbank bei einem Upgrade vorgenommen werden müssen.
There is a possibility that you did not have the correct installation backup code to match the backed-up SQL database. It could be easy to get these separate backups confused, out of sync, or otherwise separated. There are a few things that can help you find out what version each backup may be. When using the '''LimeSurvey''' SQL backup option, the default file name it creates has the date of the backup in the name. Also, if you search inside the SQL database backup file, you will find a section that looks similar to the example provided below where the database version is stored:




Line 52: Line 52:
INSERT INTO lime_settings_global VALUES("DBVersion","126");
INSERT INTO lime_settings_global VALUES("DBVersion","126");
....</syntaxhighlight>
....</syntaxhighlight>
'''This value is used by the installer to determine how to apply changes to tables when upgrading.'''

Revision as of 12:25, 7 August 2017

You might get the task of moving the LimeSurvey installation to a new server. The process should be simple, but it can get complicated by other factors. You may find below information on how to do the transfer and what to look out for, and information on how to recover from if you encounter a problem.

In general, the only changes from a new and clean installation are the following:

  1. config.php is usually changed to store basic installation parameters as well as any custom settings made;
  2. upload/* may contain custom templates or uploaded files;
  3. SQL database tables should have had data added to the tables created at installation time. Note also that some new tables may have been created to save copies of token and result data from previously or currently active surveys. These new tables are usually named lime_survey_nnn..., lime_tokens_nnn..., lime_oldsurvey_nnn..., and lime_oldtokens_nnn....

Otherwise, unless you went in and made custom patches to the code, changes should be limited to these areas.

The goal in transferring an installation over to a new system is similar to upgrading. The biggest difference is that we simply try to recreate the existing installation on the new computer. If you wish to upgrade to a newer version also, do this as a later, second step once you have transferred the installation and verified that it works.

Übertragen einer Version

  1. Vorbereiten und Speichern der alten Version
    1. Sichern Sie Ihr Installationsverzeichnis inkl. aller Dateien und machen Sie eine Backup Ihrer SQL-basierten Datenbank
      1. Erstellen Sie ein .zip oder ähnliches Archiv des gesamten Installationsverzeichnis mit allen Dateien
      2. Mit phpMyAdmin oder einem ähnlichen Tool, exportieren Sie alle Tabellen, oder verwenden Sie in der LimeSurvey Administration das folgende Symbol zur Sicherung der gesamten Datenbank.
    2. Kopieren Sie die config.php Datei an eine Stelle an der Sie diese einfach bearbeiten können.
  2. Kopieren die gespeicherten Dateien auf den neuen Server
    1. Entpacken Sie die Installationsdateien
      1. Erstellen Sie Ihre neues Installations-Verzeichnis (gleicher Name ist am einfachsten)
      2. Entpacken Sie die Installationsdateien in dieses neue Verzeichnis
    2. Installation SQL-Datenbank
      1. Erstellen Sie die neuen Datenbank mit phpMyAdmin oder per Kommandozeile
      2. Laden Sie das Backup der zuvor gespeicherten SQL-Datenbank, und erstellen Sie so die die Tabellen und Inhalte.
  3. Bearbeiten Sie config.php um evtl. Änderungen und passen Sie evtl die Datenbankzugriffsdaten oder Pfade an und überprüfen Sie Ihre Installation
    1. Überprüfen Sie den Namen der Datenbank, den Benutzernamen und das Kennwort, sowie den Installations Server-Namen, URL-Pfad und den physischen Pfad.
    2. Öffnen Sie die Umfrage Admin-Seite oder die Seite einer aktiven Umfrage, um sicherzustellen, dass alles funktioniert.
  4. Fertig! (:biggrin:).

If you wish to upgrade on this machine, you can now go through the same process described in the section related to the LimeSurvey upgrade to a newer version.

Wenn Dinge schieflaufen

As simple as this appears, things do seem to go wrong sometimes. Take a deep breath. Verify that you followed thoroughly the steps. Otherwise, read below to see where other people got hung up along the way.

Unterschiedliche PHP-Installation auf jedem Rechner

Unterschiedliche SQL-Datenbank zwischen Maschinen

Unterschiedliche LimeSurvey Version (Installations-und DB-Backup-Datei-Archive stimmen nicht überein)

There is a possibility that you did not have the correct installation backup code to match the backed-up SQL database. It could be easy to get these separate backups confused, out of sync, or otherwise separated. There are a few things that can help you find out what version each backup may be. When using the LimeSurvey SQL backup option, the default file name it creates has the date of the backup in the name. Also, if you search inside the SQL database backup file, you will find a section that looks similar to the example provided below where the database version is stored:


#-----------------------------------------------------------------------
# Table data for lime_settings_global
#-----------------------------------------------------------------------
INSERT INTO lime_settings_global VALUES("DBVersion","126");
....

This value is used by the installer to determine how to apply changes to tables when upgrading.