Actions

Installation FAQ/it: Difference between revisions

From LimeSurvey Manual

(Created page with "Contenuti:")
No edit summary
 
(100 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<languages />
<languages />
Contenuti:
Contenuti:
__TOC__


=During Installation (Limesurvey 1.92 and below)=
==Installazione sul proprio computer==


==How can I create a database and a user in mysql with command line access?==
LimeSurvey può essere installato sul tuo computer con MAMP/XAMPP o qualsiasi altro sistema. Tieni presente che il tuo computer non è un server web: non è accessibile via web a nessun altro utente.


You have to enter the below commands in your mysql.
Per rendere il tuo sondaggio raggiungibile da altri utenti via web, devi:


create database '''<your_database_name>''';
* possedere un server o uno spazio web da un host provider
* o trovare un host provider specializzato in LimeSurvey


create user '''<your_database_username>''';
==Inizio Installazione==


create user '''<your_database_username>'''@localhost;
==Come posso creare un database e un utente in MySQL con accesso da riga di comando?==


set password for '''<your_database_username>''' = PASSWORD(''''<your_database_password>'''');
Devi inserire i seguenti comandi nel tuo MySQL:


set password for '''<your_database_username>'''@localhost = PASSWORD(''''<your_database_password>'''');
* <code>create database ''' ''';</code><your_database_name> <code>create database ''' ''';</code>


grant all on '''<your_database_name>'''.* to ''''<your_database_username>'''';
* <code>create user ''' ''';</code><your_database_username> <code>create user ''' ''';</code>


grant all on '''<your_database_name>'''.* to ''''<your_database_username>''''@'localhost';
* <code>create user ''' '''@localhost;</code><your_database_username> <code>create user ''' '''@localhost;</code>


You have to replace '''<your_database_name>''', '''<your_database_username>''' and '''<your_database_password>''' in above commands with according values.
* <code>set password for ''' ''' = PASSWORD('''' '''');</code><your_database_username> <code>set password for ''' ''' = PASSWORD('''' '''');</code><your_database_password> <code>set password for ''' ''' = PASSWORD('''' '''');</code>


==What if I can't create a database through a script?==
* <code>set password for ''' '''@localhost = PASSWORD('''' '''');</code><your_database_username> <code>set password for ''' '''@localhost = PASSWORD('''' '''');</code><your_database_password> <code>set password for ''' '''@localhost = PASSWORD('''' '''');</code>


Normally, the script creates a new database, and then the table structure. However if your server/ISP doesn't give you admin rights to create a new database in MySQL, you will need to contact your server administrator to create the necessary database (or create it yourself). They should create a blank database for you that gives you the appropriate access rights (ie: read/write/create). Start the LimeSurvey installation as usually and it will then create the tables in the existing database.
* <code>grant all on ''' '''.* to '''' '''';</code><your_database_name> <code>grant all on ''' '''.* to '''' '''';</code><your_database_username> <code>grant all on ''' '''.* to '''' '''';</code>


==What is this mbstring (Multibyte String Functions) library?==
* <code>grant all on ''' '''.* to '''' ''''@'localhost';</code><your_database_name> <code>


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
Nel terminale, <code>''' '''</code><your_database_name> <code>''' '''</code> , <code>''' '''</code><your_database_username> <code>''' '''</code> e <code>''' '''</code><your_database_password> <code>''' '''</code> devono essere sostituiti con i valori corrispondenti/desiderati.


 http://<your_server>/<your_limesurvey_directory>/admin/install/phpinfo.php
==Cosa succede se non posso creare un database tramite lo script di LimeSurvey?==


from the web browser. A lot of information will be shown. Search for the string 'mbstring' under the '''Configuration''' section.
Normalmente, lo script crea un nuovo database e quindi la struttura della tabella. Tuttavia, se il tuo server/ISP non ti concede i diritti di amministratore per creare un nuovo database in MySQL, dovrai contattare l'amministratore del tuo server per ottenere la creazione del database necessario (o crearlo tu stesso se ricevi le autorizzazioni richieste). Il database vuoto appena creato dovrebbe includere i diritti di accesso appropriati (ad esempio: lettura/scrittura/creazione). Quindi, dovresti essere in grado di avviare l'installazione di LimeSurvey, che creerà le tabelle all'interno del database appena creato.


If you find the mbstring section then all should be well and you can continue on with your LimeSurvey installation!
==Pagina vuota quando si accede alla pagina di installazione==


'''If you don't find the mbstring section''' you might have a problem on your hands.
Questo problema non si verifica all'interno dell'installazione di LimeSurvey ma all'interno dell'installazione di PHP.
*Verifica che il modulo MySQL PHP (php-mysql) sia installato.
*Verifica che l'installazione di PHP stia caricando il file PHP.ini stanno modificando e non analizzando altri file PHP.INI sul tuo sistema.
*Verifica la posizione e le autorizzazioni della seguente impostazione nel tuo PHP.ini:


There are three possible scenarios:
<syntaxhighlight lang="c">upload_tmp_dir="/temp"
*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.
*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.
**If you are using a version of Linux that supports 'yum' (CentOS, RedHat, Fedora):
### Use the terminal (as a super user) and type: '''yum install php-mbstring'''
### Make sure to update /etc/php.ini to update and uncomment the various mbstring params
### Make sure to restart apache after installing it:  '''/etc/init.d/httpd 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.


==When I am entering special chars (Chinese, Cyrillic, Greek, Arabic) into my survey, every character is shown as a question mark?==
sessione.save_path="/temp"</syntaxhighlight>
*Verifica che il tuo server esegua una versione PHP adatta.


This happens if your database itself is not created to use an UTF-8 charset. This can happen when you have to create the database using a provider administration panel. You can fix this problem by executing the following SQL command on your database (using for example phpMyAdmin)
==Messaggi di errore dovuti a risorse inesistenti==


ALTER DATABASE `<your_database_name>` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
A volte, i file non vengono caricati correttamente o si rompono durante il processo di caricamento. Questo porta a diversi messaggi di errore diversi. La maggior parte di essi fa riferimento a un file oa una funzione all'interno di un file che non può essere trovata.


Replace <your_database_name> with the name of your database. '''You need to do this before installing LimeSurvey.'''
'''Soluzione:''' Ricarica tutti i file utilizzando la modalità binaria del tuo programma FTP.


==Blank page when accessing the Install page==
==Pagina Requisiti==


The problem is not with the LimeSurvey installation but with the PHP installation.
==Cos'è la libreria mbstring (Multibyte String Functions)?==
*Verify you have the MySQL PHP module (php-mysql) installed.
*Verify your PHP install is loading the PHP.ini file your are modifying and not parsing other PHP.INI files on your system.
*Verify the location and permissions of the following setting in your PHP.ini


<syntaxhighlight lang="c" enclose="div">upload_tmp_dir="/temp"
La libreria mbstring è una libreria PHP in grado di convertire set di caratteri da una lingua all'altra. Ne hai bisogno se vuoi eseguire LimeSurvey. Per verificare se è già installato, apri l'URL da un browser web:


session.save_path="/temp"</syntaxhighlight>
<nowiki>http://<your_server> /<your_limesurvey_directory> /admin/install/phpinfo.php</nowiki>
*Verify your server runs a suitable PHP version (e.g. this "blank page" problem appeared with PHP v4.4 and LimeSurvey v2.00+).


==Error messages because of a not existing ressources==
Verranno mostrate molte informazioni. Cerca la stringa 'mbstring' nella sezione '''Configurazione'''. Se trovi la sezione mbstring, dovrebbe andare tutto bene e puoi continuare con l'installazione di LimeSurvey!


Sometimes files are not uploaded correctly or were broken during upload. This leads to several different error messages. Most of them refer to a file or function within a file which can't be found.
'''Se non trovi la sezione mbstring''', potresti avere un problema tra le mani. Ci sono tre possibili scenari:
*Se è il server del tuo host provider, chiedi l'attivazione di quell'estensione in PHP o maggiori informazioni su come puoi attivarla - se hai un buon pannello di amministrazione per il tuo server, puoi essere in grado di attivarlo da soli
*Se è il tuo server '''Linux''', potresti dover ricompilare PHP e includere la libreria mbstring. Chiedi agli esperti di Linux come farlo. Tuttavia, puoi installarlo usando il tuo gestore di pacchetti Linux, che al giorno d'oggi è per lo più disponibile in tutte le distribuzioni Linux
**Se stai usando una versione di Linux che supporta 'yum' (CentOS, RedHat, Fedora)...
***...usa il terminale (come super utente) e digita: '''yum install php-mbstring'''
***...assicurati di aggiornare /etc/php. ini e decommenta i vari parametri mbstring
***...assicurati di riavviare apache dopo averlo installato: '''/etc/init.d/httpd restart'''
*Se è tuo '' Server 'Windows''', cerca php.ini sul tuo sistema, aprilo con un editor e cerca mbstring. Molto probabilmente, la riga che contiene la stringa è commentata con un punto e virgola. Rimuovi il punto e virgola, salva e riavvia il tuo server web


'''Solution:''' Re-upload all files using the binary mode of your FTP program.
== Bloccato nel controllo dei permessi del file system ==
Se SELinux è attivato (principalmente su CentOS), potresti ricevere un errore che indica che i permessi del file system non sono corretti, anche se l'elenco delle directory è vuoto. SELinux impedisce la scrittura anche se i permessi sono, ad esempio, su 777 o 755. Per configurare correttamente SELinux per il tuo server, controlla la [https://wiki.centos.org/HowTos/SELinux Documentazione di SELinux].


=During Installation (Limesurvey 2.0 and above)=
==Dopo la creazione del database==


==ADD NEW TOPICS HERE (Thanks!)==
==Pagina bianca dopo la creazione del database==


=After Database Creation=
===Sintomi===
* LimeSurvey è installato correttamente e il database è stato creato, ma al posto della pagina di amministrazione viene visualizzata una pagina vuota
* Il registro del server Web mostra ''"Errore irreversibile: chiamata a un funzione membro su un non-oggetto in /path/to/limesurvey/admin/login_check.php alla riga 69"''


==Blank Page after Database Creation==
===Correggi===


===Symptoms===
Ciò è probabilmente correlato a un'impostazione errata per <code>$rooturl</code> o <code>$rootdir</code> in config.php. Il file config.php tenta di impostare correttamente <code>$rootdir</code> chiamando<nowiki> <code>dirname('''FILE''')</code></nowiki> . Sebbene questo di solito funzioni, può essere disturbato quando LimeSurvey è installato nella directory home o public_html di un utente e la directory home è montata su NFS. Per impostare manualmente <code>$rootdir</code> (la tua shell o il comando pwd potrebbero mostrarti un percorso come /disks/hostname/home/username/public_html/limesurvey), prova a usare /home/username/public_html/limesurvey.
* 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===
==Quando si accede alla pagina di amministrazione, il browser continua a funzionare e alla fine non riuscirà a mostrarlo==


This is probably an incorrect setting for $rooturl or $rootdir in config.php. In particular, config.php attempts to set $rootdir correctly by calling <nowiki>dirname('''FILE''')</nowiki> 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".
===Sintomi===
* LimeSurvey è installato correttamente e il database è stato creato. Tuttavia, quando accedi alla pagina di amministrazione, il browser continua a funzionare e alla fine non riuscirà a mostrare la pagina! N!* Quando controlli il registro di accesso al server web, le sue dimensioni sono diventate piuttosto grandi (in alcuni casi, più di 2 GB)
* All'interno del registro degli accessi, viene visualizzato questo messaggio che riempie il registro:


==When accessing admin page, the browser keeps running and will eventually fail to show it==
{{Alert|title=Warning|text=''fread() [function.fread]: il parametro di lunghezza deve essere maggiore di 0 in /limesurvey/classes/php-gettext/streams.php alla riga 120.}}''


===Symptoms===
{{Nota|Il numero di riga può variare a seconda della tua versione di LimeSurvey.}}
* 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
===Correggi===
 
''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.


Ciò può essere causato dall'impostazione mbstring.func_overload. Modificare la seguente impostazione nel file php.ini:
<syntaxhighlight lang="php" enclose="pre">
mbstring.func_overload = 0
mbstring.func_overload = 0
</syntaxhighlight>


''Note:'' This means no function overloading. See PHP manual for this setting: [http://us3.php.net/manual/en/mbstring.overload.php Function Overloading Feature]
{{Nota|Questo significa nessun sovraccarico di funzioni. Consulta il manuale PHP per questa impostazione: [http://us3.php.net/manual/en/mbstring.overload.php 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 Login=
 
==Any action in admin page will return you to login screen==
 
This may happen for the following two main reasons :
*PHP sessions problems
*UTF8 encoding problems
*IE (6,7 and 8) problems
 
<u>PHP Sessions :</u>
# Update upload_tmp_dir and session.save_path in php.ini
# Create the configured session and upload directories
# IIS: Assigned permission to create and modify to IIS guest user account
# Apache: Make sure your webserver has permissions to write into the configured directory
# Check if the variable  "session.use_cookies" in php.ini is set to 1.
# Check the variable "session.auto_start" in php.ini. If it is set to 1, change it to 0.
 
<u>UTF8 Encoding : </u>
 
If you edit any file (most probably config.php) do not save it as UTF8 to support special language chars! Always save .php files as true ANSI/ISO format. Starting with 1.87 you can set the most important settings inside the application using the 'Global settings' dialog (like site name, administrator name, etc.).
 
<u>IE Cookies :</u>
 
IE (6,7 and 8) does not support underscore "_" in the server hostname. If it is the case, the cookies are not managed and cookie(s) is(are) not set. So change the server hostname under apache or IIS.
 
==LimeSurvey and suhosin ("Session has expired")==
 
You might, at one point, get a message like :
 
<syntaxhighlight lang="php" enclose="div">ERROR
 
We are sorry but your session has expired.
 
Either you have been inactive for too long, you have cookies disabled for your browser, or there were problems with your connection.</syntaxhighlight>
 
And if you have Suhosin activated on your server, that's might be the reason why you get this in the middle of a survey.
 
NB : when your survey is not active, the behaviour might be different, you could be redirected in the middle of a survey to the public list of surveys. The solution is the same.
 
Suhosin is an advanced protection system for PHP installations. Suhosin default configuration can make trouble to LimeSurvey installation.
 
First think to test with suhosin log, set suhosin.log.sapi = 511 and suhosin.simulation = on according with [http://www.hardened-php.net/suhosin/configuration.html suhosin documentation].
 
The configuration file is usually located in /etc/php5/apache2/conf.d/suhosin.ini but to be sure you can check your phpinfo (Limesurvey administration > Global Settings > Button Show phpinfo > Line : "Additional .ini files parsed") to get the correct path.
 
Don't forget to restart your Apache server for the parameters to be taken into account (service apache2 restart).
 
When the simulation is on, Suhosin is not blocking anything and the errors are reported into the logs (usually in your syslog : /var/log/syslog). If you appear to get error messages such as "ALERT-SIMULATION - configured POST variable limit exceeded" that's Suhosin alerting...
 
This configuration seems to work well with Limesurvey:
 
<syntaxhighlight lang="php" enclose="div">suhosin.memory_limit = 128
 
suhosin.post.max_value_length = 5000000
 
suhosin.post.max_vars = 5000
 
suhosin.request.max_value_length = 5000000
 
suhosin.request.max_vars = 5000</syntaxhighlight>
 
With those parameters, you should be able to put the suhosin.simulation back at the "off" value (so that the serveur is protected and limesurvey still works).
 
The default values of suhosin are not working well with limesurvey. If you really want to secure your serveur tightly you might want to use the simulation mode to tune the setting and find the good values between 1000 and 5000 for the vars and 1000000 and 5000000 for the value_lenghts.
 
<div class="simplebox"> Note: There was an additional PHP setting introduced recently: max_input_vars - this setting is the same as suhosin.post.max_vars but needs to be set separately in php.ini . </div>
 
==LimeSurvey and suhosin ("quick translate trouble")==
 
You can have some problem with the quick translate module when you are on OpenBSD 5.1 with php-5.3.10.
 
The symptom is : modification via "Quick translate --> options answer" are not update
 
You must downgrade your php version to php-5.2.17p8 and use the suhosin tweak proposed above.
 
==I can't change the language!==
 
No matter what language you choose, the interface (admin und user) always is in English language. Normally this is caused by a bug in your PHP version. There is no other fix for this than updating your PHP version.
 
==Some common errors (IIS focused)==
 
===Index.php won't open===
 
Possible cause: This might happen if you haven't installed necessary extensions
* You need to install Multi-byte string, and MSSQL (or MySQL) extensions
 
Possible cause: ISAPI filter not configured
* In IIS, for the website (you could do it at the directory level) you must configure it to use php5isapi.dll
 
===Index.php won't open and "php.exe -i" gives error messages about missing .dll's===
 
This may happen if you install too many extensions
* If you install all PHP extensions, PHP will fail because not all dependencies were met (e.g. oracle package needs oracle dll's)
* Install only the extensions that you need
* To test, try running php.exe -i from the command line
 
===Message stating database was missing===
 
This may happen if you navigate to wrong url
* Make sure you go to limesurvey/admin/install/index.php instead of limesurvey/index.php !
 
===Above fixes do not solve the problem===
 
This may happen if you have not restarted IIS
* Restart IIS
 
Things that were easy to forget:
* .php needs to be associated to php5isapi.dll filter (It did this for me automagically)
* limesurvey/tmp directory needs writer permission for survey uploads
* updating doc_root in php.ini and $rootdir in config.php
 
===Missing files ("No such file or directory")===
 
When uploading LimeSurvey to your server it might happen that the connection is interrupted so that some files are not transferred or not transferred completely. Depending on the files you can receive error message at different part of LimeSurvey usage. Normally missing files throw errors like
 
<div class="simplebox">
 
"Warning: require_once(/path/to/your/limesurvey/installation/filename) [function.require-once]: failed to open stream: No such file or directory in /path/to/your/limesurvey/installation/filename on line 12345)" OR
 
"Fatal error: require_once() [function.require]: Failed opening required 'require_once(/path/to/your/limesurvey/installation/filename)' (include_path='.:/x/y/z) in /path/to/your/limesurvey/installation/filename on line 12345"
 
</div>
 
'''Solution'''
 
1. Delete all uploaded files.
 
2. Re-upload the files.
 
(3. If necessary: Re-install by browsing to /limesurveyfolder/admin/install)
 
==Not able to add or edit subquestions/answers after upgrade==


If you're not capable of editing or adding a question, ask youre host provider to change the mod_security setting of the domain name. See the forum thread [http://www.limesurvey.org/en/support/forums/1-installation-a-update-issues/46435-not-able-to-add-or-edit-questions-on-new-190-?limit=10 Not Able to Add or Edit Questions on new 1.90] for more info.
==Quando si accede alla pagina di amministrazione, il browser riporta un errore irreversibile: chiamata a una funzione membro gT() su un non oggetto in login_check.php alla riga 76==


==Fancy URLs by removing index.php from the URL path==
===Sintomi===
* LimeSurvey è installato correttamente e il database è stato creato. Ma quando viene reindirizzato alla pagina di amministrazione, il browser visualizza l'errore elencato.
* <code>$rootdir</code> e <code>$rooturl</code> sono impostati correttamente in config.php.
* Il nome del percorso del disco per la directory di installazione di limesurvey include uno dei seguenti caratteri : '(',')' o '+'.


If you want to use fancy URLs and so not have /index.php in every URL please edit /application/config/config.php and change
{{Alert|title=Attenzione|text=Anche altri caratteri possono indurre lo stesso comportamento.}}


<syntaxhighlight lang="php" enclose="div">'showScriptName' => true,</syntaxhighlight>
===Correggi===


to
Sposta/rinomina la directory di installazione di LimeSurvey in modo che il nome del percorso non includa i seguenti caratteri: '(',')' o '+' caratteri.


<syntaxhighlight lang="php" enclose="div">'showScriptName' => false,</syntaxhighlight>
=Dopo l'installazione=  


For this to work properly you must use an Apache webserver with a properly installed mod_rewrite module.
Per tutti gli altri problemi che possono verificarsi dopo un'installazione corretta, fare riferimento alla [[Risoluzione dei problemi|pagina di risoluzione dei problemi]].

Latest revision as of 20:29, 2 August 2023

Contenuti:

Installazione sul proprio computer

LimeSurvey può essere installato sul tuo computer con MAMP/XAMPP o qualsiasi altro sistema. Tieni presente che il tuo computer non è un server web: non è accessibile via web a nessun altro utente.

Per rendere il tuo sondaggio raggiungibile da altri utenti via web, devi:

  • possedere un server o uno spazio web da un host provider
  • o trovare un host provider specializzato in LimeSurvey

Inizio Installazione

Come posso creare un database e un utente in MySQL con accesso da riga di comando?

Devi inserire i seguenti comandi nel tuo MySQL:

  • create database ;<your_database_name> create database ;
  • create user ;<your_database_username> create user ;
  • create user @localhost;<your_database_username> create user @localhost;
  • set password for = PASSWORD(' ');<your_database_username> set password for = PASSWORD(' ');<your_database_password> set password for = PASSWORD(' ');
  • set password for @localhost = PASSWORD(' ');<your_database_username> set password for @localhost = PASSWORD(' ');<your_database_password> set password for @localhost = PASSWORD(' ');
  • grant all on .* to ' ';<your_database_name> grant all on .* to ' ';<your_database_username> grant all on .* to ' ';
  • grant all on .* to ' '@'localhost';<your_database_name>

Nel terminale, <your_database_name> , <your_database_username> e <your_database_password> devono essere sostituiti con i valori corrispondenti/desiderati.

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

Normalmente, lo script crea un nuovo database e quindi la struttura della tabella. Tuttavia, se il tuo server/ISP non ti concede i diritti di amministratore per creare un nuovo database in MySQL, dovrai contattare l'amministratore del tuo server per ottenere la creazione del database necessario (o crearlo tu stesso se ricevi le autorizzazioni richieste). Il database vuoto appena creato dovrebbe includere i diritti di accesso appropriati (ad esempio: lettura/scrittura/creazione). Quindi, dovresti essere in grado di avviare l'installazione di LimeSurvey, che creerà le tabelle all'interno del database appena creato.

Pagina vuota quando si accede alla pagina di installazione

Questo problema non si verifica all'interno dell'installazione di LimeSurvey ma all'interno dell'installazione di PHP.

  • Verifica che il modulo MySQL PHP (php-mysql) sia installato.
  • Verifica che l'installazione di PHP stia caricando il file PHP.ini stanno modificando e non analizzando altri file PHP.INI sul tuo sistema.
  • Verifica la posizione e le autorizzazioni della seguente impostazione nel tuo PHP.ini:
upload_tmp_dir="/temp"

sessione.save_path="/temp"
  • Verifica che il tuo server esegua una versione PHP adatta.

Messaggi di errore dovuti a risorse inesistenti

A volte, i file non vengono caricati correttamente o si rompono durante il processo di caricamento. Questo porta a diversi messaggi di errore diversi. La maggior parte di essi fa riferimento a un file oa una funzione all'interno di un file che non può essere trovata.

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

Pagina Requisiti

Cos'è la libreria mbstring (Multibyte String Functions)?

La libreria mbstring è una libreria PHP in grado di convertire set di caratteri da una lingua all'altra. Ne hai bisogno se vuoi eseguire LimeSurvey. Per verificare se è già installato, apri l'URL da un browser web:

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

Verranno mostrate molte informazioni. Cerca la stringa 'mbstring' nella sezione Configurazione. Se trovi la sezione mbstring, dovrebbe andare tutto bene e puoi continuare con l'installazione di LimeSurvey!

Se non trovi la sezione mbstring, potresti avere un problema tra le mani. Ci sono tre possibili scenari:

  • Se è il server del tuo host provider, chiedi l'attivazione di quell'estensione in PHP o maggiori informazioni su come puoi attivarla - se hai un buon pannello di amministrazione per il tuo server, puoi essere in grado di attivarlo da soli
  • Se è il tuo server Linux, potresti dover ricompilare PHP e includere la libreria mbstring. Chiedi agli esperti di Linux come farlo. Tuttavia, puoi installarlo usando il tuo gestore di pacchetti Linux, che al giorno d'oggi è per lo più disponibile in tutte le distribuzioni Linux
    • Se stai usando una versione di Linux che supporta 'yum' (CentOS, RedHat, Fedora)...
      • ...usa il terminale (come super utente) e digita: yum install php-mbstring
      • ...assicurati di aggiornare /etc/php. ini e decommenta i vari parametri mbstring
      • ...assicurati di riavviare apache dopo averlo installato: /etc/init.d/httpd restart
  • Se è tuo Server 'Windows', cerca php.ini sul tuo sistema, aprilo con un editor e cerca mbstring. Molto probabilmente, la riga che contiene la stringa è commentata con un punto e virgola. Rimuovi il punto e virgola, salva e riavvia il tuo server web

Bloccato nel controllo dei permessi del file system

Se SELinux è attivato (principalmente su CentOS), potresti ricevere un errore che indica che i permessi del file system non sono corretti, anche se l'elenco delle directory è vuoto. SELinux impedisce la scrittura anche se i permessi sono, ad esempio, su 777 o 755. Per configurare correttamente SELinux per il tuo server, controlla la Documentazione di SELinux.

Dopo la creazione del database

Pagina bianca dopo la creazione del database

Sintomi

  • LimeSurvey è installato correttamente e il database è stato creato, ma al posto della pagina di amministrazione viene visualizzata una pagina vuota
  • Il registro del server Web mostra "Errore irreversibile: chiamata a un funzione membro su un non-oggetto in /path/to/limesurvey/admin/login_check.php alla riga 69"

Correggi

Ciò è probabilmente correlato a un'impostazione errata per $rooturl o $rootdir in config.php. Il file config.php tenta di impostare correttamente $rootdir chiamando <code>dirname('''FILE''')</code> . Sebbene questo di solito funzioni, può essere disturbato quando LimeSurvey è installato nella directory home o public_html di un utente e la directory home è montata su NFS. Per impostare manualmente $rootdir (la tua shell o il comando pwd potrebbero mostrarti un percorso come /disks/hostname/home/username/public_html/limesurvey), prova a usare /home/username/public_html/limesurvey.

Quando si accede alla pagina di amministrazione, il browser continua a funzionare e alla fine non riuscirà a mostrarlo

Sintomi

  • LimeSurvey è installato correttamente e il database è stato creato. Tuttavia, quando accedi alla pagina di amministrazione, il browser continua a funzionare e alla fine non riuscirà a mostrare la pagina! N!* Quando controlli il registro di accesso al server web, le sue dimensioni sono diventate piuttosto grandi (in alcuni casi, più di 2 GB)
  • All'interno del registro degli accessi, viene visualizzato questo messaggio che riempie il registro:
  Warning : fread() [function.fread]: il parametro di lunghezza deve essere maggiore di 0 in /limesurvey/classes/php-gettext/streams.php alla riga 120.

Template:Nota

Correggi

Ciò può essere causato dall'impostazione mbstring.func_overload. Modificare la seguente impostazione nel file php.ini:

 
mbstring.func_overload = 0

Template:Nota

Quando si accede alla pagina di amministrazione, il browser riporta un errore irreversibile: chiamata a una funzione membro gT() su un non oggetto in login_check.php alla riga 76

Sintomi

  • LimeSurvey è installato correttamente e il database è stato creato. Ma quando viene reindirizzato alla pagina di amministrazione, il browser visualizza l'errore elencato.
  • $rootdir e $rooturl sono impostati correttamente in config.php.
  • Il nome del percorso del disco per la directory di installazione di limesurvey include uno dei seguenti caratteri : '(',')' o '+'.
  Attenzione : Anche altri caratteri possono indurre lo stesso comportamento.


Correggi

Sposta/rinomina la directory di installazione di LimeSurvey in modo che il nome del percorso non includa i seguenti caratteri: '(',')' o '+' caratteri.

Dopo l'installazione

Per tutti gli altri problemi che possono verificarsi dopo un'installazione corretta, fare riferimento alla pagina di risoluzione dei problemi.