Actions

Installation FAQ/nl: Difference between revisions

From LimeSurvey Manual

(Created page with "== Moeilijkheden met bestandsrechten == Als SELinux is geactiveerd (meestal op CentOS) dan kun je de foutmelding krijgen dat de bestandsrechten niet goed staan maar dat er gee...")
(Updating to match new version of source page)
Line 4: Line 4:
=Installatie op je eigen computer=
=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.  
LimeSurvey can be installed on your computer with MAMP/XAMP or any other system. But your computer is not a web server - it's not accessible via web to any other user.  


Dan moet je je enquête via het internet beschikbaar maken, je moet:  
In order to make your survey reachable to other users via the web, you need to either:  


* een eigen server hebben 
* own a server or a web space from a host provider;
* of gebruikmaken van een webhost
* or find a LimeSurvey-specialized host provider.
* of gebruikmaken van een webhost die LimeSurvey aanbied


{{Alert|Installatie op je eigen PC betekent niet dat de enquête benaderbaar is voor externe gebruikers.}}
{{Alert|An installation on your computer is not done to share your survey on internet!}}


=Tijdens de installatie=
=Starting installation=


==Hoe maak ik een database en een gebruiker aan in mysql met de commandline?==
==How can I create a database and a user in MySQL with command line access?==


Tik de volgende commando's in de mysql commandline:
You have to enter the below commands in your MySQL:


<syntaxhighlight lang="sql" enclose="div">create database '''<jouw_database_naam>''';
*<code>create database '''<your_database_name>''';</code>


create user '''<jouw_database_gebruikersnaam>''';
*<code>create user '''<your_database_username>''';</code>


create user '''<jouw_database_gebruikersnaam>'''@localhost;
*<code>create user '''<your_database_username>'''@localhost;</code>


