Actions

Mover una instalación previa

From LimeSurvey Manual

Revision as of 02:06, 14 April 2013 by C schmitz (talk | contribs) (Created page with "A menos que haya realizado cambios en el código de la aplicación, los cambios están limitados a las áreas descritas anteriormente.")

Es probable que tenga que mover su instalación de LimeSurvey a un nuevo servidor. Este proceso, debería ser muy simple, pero se complica debido

a un determinado número de factores. En esta página documentamos como puede hacer para mover su instalación de LimeSurvey y que buscar en caso de que tenga problemas para llevar a cabo correctamente esta operación.

Generalmente, los cambios que se hacen para una instalación nueva de LimeSurvey son los que se muestran a continuación:

  1. El archivo config.php suele modificarse para almacenar los parámetros de instalación básica, así como también, para almacenar cualquier tipo de información y configuración personalizada.
  2. El directorio upload/* puede contener plantillas personalizadas así como diferentes archivos que han sido subidos por usted o por los usuarios finales de sus encuestas.
  3. Las tablas de la base de datos en SQL , si ha utilizado LimeSurvey debería tener información almacenada en las tablas creadas en la base de datos durante el proceso de instalación.  Observe que también es posible que LimeSurvey haya creado nuevas tablas para guardar copias de los diferentes tokens o de los datos que contienen los resultados de las encuestas, tanto de encuestas antiguas como de las encuentas que se están ejecutando actualmente. Estas tablan normalmente se llaman lime_survey_nnn..., lime_tokens_nnn..., lime_oldsurvey_nnn..., y lime_oldtokens_nnn....

A menos que haya realizado cambios en el código de la aplicación, los cambios están limitados a las áreas descritas anteriormente.

The goal in transferring an installation over to a new system is similar to upgrading.  The biggest difference is we try to simply 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 verify it is working.

Transferring any version

  1. Prepare and save the old release
    1. Backup your installation directory files and SQL-based database
      1. At the command-line level, make a .zip or similar archive of the whole installation directory tree of files
      2. Use phpMyAdmin or similar to export all tables; or use the Limesurvey Administration button to backup the entire database
    2. Copy your config.php file separately for easy access to edit
  2. Move the saved release to the new machine
    1. Unpack your installation files
      1. Create your new installation directory (same name is convenient)
      2. Unpack/unzip the installation files into it that were saved earlier
    2. Setup your SQL database
      1. Create the new database using phpMyAdmin or a command line interface
      2. Load the saved SQL-based database to recreate the tables and content
  3. Edit config.php to reflect changes from the old release and check your installation
    1. 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
    2. Visit the survey admin page or the page of an active survey; verify everything appears to be working.
  4. You are done (:biggrin:) .

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

Things that go wrong

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

Different PHP installation on each machine

Different SQL Database between machines

Different LimeSurvey version (installation and DB backup file archives do not match)

Maybe 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, searching inside the SQL database backup file, there should be a section that looks similar to the below where the database version is stored.  This value is used by the installer to determine how to apply changes to tables when upgrading, for example.

#<strike>-</strike><strike>-</strike><strike>-</strike><strike>-</strike><strike>-</strike><strike>-</strike><strike>-</strike><strike>-</strike>--
# Table data for lime_settings_global
#<strike>-</strike><strike>-</strike><strike>-</strike><strike>-</strike><strike>-</strike><strike>-</strike><strike>-</strike><strike>-</strike>--

INSERT INTO lime_settings_global VALUES("DBVersion","126");

....