Actions

Installation FAQ/nl: Difference between revisions

From LimeSurvey Manual

No edit summary
(Created page with "<nowiki>http://<je_server>/<je_limesurvey_map>/admin/install/phpinfo.php</nowiki>")
Line 63: Line 63:
Mbstring is een PHP bibliotheek die het mogelijk maakt tekensets van één taal naar een andere om te zetten. Deze heb je nodig om LimeSurvey te kunnen draaien. Gebruik de volgende URL in een browser om te kijken of mbstring aanwezig is:  
Mbstring is een PHP bibliotheek die het mogelijk maakt tekensets van één taal naar een andere om te zetten. Deze heb je nodig om LimeSurvey te kunnen draaien. Gebruik de volgende URL in een browser om te kijken of mbstring aanwezig is:  


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


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!
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!

Revision as of 21:18, 13 August 2017

Inhoud:

Installatie op je eigen computer

LimeSurvey kan worden geïnstalleerd op je computer met MAMP/XAMP o.i.d. Maar als je computer geen webserver is kan de applicatie niet door andere gebruikers worden benaderd.

Dan moet je je enquête via het internet beschikbaar maken, je moet:

  • een eigen server hebben of gebruik maken van een webhost
  • of gebruik maken van een webhost die LimeSurvey aanbied
  Installatie op je eigen PC betekent dat de enquête niet benaderbaar is voor externe gebruikers.


Start installatie

Hoe maak ik een database en een gebruiker aan in MySQL met de commandline?

Tik de volgende commando's in de MySQL commandline:

  • create database <jouw_database_naam>;
  • create user <jouw_database_gebruikersnaam>;
  • create user <jouw_database_gebruikersnaam>@localhost;
  • set password for <jouw_database_gebruikersnaam> = PASSWORD('<jouw_database_wachtwoord>');
  • set password for <jouw_database_gebruikersnaam>@localhost = PASSWORD('<jouw_database_wachtwoord>');;
  • grant all on <jouw_database_naam>.* to '<jouw_database_gebruikersnaam>';
  • grant all on <jouw_database_naam>.* to '<jouw_database_gebruikersnaam>'@'localhost';</syntaxhighlight>;

Vervang hierbij <jouw_database_naam>, <jouw_database_gebruikersnaam> en <jouw_database_wachtwoord> door de respectievelijke waarden.

Wat doe ik als ik geen database kan aanmaken via een script?

Normaal gesproken maakt het script een nieuwe database aan, en vult deze met de tabelstructuur. Mocht je echter een server/provider hebben die geen autorisatie geeft om een MySQL-database aan te maken, neem dan contact op met deze provider. Zij moeten dan een lege database voor je aanmaken met de goede rechten (read/write/create). Of je die rechten toch geven. Start daarna de LimeSurvey installatie om de structuur toe te voegen in de database.

Ik krijg een blanco pagina als ik de Installatiepagina oproep

Dat probleem zit niet zozeer in de LimeSurvey installatie, maar in de PHP installatie.

  • Controleer of je de MySQL PHP module (php-mysql) geïnstalleerd hebt.
  • Controleer of de PHP installatie de juiste php.ini laad
  • Controleer de locatie en de rechten van de volgende instelling in de php.ini:
upload_tmp_dir="/temp"

session.save_path="/temp"
  • Controleer of je server een geschikte PHP-versie heeft.

Foutmeldingen vanwege niet gevonden bestanden

Soms worden bestanden niet correct geüpload, of foutief overgezet. Dit leidt tot verschillende foutmeldingen, waarvan de meest voorkomende is dat een bestand of functie niet kan worden gevonden.

Oplossing: Upload opnieuw alle bestanden in binaire modus via je favoriete FTP-programma.

Vereisten

Wat is de mbstring (Multibyte String Functions) bibliotheek?

Mbstring is een PHP bibliotheek die het mogelijk maakt tekensets van één taal naar een andere om te zetten. Deze heb je nodig om LimeSurvey te kunnen draaien. Gebruik de volgende URL in een browser om te kijken of mbstring aanwezig is:

http://<je_server>/<je_limesurvey_map>/admin/install/phpinfo.php

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!

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 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 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 that 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 on for example on 777 or 755. To configure SELinux correctly for your server - check out the SELinux documentation.

Na de aanmaak van de database

Blanco pagina na de aanmaak van de database

Symptoms

  • LimeSurvey installed OK, and 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"

Oplossing

This is probably related to an incorrect setting for $rooturl or $rootdir in config.php. The file config.php attempts to set $rootdir correctly by calling dirname('''FILE'''). 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 manually the $rootdir, (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".

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

Symptoms

  • LimeSurvey installed OK and the 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 quite 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.

The line number may be different depending on your LimeSurvey version.

Oplossing

Dit kan zitten in de mbstring.func_overload instelling. Controleer php.ini, en voeg de volgende regel toe:

mbstring.func_overload = 0
This means no function overloading. See the PHP manual for this setting: Function Overloading Feature.

Als ik de beheerpagina opstart krijg ik de melding Fatal error: Call to a member function gT() on a non-object in login_check.php on line 76 in de browser

Symptoms

  • LimeSurvey installed OK and database was created. But when redirected 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: (,) or +.
Other characters may also induce the same behaviour.

Oplossing

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

Na de installatie

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