set password for '''<jouw_database_gebruikersnaam>''' = PASSWORD(''''<jouw_database_wachtwoord>'''');
*<code>set password for '''<your_database_username>''' = PASSWORD(''''<your_database_password>'''');</code>


set password for '''<jouw_database_gebruikersnaam>'''@localhost = PASSWORD(''''<jouw_database_wachtwoord>'''');
*<code>set password for '''<your_database_username>'''@localhost = PASSWORD(''''<your_database_password>'''');</code>


grant all on '''<jouw_database_naam>'''.* to ''''<jouw_database_gebruikersnaam>'''';
*<code>grant all on '''<your_database_name>'''.* to ''''<your_database_username>'''';</code>


grant all on '''<jouw_database_naam>'''.* to ''''<jouw_database_gebruikersnaam>''''@'localhost';</syntaxhighlight>
*<code>grant all on '''<your_database_name>'''.* to ''''<your_database_username>''''@'localhost';</code>


Vervang hierbij '''<jouw_database_naam>''', '''<jouw_database_gebruikersnaam>''' en '''<jouw_database_wachtwoord>''' door de respectievelijke waarden.
In terminal, <code>'''<your_database_name>'''</code>, <code>'''<your_database_username>'''</code>, and <code>'''<your_database_password>'''</code> have to be replaced with the according/desired values.


==Wat doe ik als ik geen database kan aanmaken via een script?==
==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). Start dan de LimeSurvey installatie om de structuur toe te voegen.
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.


==Ik krijg een blanco pagina als ik de Installatiepagina oproep==
==Ik krijg een blanco pagina als ik de Installatiepagina oproep==


Dat probleem zit niet zozeer in de LimeSurvey installatie, maar in de PHP installatie.
The problem is not with the LimeSurvey installation but with the PHP installation.
*Controleer of je de MySQL PHP module (php-mysql) geïnstalleerd hebt.
*Verify you have the MySQL PHP module (php-mysql) installed.
* Controleer of de PHP installatie de juiste php.ini laad
*Verify your PHP install is loading the PHP.ini file your are modifying and not parsing other PHP.INI files on your system.
* Controleer de locatie en de rechten van de volgende instelling in de php.ini
*Verify the location and permissions of the following setting in your PHP.ini:


<syntaxhighlight lang="c" enclose="div">upload_tmp_dir="/temp"
<syntaxhighlight lang="c" enclose="div">upload_tmp_dir="/temp"


session.save_path="/temp"</syntaxhighlight>
session.save_path="/temp"</syntaxhighlight>
* Controleer of de PHP versie correspondeert met de versie van LimeSurvey die je probeert te installeren (dit probleem kwam bijvoorbeeld voor bij PHP v4.4 en LimeSurvey v2.00+)
*Verify if your server runs a suitable PHP version.


==Foutmeldingen vanwege niet gevonden bestanden==
==Foutmeldingen vanwege niet gevonden bestanden==


Soms worden bestanden niet correct geüpload, of foutief overgebracht. Dit leidt tot verschillende foutmeldingen, waarvan de meest voorkomende is dat een bestand of functie niet kan worden gevonden.
Sometimes, files are not uploaded correctly or were 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.


'''Oplossing:''' Upload opnieuw alle bestanden in binaire modus via je favoriete FTP-programma.
'''Oplossing:''' Upload opnieuw alle bestanden in binaire modus via je favoriete FTP-programma.
Line 60: Line 59:
=Vereisten=
=Vereisten=


==Wat is de mbstring (Multibyte String Functions) bibliotheek?==
==What is the mbstring (Multibyte String Functions) library?==


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 om te kijken of mbstring aanwezig is:
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 an web browser:  


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


Zoek op deze pagina naar de string 'mbstring' onder de '''Configuratie''' sectie.
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!


Als er een sectie instaat met informatie over mbstring dan is deze geïnstalleerd, en kun je verder met de LimeSurvey installatie!
'''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.


'''Mocht je nou de mbstring sectie niet kunnen vinden''', dan is er wellicht een probleem.
== 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 [https://wiki.centos.org/HowTos/SELinux SELinux documentation].
Drie opties:
*Je hebt een server van een webhost. Vraag dan je webhost om deze PHP-extensie (voor jouw server) aan te zetten. Als de webhost een goed beheerpaneel aanbiedt, kun je dit mogelijk ook zelf doen.
*Je hebt een eigen '''Linux''' server. Dan moet je wellicht PHP hercompileren met de mbstring bibliotheek. Vraag aan Linux-experts hoe dat te doen. De meeste huidige versies van Linux kunnen dat via de packet manager.
**Als je een versie hebt die met 'yum' is uitgevoerd (CentOS, RedHat, Fedora)
# Open een terminal en type '''yum install php-mbstring'''
# Zorg ervoor dat alle instellingen in /etc/php.ini voor mbstring geactiveerd zijn
# Herstart apache via '''/etc/ini.d/httpd restart'''
*Je hebt een eigen '''Windows''' server. Zoek dan naar php.ini op het systeem, en haal alle puntkomma's (;) weg bij de sectie die over mbstring gaat. Herstart daarna je webserver.
 
== Moeilijkheden met bestandsrechten ==
Als SELinux is geactiveerd (meestal op CentOS) dan kun je de foutmelding krijgen dat de bestandsrechten niet goed staan maar dat er geen mappen zijn. SELinux voorkomt schrijven zelfs als de permissie 777 of 755 zijn.
Toelichting bij het configureren van SELinux [https://wiki.centos.org/HowTos/SELinux SELinux documentation].


=Na de aanmaak van de database=
=Na de aanmaak van de database=
Line 89: Line 83:
==Blanco pagina na de aanmaak van de database ==
==Blanco pagina na de aanmaak van de database ==


===Symptomen===
===Symptoms===
*LimeSurvey is goed geïnstalleerd, maar in plaats van de beheerpagina krijg je een blanco pagina
* LimeSurvey installed OK, and database was created, but instead of the admin page, you get an empty page
*De webserver logt: "Fatal error: Call to a member function on a non-object in /path/to/limesurvey/admin/login_check.php on line 69"
* 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===
===Oplossing===


Dit is waarschijnlijk een foute instelling voor $rooturl of $rootdir in config.php. Dit bestand leest de waarde van $rootdir via de functie <nowiki>dirname('''FILE''')</nowiki>. Dit werkt meestal wel, maar kan een foute waarde geven als LimeSurvey in een public_html of gebruikers homedirectory is geïnstalleerd, en deze directory gemount is via NFS. Probeer $rootdir handmatig in te stellen.
This is probably related to an incorrect setting for <code>$rooturl</code> or <code>$rootdir</code> in config.php. The file config.php attempts to set <code>$rootdir</code> correctly by calling <code><nowiki>dirname('''FILE''')</nowiki></code>. 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 <code>$rootdir</code>, (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".


==Als ik de beheerpagina oproep, blijft de browser bezig, maar uiteindelijk krijg ik een foutmelding==
==When accessing the admin page, the browser keeps running and will eventually fail to show it==


===Symptomen===
===Symptoms===
* LimeSurvey is goed geïnstalleerd en de database is aangemaakt. Maar als je de beheerpagina oproept, blijft de browser bezig
* 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.
* Als je de webserver-logs bekijkt, zijn deze erg groot geworden (soms wel meer dan 2 GB)
* When you check the web server access log, its size has become quite big (in some cases, more than 2 GB).
* Mocht je de toegangslog kunnen openen, dan zie je deze melding in de log.
* 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
{{Alert|title=Warning|text=''fread() [function.fread]: Length parameter must be greater than 0 in /limesurvey/classes/php-gettext/streams.php on line 120.}}''


Waarbij het nummer afhankelijk is van de LimeSurvery-versie.
{{Note|The line number may be different depending on your LimeSurvey version.}}


===Oplossing===
===Oplossing===
Line 114: Line 108:
<syntaxhighlight lang="c" enclose="div">mbstring.func_overload = 0</syntaxhighlight>
<syntaxhighlight lang="c" enclose="div">mbstring.func_overload = 0</syntaxhighlight>


Dit betekent dat er geen functieoverloading zal plaatsvinden. Bekijk de [[http://us3.php.net/manual/en/mbstring.overload.php PHP Handleiding]] voor meer informatie.
{{Note|This means no function overloading. See the PHP manual for this setting: [http://us3.php.net/manual/en/mbstring.overload.php 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==
==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==


===Symptomen===
===Symptoms===
* LimeSurvey is correct geïnstalleerd en de database is aangemaakt. Maar als je de beheerpagina benaderd, krijg je de bovenstaande foutmelding
* LimeSurvey installed OK and database was created. But when redirected to the admin page, the browser displayed the the listed error.
* $rootdir en $rooturl zijn correct aangegeven in config.php
* <code>$rootdir</code> and <code>$rooturl</code> are correctly set in config.php.
* De fysieke locatie van de installatie bevat één van de volgende karakters: '(', ')', '+'
* The disk path name for limesurvey installation directory includes one of the following characters: '''(''',''')''' or '''+'''.


''Opmerking:'' Dit kan ook door andere karakters komen.
{{Note|Other characters may also induce the same behaviour.}}


===Oplossing===
===Oplossing===


Verplaats of hernoem de installatiedirectory zodat de naam deze de karakters niet meer bevat.
Move/rename the limesurvey installation directory so that the path name includes non of the following characters: '''(''', ''')''' or '''+''' characters.


=Na de installatie=  
=Na de installatie=  


Bekijk even [[Troubleshooting/nl|Problemen oplossen]] om problemen na een succesvolle installatie op te lossen.
For all issues happening after a successful installation, please refer to the [[Troubleshooting]] page.

Revision as of 15:10, 7 August 2017

Inhoud:

Installatie op je eigen computer

LimeSurvey can be installed on your computer with MAMP/XAMP or any other system. But 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.
  An installation on your computer is not done to share your survey on internet!


Starting installation

How can I create a database and a user in MySQL with command line access?

You have to enter the below commands in your 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>@localhost = 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';

In terminal, <your_database_name>, <your_database_username>, and <your_database_password> have to be replaced with the according/desired values.

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

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.

Ik krijg een blanco pagina als ik de Installatiepagina oproep

The problem is not with the LimeSurvey installation but with 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:
upload_tmp_dir="/temp"

session.save_path="/temp"
  • Verify if your server runs a suitable PHP version.

Foutmeldingen vanwege niet gevonden bestanden

Sometimes, files are not uploaded correctly or were 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.

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

Vereisten

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 an web browser:

http://<your_server>/<your_limesurvey_directory>/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.