Instalacja FAQ
From LimeSurvey Manual
Zawartość:
Instalacja na komputerze
LimeSurvey można zainstalować na komputerze z systemem MAMP/XAMPP lub dowolnym innym. Pamiętaj, że Twój komputer nie jest serwerem internetowym – nie jest dostępny za pośrednictwem Internetu dla żadnego innego użytkownika.
Aby Twoja ankieta była dostępna dla innych użytkowników za pośrednictwem Internetu, musisz:
- posiadaj serwer lub przestrzeń internetową od dostawcy usług hostingowych
- lub znajdź wyspecjalizowanego dostawcę usług hostingowych LimeSurvey
Rozpoczęcie instalacji
Jak mogę utworzyć bazę danych i użytkownika w MySQL z dostępem z wiersza poleceń?
Musisz wprowadzić poniższe polecenia w swoim MySQL:
create database ;
<your_database_name>create database ;
create user ;
<your_database_username>create user ;
create user @localhost;
<your_database_username>create user @localhost;
set password for = PASSWORD(' ');
<your_database_username>set password for = PASSWORD(' ');
<your_database_password>set password for = PASSWORD(' ');
set password for @localhost = PASSWORD(' ');
<your_database_username>set password for @localhost = PASSWORD(' ');
<your_database_password>set password for @localhost = PASSWORD(' ');
grant all on .* to ' ';
<your_database_name>grant all on .* to ' ';
<your_database_username>grant all on .* to ' ';
grant all on .* to ' '@'localhost';
<your_database_name>grant all on .* to ' '@'localhost';
<your_database_username>grant all on .* to ' '@'localhost';
W terminalu
<your_database_name>
,
<your_database_username>
i
<your_database_password>
należy zastąpić odpowiednimi/żądanymi wartościami.
Co jeśli nie można stworzyć bazy za pomocą skryptu?
Zwykle skrypt tworzy nową bazę danych, a następnie strukturę tabeli. Jeśli jednak Twój serwer/ISP nie daje Ci uprawnień administratora do utworzenia nowej bazy danych w MySQL, będziesz musiał skontaktować się z administratorem serwera, aby utworzył niezbędną bazę danych (lub utwórz ją samodzielnie, jeśli otrzymasz wymagane uprawnienia). Nowo utworzona pusta baza danych powinna zawierać odpowiednie uprawnienia dostępu (tj. odczyt/zapis/tworzenie). Następnie powinieneś móc uruchomić instalację LimeSurvey, która utworzy tabele w nowo utworzonej bazie danych.
Pusta strona podczas uzyskiwania dostępu do strony instalacji
Ten problem nie występuje podczas instalacji LimeSurvey, ale podczas instalacji PHP.
- Sprawdź, czy masz zainstalowany moduł MySQL PHP (php-mysql).
- Sprawdź, czy instalacja PHP ładuje plik PHP.ini modyfikują i nie analizują innych plików PHP.INI w twoim systemie.
- Sprawdź lokalizację i uprawnienia następujących ustawień w swoim PHP.ini:
upload_tmp_dir="/temp"
session.save_path="/temp"
- Sprawdź, czy na Twoim serwerze działa odpowiednia wersja PHP.
Błąd nieistniejących zasobów
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.
Wymagania
Co to za rozszerzenie mbstring (Multibyte String Functions) i do czego służy?
Biblioteka mbstring jest rozszerzeniem języka PHP pozwalającym na konwertowanie znaków wprowadzonych w języku jednego kraju na języki krajów innych. Rozszerzenie to jest wymagane do poprawnego działania LimeSurvey. Aby sprawdzić czy na Twoim serwerze jest zainstalowane to rozszerzenie, utwórz plik test.php w dowolnym edytorze tekstowym (np Notatnik), wprowadź do niego ciąg znaków:
http://<your_server>/<your_limesurvey_directory>/admin/install/phpinfo.php
zapisz i umieść go na serwerze. Następnie uruchom swoją przeglądarkę i wywołaj plik. W wyświetlonych informacjach o zainstalowanych rozszerzeniach/bibliotekach odszukaj ciąg "mbstring".
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 you are using a version of Linux that supports 'yum' (CentOS, RedHat, Fedora)...
- 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.
After database creation
Biały ekran po założeniu bazy danych
Symptomy
- LimeSurvey zainstalowane poprawnie, baza danych utworzona, lecz zamiast strony administracyjnej biały ekran
- Log pokazuje "Fatal error: Call to a member function on a non-object in /path/to/limesurvey/admin/login_check.php on line 69"
Naprawa
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:
Uwaga: numer linii może być inny i zależy od wersji LimeSurvey.
Naprawa
Może to być spowodowane przez mbstring.func_overload. Sprawdź ustawienie w php.ini i wpisz właściwe.
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 '+'.
Naprawa
Move/rename the LimeSurvey installation directory so that the path name includes non of the following characters: '(',')' or '+' characters.
Po instalacji
For all the other issues that may occur after a successful installation, please refer to the troubleshooting page.