Installation FAQ/it

Contenuti:

Installazione sul proprio computer
LimeSurvey can be installed on your computer with MAMP/XAMPP or any other system. Bear in mind that your computer is not a web server - it's not accessible via web to any other user.

In order to make your survey reachable to other users via the web, you need to either:


 * own a server or a web space from a host provider
 * or find a LimeSurvey-specialized host provider

How can I create a database and a user in MySQL with command-line access?
You have to enter the commands below in your MySQL:















In terminal,,  , and   have to be replaced with the according/desired values.

Cosa succede se non posso creare un database tramite lo script di LimeSurvey?
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 get the necessary database created (or create it yourself if you receive the required permissions). The newly created blank database should include the appropriate access rights (i.e.: read/write/create). Then, you should be able start the LimeSurvey installation, which will create the tables within the newly created database.

Blank page when accessing the install page
This problem doesn't occur within the LimeSurvey installation but within the PHP installation.
 * 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:


 * Verify that your server runs a suitable PHP version.

Error messages due to non-existing resources
Sometimes, files are not uploaded correctly or are broken during the upload process. This leads to several different error messages. Most of them refer to a file or function within a file which can't be found.

Solution: Re-upload all files using the binary mode of your FTP programme.

What is the mbstring (Multibyte String Functions) library?
The mbstring library is a PHP library that can 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 from a web browser:

http:////admin/install/phpinfo.php

A lot of information will be shown. Search for the string 'mbstring' in the Configuration section. If you find the mbstring section, then all should be well and you can continue with your LimeSurvey installation!

If you don't find the mbstring section, you might have a problem on your hands. There are three possible scenarios:
 * If it's your host provider's server, ask for the activation of that extension in PHP or for further information on how you can 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. However, you can install it using your Linux package manager, which is mostly available in all the Linux distributions nowadays
 * 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 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 the string is commented out with a semicolon. Remove the semicolon, save and restart your web server

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, even if the list of directories is empty. SELinux prevents writing even though the permissions are for example on 777 or 755. To configure SELinux correctly for your server - check out the SELinux documentation.

Symptoms

 * LimeSurvey is installed correctly and the database was created, but instead of the admin page, you get an empty page
 * Web server 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 related to an incorrect setting for  or   in config.php. The file config.php attempts to set  correctly by calling. 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. To set up the  manually, (your shell or pwd command may show you a path like /disks/hostname/home/username/public_html/limesurvey), try using /home/username/public_html/limesurvey.

Symptoms

 * LimeSurvey is installed correctly and the database was created. However, 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 quite big (in some cases, more than 2 GB)
 * Inside the access log, you get this message filling the log:

''

Fix
This may be caused by the mbstring.func_overload setting. Change the following setting in the php.ini file:

Symptoms

 * LimeSurvey is installed correctly and the database was created. But when redirected to the admin page, the browser displayed the listed error.
 * and  are correctly set in config.php.
 * The disk path name for limesurvey installation directory includes one of the following characters: '(',')' or '+'.

Fix
Move/rename the LimeSurvey installation directory so that the path name includes non of the following characters: '(',')' or '+' characters.

=After installation=

For all the other issues that may occur after a successful installation, please refer to the troubleshooting page.