Actions

Verplaatsen van de installatie

From LimeSurvey Manual

Revision as of 21:09, 10 August 2017 by Han (talk | contribs)

Soms moet je de installatie verplaatsen naar een andere server. Dit zou gemakkelijk moeten zijn, maar soms wordt het gecompliceerd om verschillende redenen. Hier gaan we er dieper op in hoe je dit doet, hoe je problemen herkent en hoe je die kunt oplossen.

Over het algemeen zijn er enige zaken die gewijzigd worden bij een 'schone' installatie:

  1. het bestand "config.php", dat gewijzigde en nieuwe parameters bevat
  2. de directory "upload/" die geüploade of gewijzigde sjablonen bevat
  3. de databasestructuur. Deze herken je voornamelijk aan de tabellen met de namen "lime_survey_(nummer)", "lime_tokens_(nummer)", "lime_oldsurvey_(nummer)", "lime_oldtokens_(nummer)".

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.

Verplaatsen van een versie

  1. Bereid je oude installatie voor
    1. Maak een back-up van je huidige installatie en database
      1. Maak een 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 Back-up gehele database om een back-up te maken.
    2. Kopieer het config.php bestand om dit gemakkelijk te kunnen wijzigen.
  2. Verplaats de installatie naar de nieuwe machine
    1. Pak je download uit in de gewenste locatie
      1. Maak de gewenste directory aan (dezelfde naam is makkelijker)
      2. Pak je opgeslagen download uit in deze directory
    2. Vul de SQL database
      1. Maak de nieuwe database via phpMyAdmin of een gelijkwaardig tool
      2. Vul de database met de SQL-scripts
  3. Wijzig config.php om de wijzigingen die optreden vanwege de verplaatsing en check je installatie
    1. Bekijk vooral even de databasenaam, gebruikersnaam en wachtwoord, en de installatienaam van de server, URL-pad en fysieke directory.
    2. Bezoek de beheerpagina van LimeSurvey, en controleer of alles werkt. Bekijk ook eventueel of een actieve enquête het nog steeds doet.

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.

Het gaat fout

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.

Verschillende PHP installaties per server

Verschillende SQL Databases per server

Verschillende LimeSurvey versies (installatie en DB back-up komen niet overeen)

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.