Actions

Installation FAQ/pl: Difference between revisions

From LimeSurvey Manual

m (Text replacement - " enclose="div"" to "")
(Updating to match new version of source page)
Line 8: Line 8:
In order to make your survey reachable to other users via the web, you need to either:  
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
<div class="mw-translate-fuzzy">
* or find a LimeSurvey-specialized host provider
* własny serwer
* na serwerze (hosting)
* znajdź wyspecjalizowany hosting LimeSurvey
</div>


{{Alert|An installation on your computer is not done to share your survey on the internet!}}
{{Alert|An installation on your computer is not done to share your survey on the internet!}}
Line 19: Line 22:
You have to enter the commands below in your MySQL:
You have to enter the commands below in your MySQL:


*<code>create database '''<your_database_name>''';</code>
<div class="mw-translate-fuzzy">
stwórz bazę ""twoja_nazwa_bazy":
</div>


*<code>create user '''<your_database_username>''';</code>
<div class="mw-translate-fuzzy">
załóż użytkownika ""<twoja_nazwa_użytkownika>"":
</div>


*<code>create user '''<your_database_username>'''@localhost;</code>
*<code>create user '''<your_database_username>'''@localhost;</code>
Line 37: Line 44:
===Co jeśli nie można stworzyć bazy za pomocą skryptu?===
===Co jeśli nie można stworzyć bazy za pomocą skryptu?===


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.
<div class="mw-translate-fuzzy">
W wielu przypadkach skrypt utworzy bazę danych i później strukturę tabel. Jednakże gdy Twój serwer/provider nie pozwala na tworzenie baz przez skrypty, musisz ją utworzyć ręcznie w panelu administracyjnym serwera lub skontaktować się z osobą administrująca hosting. Należy również zdefiniować użytkownika z prawami dostępu do bazy danych (np: read/write/create). Wprowadź nazwę bazy danych, nazwę użytkownika oraz jego hasło do pliku config.php, a następnie uruchom skrypt instalacyjny z lokalizacji /admin/install/index.php, który utworzy pożądaną strukturę tabel w Twojej bazie danych.
</div>


==Blank page when accessing the install page==
<div class="mw-translate-fuzzy">
==Biały ekran w czasie instalacji==
</div>


This problem doesn't occur within the LimeSurvey installation but within the PHP installation.
<div class="mw-translate-fuzzy">
*Verify you have the MySQL PHP module (php-mysql) installed.
Problem nie jest po stronie LimeSurvey lecz PHP.
*Verify your PHP install is loading the PHP.ini file your are modifying and not parsing other PHP.INI files on your system.
*Sprawdź czy masz zainstalowany moduł MySQL PHP.
*Verify the location and permissions of the following setting in your PHP.ini:
*Sprawdź czy moduł PHP ładuje PHP.ini, który modyfikujesz i nie posługuje się innymi PHP.ini w systemie
*Sprawdź położenie i uprawnienia do PHP.ini
</div>


<syntaxhighlight lang="c">upload_tmp_dir="/temp"
<syntaxhighlight lang="c">upload_tmp_dir="/temp"
Line 51: Line 64:
*Verify that your server runs a suitable PHP version.
*Verify that your server runs a suitable PHP version.


==Error messages due to non-existing resources==
<div class="mw-translate-fuzzy">
==Błąd nieistniejących zasobów==
</div>


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.
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.
Line 59: Line 74:
=Wymagania=
=Wymagania=


==What is the mbstring (Multibyte String Functions) library?==
<div class="mw-translate-fuzzy">
===Co to za rozszerzenie mbstring (Multibyte String Functions) i do czego służy?===
</div>


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:  
<div class="mw-translate-fuzzy">
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:
</div>


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


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!
<div class="mw-translate-fuzzy">
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".
</div>


'''If you don't find the mbstring section''', you might have a problem on your hands. There are three possible scenarios:
'''If you don't find the mbstring section''', you might have a problem on your hands. There are three possible scenarios:
Line 83: Line 104:
==Biały ekran po założeniu bazy danych==
==Biały ekran po założeniu bazy danych==


===Symptoms===
<div class="mw-translate-fuzzy">
* LimeSurvey is installed correctly and the database was created, but instead of the admin page, you get an empty page
===Symptomy===
* 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"''
* 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"
</div>


===Naprawa===
===Naprawa===
Line 100: Line 123:
{{Alert|title=Warning|text=''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.}}''  


{{Note|The line number may be different depending on your LimeSurvey version.}}
<div class="mw-translate-fuzzy">
''Uwaga:'' numer linii może być inny i zależy od wersji LimeSurvey.
</div>


===Naprawa===
===Naprawa===


This may be caused by the mbstring.func_overload setting. Change the following setting in the php.ini file:
<div class="mw-translate-fuzzy">
<syntaxhighlight lang="php" enclose="pre">
Może to być spowodowane przez mbstring.func_overload.
mbstring.func_overload = 0
Sprawdź ustawienie w php.ini i wpisz właściwe.
</syntaxhighlight>
</div>


{{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].}}
{{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].}}

Revision as of 21:37, 17 February 2022

Zawartość:

Instalacja na komputerze

LimeSurvey can be installed on your computer with MAMP/XAMPP or any other system. Bear in mind that 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:

  • własny serwer
  • na serwerze (hosting)
  • znajdź wyspecjalizowany hosting LimeSurvey
  An installation on your computer is not done to share your survey on the internet!


Rozpoczęcie instalacji

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

You have to enter the commands below in your MySQL:

stwórz bazę ""twoja_nazwa_bazy":

załóż użytkownika ""<twoja_nazwa_użytkownika>"":

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

Co jeśli nie można stworzyć bazy za pomocą skryptu?

W wielu przypadkach skrypt utworzy bazę danych i później strukturę tabel. Jednakże gdy Twój serwer/provider nie pozwala na tworzenie baz przez skrypty, musisz ją utworzyć ręcznie w panelu administracyjnym serwera lub skontaktować się z osobą administrująca hosting. Należy również zdefiniować użytkownika z prawami dostępu do bazy danych (np: read/write/create). Wprowadź nazwę bazy danych, nazwę użytkownika oraz jego hasło do pliku config.php, a następnie uruchom skrypt instalacyjny z lokalizacji /admin/install/index.php, który utworzy pożądaną strukturę tabel w Twojej bazie danych.

Biały ekran w czasie instalacji

Problem nie jest po stronie LimeSurvey lecz PHP.

  • Sprawdź czy masz zainstalowany moduł MySQL PHP.
  • Sprawdź czy moduł PHP ładuje PHP.ini, który modyfikujesz i nie posługuje się innymi PHP.ini w systemie
  • Sprawdź położenie i uprawnienia do PHP.ini
upload_tmp_dir="/temp"

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

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 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:
  Warning : fread() [function.fread]: Length parameter must be greater than 0 in /limesurvey/classes/php-gettext/streams.php on line 120.

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.

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.


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.