Actions

Instalación Versión 1.92 o anterior

From LimeSurvey Manual

Revision as of 08:45, 5 September 2023 by Maren.fritz (talk | contribs) (Created page with "<div class="simplebox">Archivo:help.png '''Importante:''' Si tiene un servidor Microsoft SQL, asegúrese de que su base de datos utilice una intercalación que no distinga...")
Páginas adicionales:{toc}

1. Asegúrese de poder utilizar LimeSurvey en su sitio web

Asegúrese de que su servidor cumpla con los siguientes requisitos adicionales:

Requerido:

  • Mínimo 80 MB de espacio en disco
  • MySQL 4.1.0 o posterior O Microsoft SQL Server 2000 o posterior O Postgres 8.1 o posterior
  • PHP 5.1.2 o posterior con los siguientes módulos/bibliotecas habilitados:
    • Biblioteca de extensión mbstring (Funciones de cadena multibyte) (consulte también Preguntas frecuentes sobre la instalación )
    • biblioteca PHP mysql5 o pgsql (que es estándar con los proveedores de alojamiento; si ha configurado su propio servidor, asegúrese de que esté instalado)

Nota: Asumimos que no tiene ninguna biblioteca estándar de PHP explícitamente desactivada (como sesiones, pcre, ctype u otras).

Extensiones PHP opcionales:

En la mayoría de los casos, su proveedor de espacio web o administrador del sistema podrá ayudarle con estos componentes opcionales.

Si desea probar LimeSurvey en su máquina local, le recomendamos XAMPP, que es un paquete de software fácil de instalar que contiene un servidor web completo con Apache, MySQL, PHP y Perla. LimeSurvey se ejecutará en XAMPP sin necesidad de configuración.

Si desea ejecutar el servidor IIS de Microsoft, consulte "Instalación en XP con IIS".

1.1 Alojamiento para LimeSurvey

LimeSurvey debería funcionar con la mayoría de las empresas de hosting que proporcionan PHP y MYSQL. Si desea una versión ya instalada de LimeSurvey, considere usar LimeSurvey Cloud; de lo contrario, consulte nuestro lista de empresas de alojamiento compatibles con LimeSurvey.

2. Descargue el paquete LimeSurvey

Descargue el último paquete zip estable de LimeSurvey (también hay paquetes gzip, bz2 y 7zip disponibles para su conveniencia) y guárdelo en su disco local.

3. Desempaquetar el paquete LimeSurvey

Descomprima el archivo zip en un directorio/carpeta dedicado utilizando su software de compresión preferido. Cuando descomprima el archivo, asegúrese de descomprimir la estructura del directorio con los archivos (este es el comportamiento predeterminado para la mayoría de los programas de compresión). El nombre de la ruta del directorio de instalación no debe incluir los caracteres ( o ), pero puede incluir el carácter espacio.

4. Recopile información sobre su servidor

