Actions

Installatie FAQ

From LimeSurvey Manual

Revision as of 09:31, 23 May 2013 by Rikthoff (talk | contribs) (Created page with "Dit gebeurt als de database niet geconfigureerd is om een UTF-8 karakterset te ondersteunen, bijvoorbeeld als de database via een beheerpaneel is aangemaakt. De oplossing is o...")

Inhoud:

Tijdens de installatie

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

Typ de volgende commando's in de mysql command line:

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';

Vervang hierbij <jouw_database_naam>, <jouw_database_gebruikersnaam> and <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 authorisatie geeft om een MySQL-database aan te maken, neem dan contact met deze provider aan. Zij moeten dan een lege database voor je aanmaken met de goede rechten (read/write/create). Start nu de LimeSurvey installatie als gebruikelijk, en deze zal de structuur toevoegen.

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. Om te kijken of mbstring aanwezig is, open de volgende URL:

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

Zoek op deze pagina naar de string 'mbstring' onder de Configuratie sectie.

Als er een tabel instaat met informatie over mbstring dan is deze geinstallerd, en kun je verder met de LimeSurvey installatie!

Mocht je nou de mbstring tabel niet kunnen vinden, dan is er wellicht een probleem.

Maar goed, er zijn drie opties:

  • Je hebt een server van een hoster. Vraag dan je hoster om deze PHP-extensie (voor jouw server) aan te zetten. Als de hoster 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)
      1. Open een terminal en type yum install php-mbstring
      2. Zorg ervoor dat alle instellingen in /etc/php.ini voor mbstring geactiveerd zijn
      3. 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.

Als ik speciale tekens (Chinees, Cyrilisch, Grieks, Arabisch) gebruik, zie ik alleen maar vraagtekens?

Dit gebeurt als de database niet geconfigureerd is om een UTF-8 karakterset te ondersteunen, bijvoorbeeld als de database via een beheerpaneel is aangemaakt. De oplossing is om de volgende SQL uit te laten voeren op de database (bijvoorbeeld via phpMyAdmin):

ALTER DATABASE `<your_database_name>` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;

Replace <your_database_name> with the name of your database. You need to do this before installing LimeSurvey.

Blank page when accessing the Install page

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 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 non-existing resources

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.

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

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.