Actions

Transferring an installation/nl: Difference between revisions

From LimeSurvey Manual

No edit summary
(Updating to match new version of source page)
Line 2: Line 2:
__TOC__
__TOC__


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.
You might get the task of moving the LimeSurvey installation to a new server. The process should be simple, but it can get complicated due to other factors. Below, you may find information on how to do the transfer and what to look out for, as well as information on how to recover from encountering any problems.


Over het algemeen zijn er enige zaken die gewijzigd worden bij een 'schone' installatie:
Over het algemeen zijn er enige zaken die gewijzigd worden bij een 'schone' installatie:
Line 11: Line 11:
Het kan natuurlijk zijn dat je zelf wijzigingen in de code hebt aangebracht. Maar het zou beperkt moeten zijn tot deze onderdelen.
Het kan natuurlijk zijn dat je zelf wijzigingen in de code hebt aangebracht. Maar het zou beperkt moeten zijn tot deze onderdelen.


Het doel bij het verplaatsen is hetzelfde als bij upgraden. Het grootste verschil is dat we dezelfde versie op een andere server zetten. Dit kun je uiteraard combineren met het [[Upgrading from a previous version/nl|upgraden van een vorige versie]], maar dat is een stap die je pas ''na'' verplaatsen wilt uitvoeren.
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, rather do this after you have transferred the installation and verified that it works.


= Verplaatsen van een versie =
=Transferring any version=
# Bereid je oude installatie voor
* Prepare and save the old release
## Maak een back-up van je huidige installatie en database
** Backup your installation directory files and SQL-based database
### Maak een bestand van je bestanden met je favoriete inpaksoftware
*** At the command-line level, make a '''.zip''' or similar archive of the whole installation directory tree of files
### Gebruik phpMyAdmin of iets gelijkwaardig om alle tabellen uit de database te exporteren; of gebruik het icoon '''Back-up gehele database''' [[File:button-export-sql.png]] op de configuratie-pagina bij de geavanceerde opties om een back-up te maken.
*** Use phpMyAdmin or similar to export all tables; or use the '''LimeSurvey backup entire database''' button that is located in the '''Configuration''' dialog, under the Advanced tab
## Kopieer het '''config.php''' bestand om dit gemakkelijk te kunnen wijzigen.
** Copy your '''config.php''' file separately to ease the editing process
# Verplaats de installatie naar de nieuwe machine
* Move the saved release to the new machine
## Pak je download uit in de gewenste locatie
** Unpack your installation files
### Maak de gewenste directory aan (dezelfde naam is makkelijker)
*** Create your new installation directory (same name is convenient)
### Pak je opgeslagen download uit in deze directory
*** Unpack/unzip the installation files into the same folder
## Vul de SQL database
** Setup your SQL database
### Maak de nieuwe database via phpMyAdmin of een gelijkwaardig tool
*** Create the new database using phpMyAdmin or a command-line interface
### Vul de database met de SQL-scripts
*** Load the saved SQL-based database to recreate the tables and content
# Wijzig '''config.php''' om de wijzigingen die optreden vanwege de verplaatsing en check je installatie
* Edit '''config.php''' to reflect changes from the old release and check your installation
## Bekijk vooral even de databasenaam, gebruikersnaam en wachtwoord, en de installatienaam van de server, URL-pad en fysieke directory.
** Be careful to check the database name, username, and password, as well as the installation server name, URL path, and physical directory path to the installation
## Bezoek de beheerpagina van LimeSurvey, en controleer of alles werkt. Bekijk ook eventueel of een actieve enquête het nog steeds doet.
** Visit the survey admin page or the page of an active survey and check if everything works
* You are good to go now :)


{{Box|Als je op dezelfde machine wilt upgraden, volg dan het eerder beschreven proces voor [[Upgrading from a previous version/nl|upgraden van een vorige versie]].}}
{{Box|Als je op dezelfde machine wilt upgraden, volg dan het eerder beschreven proces voor [[Upgrading from a previous version/nl|upgraden van een vorige versie]].}}
Line 34: Line 35:
=Wat kan er fout gaan=
=Wat kan er fout gaan=


Het lijkt simpel, maar er kan iets fout gaan. Controleer dan eerst rustig de stappen die je uitgevoerd hebt. Lees anders verder om te zien of anderen hetzelfde probleem hebben gehad.
As simple as this appears, things do seem to go wrong sometimes. Take a deep breath. Verify that you followed the steps thoroughly. Otherwise, read below to see where other people got stuck along the way.


==Verschillende PHP installaties per server==
==Verschillende PHP installaties per server==

Revision as of 13:30, 19 October 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 due to other factors. Below, you may find information on how to do the transfer and what to look out for, as well as information on how to recover from encountering any problems.

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

Het kan natuurlijk zijn dat je zelf wijzigingen in de code hebt aangebracht. Maar het zou beperkt moeten zijn tot deze onderdelen.

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, rather do this after you have transferred the installation and verified that it works.

Transferring any version

  • Prepare and save the old release
    • Backup your installation directory files and SQL-based database
      • At the command-line level, make a .zip or similar archive of the whole installation directory tree of files
      • Use phpMyAdmin or similar to export all tables; or use the LimeSurvey backup entire database button that is located in the Configuration dialog, under the Advanced tab
    • Copy your config.php file separately to ease the editing process
  • Move the saved release to the new machine
    • Unpack your installation files
      • Create your new installation directory (same name is convenient)
      • Unpack/unzip the installation files into the same folder
    • Setup your SQL database
      • Create the new database using phpMyAdmin or a command-line interface
      • Load the saved SQL-based database to recreate the tables and content
  • Edit config.php to reflect changes from the old release and check your installation
    • Be careful to check the database name, username, and password, as well as the installation server name, URL path, and physical directory path to the installation
    • Visit the survey admin page or the page of an active survey and check if everything works
  • You are good to go now :)
Als je op dezelfde machine wilt upgraden, volg dan het eerder beschreven proces voor upgraden van een vorige versie.


Wat kan er fout gaan

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

Verschillende PHP installaties per server

Verschillende SQL Databases per server

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

Mogelijk heb je niet de goede back-up voor de versie van de SQL database?  Je kunt gemakkelijk twee back-ups met elkaar verwisselen.  Je kunt naar een paar dingen kijken om vast te stellen van welke versie een back-up is.  Bij gebruik van LimeSurvey back-up optie, wordt de bestandsnaam standaard aangemaakt inclusief de datum van de back-up.  Zoek anders in de back-up naar de sectie die overeenkomt met het onderstaande, waar de versie van de database wordt vastgelegd:

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

Deze waarde wordt door het installatie-programma gebruikt om te bepalen hoe wijzigingen op tabellen worden toegepast bij het upgraden.