Necesitará saber lo siguiente para instalar LimeSurvey en su servidor web correctamente:

  • ¡La URL de su sitio web deseado donde residirán sus scripts (por ejemplo: http://my.domain.com/limesurvey)! N!*La ubicación del disco físico en su servidor donde residirán sus scripts (es decir: /home/usr/htdocs/limesurvey)
  • La ubicación IP/net de su servidor de base de datos (es decir: localhost )
  • Si su servidor de base de datos utiliza un puerto no estándar, averigüe qué puerto es.
  • Su nombre de usuario y contraseña para su servidor de base de datos
  • Con la mayoría de los proveedores no puede permitir que el script cree la base de datos pero tendrá que hacerlo usted mismo. Si utiliza un proveedor de este tipo, cree usted mismo una base de datos (por ejemplo, limesurvey).

5. Configurar LimeSurvey

Ahora abra el archivo config.php en el directorio raíz /limesurvey/ con su editor de texto preferido.

5.1 Configuraciones básicas

Recorra config.php y verifique/configure las siguientes opciones:

  • $databasetype: Este es el tipo de base de datos. Por el momento, puede configurar aquí "mysql" para el servidor de base de datos MySQL, "odbc_mssql" o "mssqlnative" (requiere el controlador PHP MSSQL nativo de Microsoft) para el servidor Microsoft SQL y "postgres" para Postgres SQL Server. Al menos esos son los que se han probado. (:gran sonrisa:)
Archivo:help.png Importante: Si tiene un servidor Microsoft SQL, asegúrese de que su base de datos utilice una intercalación que no distinga entre mayúsculas y minúsculas (debe estar configurada de forma predeterminada).
  • $databaselocation: Establezca esto en la ubicación IP/red de su servidor de base de datos. En la mayoría de los casos, "localhost" funcionará. Si está utilizando MSSQL, intente utilizar<MACHINENAME> /<SERVERNAME> en su lugar.
  • $databasename: El nombre de la base de datos en su servidor de base de datos que utilizará para LimeSurvey. Si tiene permisos de alto nivel en el servidor, puede crear una base de datos desde LimeSurvey. En este caso, coloque en esta configuración la base de datos que se llamará. Alternativamente, puede utilizar aquí el nombre de una base de datos creada previamente. Si proporciona un nombre de base de datos existente, asegúrese de que la base de datos no contenga tablas antiguas de LimeSurvey.
  • $databaseuser: Su nombre de usuario del servidor de base de datos
Important: If you are using Postgres make sure your user is also the database owner.
  • $databasepass: Your database server password
  • $dbprefix: You can leave this setting blank (ie:  $dbprefix="";) if you are using a separate database for LimeSurvey alone. If you want to share a database between LimeSurvey and other database applications, add a prefix to this setting. The recommended prefix is "lime_", but really - this is up to you. Note: Creating a database and a username in MySQL with command line is described in Installation FAQ.
  • $rooturl: This should be set to the URL location of your LimeSurvey scripts. If you copied the LimeSurvey files into the folder limesurveyfolder you have to rename {$_SERVER['SERVER_NAME']}/limesurvey to the folder name you have chosen ({$_SERVER['SERVER_NAME']}limesurveyfolder). The variable {$_SERVER['SERVER_NAME']} will attempt to do determine your domain name atomatically, so usually don't change it. If it doesn't work, set this to full server URL. (Example "http://www.mydomain.com/limesurvey"). If you want LimeSurvey to only use SSL change http to https (provided that you have SSL certificates correctly installed and configured on your server). If you want to use http & https at the same time just leave this setting at http.
  • $rootdir: Usually you don't need to change this. It should be set to the physical disk location of your scripts. The default setting will attempt to do this for you, so most probably you won't need to change anything here (the section "dirname('''FILE''');" tries to do this automatically). If it doesn't work, type the disk location in manually - for example /home/public_html/limesurvey.
  • $defaultuser: When the script has access control turned on this is the default user that is created when LimeSurvey first sets up your security settings.
  • $defaultpass: When the script has access control turned on this is the default password that is created when LimeSurvey first sets up your security settings.
Note: Both settings ($defaultuser and $defaultpass) are used only for the initial setup. After LimeSurvey has set up the database these settings are not used at all.

5.2 Optional settings

There are many more optional settings you can set in config.php. Most of them are for installation only and can later be change in the Global settings dialog. For more information on these optional settings please check out the this page. However for a basic setup just continue with the next step.

6. Upload the files to your web server

Using your FTP program, connect to your web server and create a directory to store your scripts. Then upload the files using the directory structure they are in. Make sure you upload the files in binary mode (check the settings of your FTP program). Please note that uploading in ASCII mode can lead to uncommon errors (e.g. 'class not found' error during installation), also images may not be uploaded correctly.

7. Set Directory permissions

For the script to work properly it needs certain access to some directories - this applies especially to Linux/*nix systems.

  • The "/limesurvey/tmp" directory is used for imports & uploads and should be set to Read & Write for your webserver.
  • The "/limesurvey/upload/" directory and all its subdirectories must also have Read & Write for your webserver in order to enable picture and media files upload.
  • The other directories can be set to Read Only or in Linux/Unix. You may wish to set the permissions on each file within the /limesurvey/admin directory to Read Only.
Hint: If you are using Linux then depending on your webserver configuration you will have to chmod the rights on the writable folders to 755 or 777. Try 755 first - if it does not work 'upgrade' to 777.

8. Run the installation script

Go to "http://your.domain.com/limesurvey/admin/install". If you configured everything correctly you will be asked to create the database and/or create the tables inside the database. LimeSurvey then creates the needed tables in the database.

After the script shows that it successfully created the tables, you will be prompted to rename or delete the /admin/install directory - so just do it (:biggrin:).

9. Connect to the administration script for the first time

You are done! Open your browser and enter the URL of your admin.php script. Assuming you used LimeSurvey as the directory name to store the files in, this will be something like "http://your.domain.com/limesurvey/admin/admin.php".

You should get a login screen. The default login credentials are

User: admin

Password: password

You will be prompted to change the default password after you logged in. Have fun!

10. What if I have problems...

Like all computer programs, most of the time things will work just like the instructions say, but sometimes they just won't. There are too many possible reasons for things not going according to plan to describe here. If you have trouble, first check out the Installation FAQ. If you don't find your answer there please post your problem and any error messages in the LimeSurvey forums on limesurvey.org or join the IRC channel: