Actions

Installation FAQ/it: Difference between revisions

From LimeSurvey Manual

(Created page with "'''Se non trovi la sezione mbstring''' potresti avere un problema tra le mani.")
(Created page with "Ci sono tre possibili scenari: * Se è il server del tuo provider: chiedi al tuo provider di attivare l'estensione in PHP o che ti dica come farlo tu stesso - se hai un buon p...")
Line 73: Line 73:
'''Se non trovi la sezione mbstring''' potresti avere un problema tra le mani.
'''Se non trovi la sezione mbstring''' potresti avere un problema tra le mani.


There are three possible scenarios:
Ci sono tre possibili scenari:
*If it's your providers server: Ask your provider to activate that extension in PHP or how to activate it - if you have a good administration panel for your server you may be able to activate it yourself.
* Se è il server del tuo provider: chiedi al tuo provider di attivare l'estensione in PHP o che ti dica come farlo tu stesso - se hai un buon pannello di amministrazione per il tuo server potresti essere in grado di attivarlo tu stesso.
*If it's your own '''Linux''' server: You may have to re-compile PHP and include the mbstring library. Ask the Linux experts how to do that. In most Linux versions today you can install it using your Linux packet manager.
* Se è il tuo proprio '''Linux''' server: potresti dover ri-compilare PHP includendo la libreria mbstring. Chiedi agli esperti Linux come fare. Nella maggior parte delle versioni Linux odierne, puoi installarla utilizzando il tuo Gestore di Pacchetti Linux.
**If you are using a version of Linux that supports 'yum' (CentOS, RedHat, Fedora):
* * Se stai utilizzando una versione Linux che supporta 'yum' (CentOs, RedHat, Fedora):
### Use the terminal (as a super user) and type: '''yum install php-mbstring'''
### Usa il terminale (come superutente) ed inserisci: '''yum install php-mbstring"
### Make sure to update /etc/php.ini to update and uncomment the various mbstring params
### Assicurati di aggiornare /etc/php.ini per aggiornare e decommentare i vari parametri di mbstring.
### Make sure to restart apache after installing it: '''/etc/init.d/httpd restart'''
### Assicurati di riavviare Apache dopo averlo installato: '''etc/init.d/httppd restart'''
*If it's your own '''Windows''' server: Search for php.ini on your system, open it with an editor and search for mbstring. Most probably the line that contains that string is commented out with a semicolon. Remove the semicolon, save and restart your web server.
* Se è il tuo proprio '''Windows''' server: cerca il file PHP.ini nel tuo sistema, aprilo con un editor e ricerca mbstring. Con molta probabilità, la linea che contiene quella stringa è commentata con un ; (punto e virgola). Rimuovi il ';', salva e riavvia il tuo server web.


== Stuck at checking file system permissions ==
== Stuck at checking file system permissions ==

Revision as of 14:57, 10 April 2017

Contenuti:

Installazione sul proprio computer

LimeSurvey può essere installato sul proprio computer attraverso MAMP/XAMP o qualsiasi altro sistema. Solo che il proprio computer non è un server web: non è accessibile via web dagli altri utenti.

Quindi, se vuoi diffondere il tuo questionario nel web, devi:

  • possedere un server
  • o avere uno spazio web in hosting
  • trovare un hoster specializzato in istanze LimeSurvey.
  L'installazione sul proprio computer non è fatta per condividere il proprio sondaggio via internet.


Inizio Installazione

Come posso creare un database ed un utente in MySQL con l'accesso a linea di comando?

Devi inserire i comandi sottostanti nel tuo MySQL:

create database <your_database_name>;

create user <your_database_username>;

create user <your_database_username>@localhost;

set password for <your_database_username> = PASSWORD('<your_database_password>');

set password for <your_database_username>local@host = PASSWORD('<your_database_password>');

grant all on <your_database_name>.* to '<your_database_username>';

grant all on <your_database_name>.* to '<your_database_username>'@'localhost';

You have to replace <your_database_name>, <your_database_username> and <your_database_password> in above commands with according values.

Cosa succede se non posso creare un database tramite lo script di LimeSurvey?

Normalmente lo script crea un nuovo database e, successivamente, la struttura delle tabelle. Se il Provider Internet non fornisce direttamente i permessi per creare un nuovo database in MySQL allora sarà necessario contattare l'amministratore del server per creare manualmente il database (e farsi dare il nome e il login) che dovrà avere i corretti permessi di accesso (leggi/scrivi/esegui). In questo caso bisognerà inserire il nome del database, oltre al nome utente e alla password, nel file config.php prima di lanciare il file admin.php. Solo a questo punto lo script potrà creare la struttura delle tabelle.

Pagina bianca quando si accede alla pagina d'installazione

Questo problema ha a che fare con l'installazione di PHP e non con l'installazione di LimeSurvey:

  • Verifica che sia installato il modulo MySQL PHP (php-mysql).
  • Verifica che l'istanza PHP stia caricando il file PHP.ini che stai modificando e che non compaiano altri file PHP.ini nel tuo sistema.
  • Verifica il percorso e i permessi delle seguenti impostazioni all'interno del tuo file PHP.ini
upload_tmp_dir="/temp"

session.save_path="/temp"
  • Verifica che il tuo server stia eseguendo una versione corretta di PHP (per esempio: questa "pagina bianca" appariva in PHP v4.4 e LimeSurvey v2.00+)

==Messaggi di errore per risorse inesistenti"

Qualche volta i file possono non essere caricate correttamente oppure corrotte durante l'upload. Ciò determina messaggi d'errore differenti. La maggior parte di essi si riferisce a file o funzioni contenuti in un file che non è reperibile.

Soluzione: Ricarica tutti i file utilizzando la modalità binaria del tuo software FTP.

Pagina Requisiti

Cos'e' la PHP Multibyte String Functions library?

The mbstring library is a PHP library to be able to convert char sets from one language to another. You need it if you want to run LimeSurvey. To check if it is already installed open the URL

http://<your_server>/<your_limesurvey_directory>/admin/install/phpinfo.php

from the web browser. A lot of information will be shown. Search for the string 'mbstring' under the Configuration section.

If you find the mbstring section then all should be well and you can continue on with your LimeSurvey installation!

Se non trovi la sezione mbstring potresti avere un problema tra le mani.

Ci sono tre possibili scenari:

  • Se è il server del tuo provider: chiedi al tuo provider di attivare l'estensione in PHP o che ti dica come farlo tu stesso - se hai un buon pannello di amministrazione per il tuo server potresti essere in grado di attivarlo tu stesso.
  • Se è il tuo proprio Linux server: potresti dover ri-compilare PHP includendo la libreria mbstring. Chiedi agli esperti Linux come fare. Nella maggior parte delle versioni Linux odierne, puoi installarla utilizzando il tuo Gestore di Pacchetti Linux.
  • * Se stai utilizzando una versione Linux che supporta 'yum' (CentOs, RedHat, Fedora):
      1. Usa il terminale (come superutente) ed inserisci: yum install php-mbstring"
      2. Assicurati di aggiornare /etc/php.ini per aggiornare e decommentare i vari parametri di mbstring.
      3. Assicurati di riavviare Apache dopo averlo installato: etc/init.d/httppd restart
  • Se è il tuo proprio Windows server: cerca il file PHP.ini nel tuo sistema, aprilo con un editor e ricerca mbstring. Con molta probabilità, la linea che contiene quella stringa è commentata con un ; (punto e virgola). Rimuovi il ';', salva e riavvia il tuo server web.

Stuck at checking file system permissions

If SELinux is activated (primarily on CentOS) then you might get an error that the file system permissions are not correct but the list of directories is empty. SELinux prevents writing even though the permissions are on e.g. 777 or 755. You need to configure SELinux for your server correctly - check out the SELinux documentation.

After database creation

Blank page after database creation

Symptoms

  • LimeSurvey installed OK, and database was created, but instead of the admin page, you get an empty page
  • Web surver log shows "Fatal error: Call to a member function on a non-object in /path/to/limesurvey/admin/login_check.php on line 69"

Fix

This is probably an incorrect setting for $rooturl or $rootdir in config.php. In particular, config.php attempts to set $rootdir correctly by calling dirname('''FILE''') and while this usually works, it can be upset when LimeSurvey is installed in a user's home or public_html directory and the home directory is mounted over NFS. Try setting $rootdir manually, and in particular, while your shell or pwd command may show a path like "/disks/hostname/home/username/public_html/limesurvey", try using "/home/username/public_html/limesurvey".

When accessing admin page, the browser keeps running and will eventually fail to show it

Symptoms

  • LimeSurvey installed OK and database was created. But when you access the admin page, the browser keeps running and will eventually fail to show the page.
  • When you check the web server access log, its size has become so big (in some cases, more than 2 GB).
  • Inside the access log, you get this message filling the log.

Warning: fread() [function.fread]: Length parameter must be greater than 0 in /limesurvey/classes/php-gettext/streams.php on line 120

Note: line number may be different depending on your LimeSurvey version.

Fix

This may be caused by the mbstring.func_overload setting. Check the setting in your php.ini and set as the following.

mbstring.func_overload = 0

Note: This means no function overloading. See PHP manual for this setting: Function Overloading Feature

When accessing admin page, the browser reports Fatal error: Call to a member function gT() on a non-object in login_check.php on line 76

Symptoms

  • LimeSurvey installed OK and database was created. But when rdirected to the admin page, the browser displayed the the listed error.
  • $rootdir and $rooturl are correctly set in config.php.
  • The disk path name for limesurvey installation directory includes one of the following characters: ()+

Note: Other characters may also induce the same behaviour

Fix

Move / rename the limesurvey installation directory so that pathname does not include either the ( or ) characters

After installation

For all issues happening after a successful installation please refer to the Troubleshooting page.