Actions

Installation FAQ/de: Difference between revisions

From LimeSurvey Manual

(Created page with "=Fehler beim Schritt "Anforderungen"=")
No edit summary
Line 61: Line 61:
=Fehler beim Schritt "Anforderungen"=
=Fehler beim Schritt "Anforderungen"=


==What is the mbstring (Multibyte String Functions) library?==
=Was ist die mbstring-Erweiterung (Multibyte String Functions)?=


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

Revision as of 08:02, 12 June 2018

 

Installation auf einem lokalen Rechner

Um LimeSurvey auf einem lokalen Rechner zu installieren, kann man MAMP/XAMPP oder eine vergleichbare Plattform verwenden. Beachten Sie dabei, dass der eigene Rechner in der Regel - anders als dedizierte Webserver - nicht für andere Nutzer im Netz sichtbar ist.

Um Ihre Befragung im Internet zugänglich zu machen, gibt es folgende Möglichkeiten:

  • Sie haben Zugang zu einem Webserver oder Webspace bei einem Internet Service Provider (Internetdienstanbieter)
  • Sie finden einen auf LimeSurvey spezialisierten Internet Service Provider, der eine fertige LimeSurvey Installation bereitstellt
   Durch eine lokale Installation auf Ihrem Rechner wird eine Befragung in der Regel nicht im Internet zugänglich!


Probleme am Anfang der Installation

Wie kann ich über die MySQL-Kommandozeile eine Datenbank und einen Benutzer erstellen?

Sie müssen die folgenden Befehle in MySQL eingeben:

  • create database <dein_datenbankname>;
  • create user <dein_datenbank_benutzername>;
  • create user <dein_datenbank_benutzername>@localhost;
  • set password for <dein_datenbankname> = PASSWORD('<dein_datenbank_passwort>');
  • set password for <dein_datenbank_benutzername>@localhost = PASSWORD('<dein_datenbank_passwort>');
  • grant all on <dein_datenbankname>.* to '<dein_datenbank_benutzername>';
  • grant all on <dein_datenbankname>.* to '<dein_datenbank_benutzername>'@'localhost';

Sie müssen für <dein_datenbankname>, <dein_datenbank_benutzername> und <dein_datenbankpasswort> in den Zeilen oben natürlich mit den richtigen Werten ersetzen.

Was ist zu tun, wenn das Installationsskript keine Datenbank erstellen kann?

Im Normalfall erstellt LimeSurvey während der Installation eine neue Datenbank und im Anschluss die Tabellenstrukturen.
Wenn Sie jedoch auf dem der Server keine Rechte für die Erstellung von MySQL-Datenbanken besitzen, müssen Sie den Administrator Ihres Servers kontaktieren, um die nötige Datenbank erstellen zu lassen (oder sie nach Erhalt der notwendigen Rechte selber zu erstellen). Sie sollten eine leere Datenbank erstellen (lassen), welche die entsprechenden Zugriffsrechte (d.h. lesen/schreiben/erstellen) beinhaltet.
Dann sollten Sie die LimeSurvey-Installation starten und LimeSurvey sollte dann alle benötigten Tabellen in der Datenbank anlegen können.

Leere Seite beim Zugriff auf die Installations-Startseite

Das Problem liegt meist bei den LimeSurvey-Installationsskripten, sondern bei der PHP-Installation.

  • Überprüfen Sie, ob das MySQL-PHP-Modul (PHP-MySQL/MySQLi) installiert ist.
  • Überprüfen Sie, ob Ihre PHP-Installation die richtige php.ini-Datei lädt und sie wirklich auch gerade die richtige php.ini Datei bearbeiten.
  • Überprüfen Sie den Speicherort und die Berechtigungen der folgenden Einstellungen in der php.ini:
upload_tmp_dir="/temp"

session.save_path="/temp"
  • Überprüfen Sie, ob auf Ihrem Server die richtige PHP-Version läuft (z.B. existiert das "leere Seite"-Problem bei PHP 4.4 in Verbindung mit LimeSurvey v2.00+).

Fehlermeldungen aufgrund von nicht vorhandenen Ressourcen

Manchmal werden Dateien nicht korrekt hochgeladen oder werden während des Uploads beschädigt. Dies führt zu verschiedenen Fehlermeldungen. Die meisten von ihnen beziehen sich auf eine Datei oder eine Funktion innerhalb einer Datei, die nicht gefunden werden kann.

Lösung: Nochmaliges Hochladen aller Dateien mit dem Binär-Modus Ihres FTP-Programms.

Fehler beim Schritt "Anforderungen"

Was ist die mbstring-Erweiterung (Multibyte String Functions)?

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

Nach Erstellen der Datenbank

Leere Seite nach Erstellen der Datenbank

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"

Lösung

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 the $rootdir 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.

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

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:
  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.

Lösung

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

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

When accessing the 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 is installed correctly and the database was created. But when redirected to the admin page, the browser displayed 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 '+'.
  Attention : Other characters may also induce the same behavior.


Lösung

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

Nach der Installation

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