Actions

Installation FAQ/pl: Difference between revisions

From LimeSurvey Manual

(Created page with "===Co jeśli nie można stworzyć bazy za pomocą skryptu?===")
 
(Created page with "Przenieś/zmień nazwę katalogu instalacyjnego LimeSurvey tak, aby nazwa ścieżki nie zawierała następujących znaków: znaki „(”, „)” lub „+”.")
 
(79 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<languages />
<languages />
Contents:
Zawartość:


=During Installation (Limesurvey 1.92 and below)=
Instalacja na komputerze


==How can I create a database and a user in mysql with command line access?==
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.


You have to enter the below commands in your mysql.
Aby Twoja ankieta była dostępna dla innych użytkowników za pośrednictwem Internetu, musisz:


create database '''<your_database_name>''';
* posiadaj serwer lub przestrzeń internetową od dostawcy usług hostingowych
* lub znajdź wyspecjalizowanego dostawcę usług hostingowych LimeSurvey


create user '''<your_database_username>''';
=Rozpoczęcie instalacji=


create user '''<your_database_username>'''@localhost;
==Jak mogę utworzyć bazę danych i użytkownika w MySQL z dostępem z wiersza poleceń?==


set password for '''<your_database_username>''' = PASSWORD(''''<your_database_password>'''');
Musisz wprowadzić poniższe polecenia w swoim MySQL:


set password for '''<your_database_username>'''@localhost = PASSWORD(''''<your_database_password>'''');
* <code>create database ''' ''';</code><your_database_name> <code>create database ''' ''';</code>


grant all on '''<your_database_name>'''.* to ''''<your_database_username>'''';
* <code>create user ''' ''';</code><your_database_username> <code>create user ''' ''';</code>


grant all on '''<your_database_name>'''.* to ''''<your_database_username>''''@'localhost';
* <code>create user ''' '''@localhost;</code><your_database_username> <code>create user ''' '''@localhost;</code>


You have to replace '''<your_database_name>''', '''<your_database_username>''' and '''<your_database_password>''' in above commands with according values.
* <code>set password for ''' ''' = PASSWORD('''' '''');</code><your_database_username> <code>set password for ''' ''' = PASSWORD('''' '''');</code><your_database_password> <code>set password for ''' ''' = PASSWORD('''' '''');</code>


===Co jeśli nie można stworzyć bazy za pomocą skryptu?===
* <code>set password for ''' '''@localhost = PASSWORD('''' '''');</code><your_database_username> <code>set password for ''' '''@localhost = PASSWORD('''' '''');</code><your_database_password> <code>set password for ''' '''@localhost = PASSWORD('''' '''');</code>


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 create the necessary database (or create it yourself). They should create a blank database for you that gives you the appropriate access rights (ie: read/write/create). Start the LimeSurvey installation as usually and it will then create the tables in the existing database.
* <code>grant all on ''' '''.* to '''' '''';</code><your_database_name> <code>grant all on ''' '''.* to '''' '''';</code><your_database_username> <code>grant all on ''' '''.* to '''' '''';</code>


==What is this mbstring (Multibyte String Functions) library?==
* <code>grant all on ''' '''.* to '''' ''''@'localhost';</code><your_database_name> <code>grant all on ''' '''.* to '''' ''''@'localhost';</code><your_database_username> <code>grant all on ''' '''.* to '''' ''''@'localhost';</code>


The mbstring library is a PHP library to be able to 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
W terminalu <code>''' '''</code><your_database_name> <code>''' '''</code> , <code>''' '''</code><your_database_username> <code>''' '''</code> i <code>''' '''</code><your_database_password> <code>''' '''</code> należy zastąpić odpowiednimi/żądanymi wartościami.


 http://<your_server>/<your_limesurvey_directory>/admin/install/phpinfo.php
===Co jeśli nie można stworzyć bazy za pomocą skryptu?===


from the web browser. A lot of information will be shown. Search for the string 'mbstring' under the '''Configuration''' section.
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.


If you find the mbstring section then all should be well and you can continue on with your LimeSurvey installation!
==Pusta strona podczas uzyskiwania dostępu do strony instalacji==


'''If you don't find the mbstring section''' you might have a problem on your hands.
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:


There are three possible scenarios:
<syntaxhighlight lang="c">upload_tmp_dir="/temp"
*If it's your providers server: Ask your provider to activate that extension in PHP or how to 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. In most Linux versions today you can install it using your Linux packet manager.
**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 to update 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.


==When I am entering special chars (Chinese, Cyrillic, Greek, Arabic) into my survey, every character is shown as a question mark?==
session.save_path="/temp"</syntaxhighlight>
*Sprawdź, czy na Twoim serwerze działa odpowiednia wersja PHP.


This happens if your database itself is not created to use an UTF-8 charset. This can happen when you have to create the database using a provider administration panel. You can fix this problem by executing the following SQL command on your database (using for example phpMyAdmin)
==Komunikaty o błędach z powodu nieistniejących zasobów==


ALTER DATABASE `<your_database_name>` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
Czasami pliki nie są przesyłane poprawnie lub ulegają uszkodzeniu podczas procesu przesyłania. Prowadzi to do kilku różnych komunikatów o błędach. Większość z nich odnosi się do pliku lub funkcji w pliku, którego nie można znaleźć.


Replace <your_database_name> with the name of your database. '''You need to do this before installing LimeSurvey.'''
'''Rozwiązanie:''' Prześlij ponownie wszystkie pliki, korzystając z trybu binarnego swojego programu FTP.


==Blank page when accessing the Install page==
=Wymagania=


The problem is not with the LimeSurvey installation but with the PHP installation.
==Co to jest biblioteka mbstring (funkcje ciągów wielobajtowych)?==
*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


<syntaxhighlight lang="c" enclose="div">upload_tmp_dir="/temp"
Biblioteka mbstring to biblioteka PHP, która może konwertować zestawy znaków z jednego języka na inny. Potrzebujesz go, jeśli chcesz uruchomić LimeSurvey. Aby sprawdzić, czy jest już zainstalowany, otwórz adres URL w przeglądarce internetowej:


session.save_path="/temp"</syntaxhighlight>
<nowiki>http://<your_server> /<your_limesurvey_directory> /admin/install/phpinfo.php</nowiki>
*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 a not existing ressources==
Zostanie wyświetlonych wiele informacji. Wyszukaj ciąg „mbstring” w sekcji „Konfiguracja”. Jeśli znajdziesz sekcję mbstring, wszystko powinno być w porządku i możesz kontynuować instalację LimeSurvey!


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.
'''Jeśli nie znajdziesz sekcji mbstring''', możesz mieć problem. Istnieją trzy możliwe scenariusze:
*Jeśli jest to serwer Twojego dostawcy usług hostingowych, poproś o aktywację tego rozszerzenia w PHP lub o dalsze informacje na temat tego, jak możesz je aktywować - jeśli masz dobry panel administracyjny dla swojego serwera, możesz możesz go aktywować samodzielnie
*Jeśli jest to Twój własny serwer „Linux”, być może będziesz musiał ponownie skompilować PHP i dołączyć bibliotekę mbstring. Zapytaj ekspertów od Linuksa, jak to zrobić. Można go jednak zainstalować za pomocą menedżera pakietów Linuksa, który jest obecnie dostępny głównie we wszystkich dystrybucjach Linuksa
**Jeśli używasz wersji Linuksa obsługującej „mniam” (CentOS, RedHat, Fedora)...
***...użyj terminala (jako superużytkownik) i wpisz: '''yum install php-mbstring'''
***...pamiętaj o aktualizacji pliku /etc/php. ini i odkomentuj różne parametry mbstring
***...pamiętaj, aby ponownie uruchomić Apache po jego zainstalowaniu: '''/etc/init.d/httpd restart'''
*Jeśli to twój własny '' Serwer „Windows”, wyszukaj php.ini w swoim systemie, otwórz go za pomocą edytora i wyszukaj mbstring. Najprawdopodobniej linia zawierająca ciąg znaków jest komentowana średnikiem. Usuń średnik, zapisz i uruchom ponownie serwer WWW


'''Solution:''' Re-upload all files using the binary mode of your FTP program.
== Zablokowany przy sprawdzaniu uprawnień systemu plików ==
Jeśli SELinux jest aktywowany (głównie w CentOS), może pojawić się błąd informujący, że uprawnienia systemu plików są nieprawidłowe, nawet jeśli lista katalogów jest pusta. SELinux uniemożliwia zapis nawet jeśli uprawnienia są na przykład na 777 lub 755. Aby poprawnie skonfigurować SELinux dla swojego serwera - zapoznaj się z [https://wiki.centos.org/HowTos/SELinux dokumentacją SELinux].


=During Installation (Limesurvey 2.0 and above)=
=Po utworzeniu bazy danych=


==ADD NEW TOPICS HERE (Thanks!)==
==Biały ekran po założeniu bazy danych==


=After Database Creation=
===Symptomy===
* LimeSurvey jest zainstalowany poprawnie i baza danych została utworzona, ale zamiast strony administratora pojawia się pusta strona
* Dziennik serwera WWW pokazuje „””Błąd krytyczny: wywołanie funkcja członkowska na obiekcie niebędącym obiektem w /path/to/limesurvey/admin/login_check.php w linii 69"''


==Blank Page after Database Creation==
===Naprawa===


===Symptoms===
Jest to prawdopodobnie związane z nieprawidłowym ustawieniem <code>$rooturl</code> lub <code>$rootdir</code> w config.php. Plik config.php próbuje poprawnie ustawić <code>$rootdir</code> , wywołując<nowiki> <code>dirname('''FILE''')</code></nowiki> . Chociaż to zwykle działa, może wystąpić problem, gdy LimeSurvey jest zainstalowany w katalogu domowym użytkownika lub w katalogu public_html, a katalog domowy jest zamontowany przez NFS. Aby ręcznie skonfigurować <code>$rootdir</code> (polecenie powłoki lub pwd może pokazać ścieżkę taką jak /disks/nazwa hosta/home/nazwa_użytkownika/public_html/limesurvey), spróbuj użyć /home/username/public_html/limesurvey.
* 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===
==Podczas uzyskiwania dostępu do strony administratora przeglądarka nadal działa i ostatecznie nie będzie jej wyświetlać==


This is probably an incorrect setting for $rooturl or $rootdir in config.php. In particular, config.php attempts to set $rootdir correctly by calling <nowiki>dirname('''FILE''')</nowiki> 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".
===Objawy===
* LimeSurvey został poprawnie zainstalowany i baza danych została utworzona. Jednakże, gdy uzyskasz dostęp do strony administratora, przeglądarka będzie działać i ostatecznie nie wyświetli tej strony
* Kiedy sprawdzasz dziennik dostępu do serwera WWW, jego rozmiar stał się dość duży (w niektórych przypadkach ponad 2 GB)
* Wewnątrz dziennika dostępu pojawia się następujący komunikat wypełniający dziennik:


==When accessing admin page, the browser keeps running and will eventually fail to show it==
{{Alert|title=Warning|text=''fread() [function.fread]: Parametr długości musi być większy niż 0 w /limesurvey/classes/php-gettext/streams.php w linii 120.}}''


===Symptoms===
{{Uwaga|Numer wiersza może się różnić w zależności od wersji LimeSurvey.}}
* 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
===Naprawa===
 
''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.


Może to być spowodowane ustawieniem mbstring.func_overload. Zmień następujące ustawienie w pliku php.ini:
<syntaxhighlight lang="php" enclose="pre">
mbstring.func_overload = 0
mbstring.func_overload = 0
</syntaxhighlight>


''Note:'' This means no function overloading. See PHP manual for this setting: [http://us3.php.net/manual/en/mbstring.overload.php Function Overloading Feature]
{{Uwaga|Oznacza to brak przeciążania funkcji. Zobacz podręcznik PHP dotyczący tego ustawienia: [http://us3.php.net/manual/en/mbstring.overload.php Funkcja przeciążania funkcji].}}
 
==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 Login=
 
==Any action in admin page will return you to login screen==
 
This may happen for the following two main reasons :
*PHP sessions problems
*UTF8 encoding problems
*IE (6,7 and 8) problems
 
<u>PHP Sessions :</u>
# Update upload_tmp_dir and session.save_path in php.ini
# Create the configured session and upload directories
# IIS: Assigned permission to create and modify to IIS guest user account
# Apache: Make sure your webserver has permissions to write into the configured directory
# Check if the variable  "session.use_cookies" in php.ini is set to 1.
# Check the variable "session.auto_start" in php.ini. If it is set to 1, change it to 0.
 
<u>UTF8 Encoding : </u>
 
If you edit any file (most probably config.php) do not save it as UTF8 to support special language chars! Always save .php files as true ANSI/ISO format. Starting with 1.87 you can set the most important settings inside the application using the 'Global settings' dialog (like site name, administrator name, etc.).
 
<u>IE Cookies :</u>
 
IE (6,7 and 8) does not support underscore "_" in the server hostname. If it is the case, the cookies are not managed and cookie(s) is(are) not set. So change the server hostname under apache or IIS.
 
==LimeSurvey and suhosin ("Session has expired")==
 
You might, at one point, get a message like :
 
<syntaxhighlight lang="php" enclose="div">ERROR
 
We are sorry but your session has expired.
 
Either you have been inactive for too long, you have cookies disabled for your browser, or there were problems with your connection.</syntaxhighlight>
 
And if you have Suhosin activated on your server, that's might be the reason why you get this in the middle of a survey.
 
NB : when your survey is not active, the behaviour might be different, you could be redirected in the middle of a survey to the public list of surveys. The solution is the same.
 
Suhosin is an advanced protection system for PHP installations. Suhosin default configuration can make trouble to LimeSurvey installation.
 
First think to test with suhosin log, set suhosin.log.sapi = 511 and suhosin.simulation = on according with [http://www.hardened-php.net/suhosin/configuration.html suhosin documentation].
 
The configuration file is usually located in /etc/php5/apache2/conf.d/suhosin.ini but to be sure you can check your phpinfo (Limesurvey administration > Global Settings > Button Show phpinfo > Line : "Additional .ini files parsed") to get the correct path.
 
Don't forget to restart your Apache server for the parameters to be taken into account (service apache2 restart).
 
When the simulation is on, Suhosin is not blocking anything and the errors are reported into the logs (usually in your syslog : /var/log/syslog). If you appear to get error messages such as "ALERT-SIMULATION - configured POST variable limit exceeded" that's Suhosin alerting...
 
This configuration seems to work well with Limesurvey:
 
<syntaxhighlight lang="php" enclose="div">suhosin.memory_limit = 128
 
suhosin.post.max_value_length = 5000000
 
suhosin.post.max_vars = 5000
 
suhosin.request.max_value_length = 5000000
 
suhosin.request.max_vars = 5000</syntaxhighlight>
 
With those parameters, you should be able to put the suhosin.simulation back at the "off" value (so that the serveur is protected and limesurvey still works).
 
The default values of suhosin are not working well with limesurvey. If you really want to secure your serveur tightly you might want to use the simulation mode to tune the setting and find the good values between 1000 and 5000 for the vars and 1000000 and 5000000 for the value_lenghts.
 
<div class="simplebox"> Note: There was an additional PHP setting introduced recently: max_input_vars - this setting is the same as suhosin.post.max_vars but needs to be set separately in php.ini . </div>
 
==LimeSurvey and suhosin ("quick translate trouble")==
 
You can have some problem with the quick translate module when you are on OpenBSD 5.1 with php-5.3.10.
 
The symptom is : modification via "Quick translate --> options answer" are not update
 
You must downgrade your php version to php-5.2.17p8 and use the suhosin tweak proposed above.
 
==I can't change the language!==
 
No matter what language you choose, the interface (admin und user) always is in English language. Normally this is caused by a bug in your PHP version. There is no other fix for this than updating your PHP version.
 
==Some common errors (IIS focused)==
 
===Index.php won't open===
 
Possible cause: This might happen if you haven't installed necessary extensions
* You need to install Multi-byte string, and MSSQL (or MySQL) extensions
 
Possible cause: ISAPI filter not configured
* In IIS, for the website (you could do it at the directory level) you must configure it to use php5isapi.dll
 
===Index.php won't open and "php.exe -i" gives error messages about missing .dll's===
 
This may happen if you install too many extensions
* If you install all PHP extensions, PHP will fail because not all dependencies were met (e.g. oracle package needs oracle dll's)
* Install only the extensions that you need
* To test, try running php.exe -i from the command line
 
===Message stating database was missing===
 
This may happen if you navigate to wrong url
* Make sure you go to limesurvey/admin/install/index.php instead of limesurvey/index.php !
 
===Above fixes do not solve the problem===
 
This may happen if you have not restarted IIS
* Restart IIS
 
Things that were easy to forget:
* .php needs to be associated to php5isapi.dll filter (It did this for me automagically)
* limesurvey/tmp directory needs writer permission for survey uploads
* updating doc_root in php.ini and $rootdir in config.php
 
===Missing files ("No such file or directory")===
 
When uploading LimeSurvey to your server it might happen that the connection is interrupted so that some files are not transferred or not transferred completely. Depending on the files you can receive error message at different part of LimeSurvey usage. Normally missing files throw errors like
 
<div class="simplebox">
 
"Warning: require_once(/path/to/your/limesurvey/installation/filename) [function.require-once]: failed to open stream: No such file or directory in /path/to/your/limesurvey/installation/filename on line 12345)" OR
 
"Fatal error: require_once() [function.require]: Failed opening required 'require_once(/path/to/your/limesurvey/installation/filename)' (include_path='.:/x/y/z) in /path/to/your/limesurvey/installation/filename on line 12345"
 
</div>
 
'''Solution'''
 
1. Delete all uploaded files.
 
2. Re-upload the files.
 
(3. If necessary: Re-install by browsing to /limesurveyfolder/admin/install)
 
==Not able to add or edit subquestions/answers after upgrade==


If you're not capable of editing or adding a question, ask youre host provider to change the mod_security setting of the domain name. See the forum thread [http://www.limesurvey.org/en/support/forums/1-installation-a-update-issues/46435-not-able-to-add-or-edit-questions-on-new-190-?limit=10 Not Able to Add or Edit Questions on new 1.90] for more info.
==Podczas uzyskiwania dostępu do strony administracyjnej przeglądarka zgłasza błąd krytyczny: wywołanie funkcji członkowskiej gT() na obiekcie niebędącym obiektem w login_check.php w linii 76==


==Fancy URLs by removing index.php from the URL path==
===Objawy===
* LimeSurvey został poprawnie zainstalowany i baza danych została utworzona. Jednak po przekierowaniu na stronę administratora przeglądarka wyświetliła wymieniony błąd.
* <code>$rootdir</code> i <code>$rooturl</code> są poprawnie ustawione w config.php.
* Nazwa ścieżki dysku dla katalogu instalacyjnego limesurvey zawiera jeden z następujących znaków : '(',')' lub '+'.


If you want to use fancy URLs and so not have /index.php in every URL please edit /application/config/config.php and change
{{Alert|title=Uwaga|text=Inne znaki również mogą powodować to samo zachowanie.}}


<syntaxhighlight lang="php" enclose="div">'showScriptName' => true,</syntaxhighlight>
===Naprawa===


to
Przenieś/zmień nazwę katalogu instalacyjnego LimeSurvey tak, aby nazwa ścieżki nie zawierała następujących znaków: znaki „(”, „)” lub „+”.


<syntaxhighlight lang="php" enclose="div">'showScriptName' => false,</syntaxhighlight>
=Po instalacji=  


For this to work properly you must use an Apache webserver with a properly installed mod_rewrite module.
W przypadku wszystkich innych problemów, które mogą wystąpić po pomyślnej instalacji, zapoznaj się z [[Rozwiązywanie problemów|stroną rozwiązywania problemów]].

Latest revision as of 16:05, 13 September 2023

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.

Komunikaty o błędach z powodu nieistniejących zasobów

Czasami pliki nie są przesyłane poprawnie lub ulegają uszkodzeniu podczas procesu przesyłania. Prowadzi to do kilku różnych komunikatów o błędach. Większość z nich odnosi się do pliku lub funkcji w pliku, którego nie można znaleźć.

Rozwiązanie: Prześlij ponownie wszystkie pliki, korzystając z trybu binarnego swojego programu FTP.

Wymagania

Co to jest biblioteka mbstring (funkcje ciągów wielobajtowych)?

Biblioteka mbstring to biblioteka PHP, która może konwertować zestawy znaków z jednego języka na inny. Potrzebujesz go, jeśli chcesz uruchomić LimeSurvey. Aby sprawdzić, czy jest już zainstalowany, otwórz adres URL w przeglądarce internetowej:

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

Zostanie wyświetlonych wiele informacji. Wyszukaj ciąg „mbstring” w sekcji „Konfiguracja”. Jeśli znajdziesz sekcję mbstring, wszystko powinno być w porządku i możesz kontynuować instalację LimeSurvey!

Jeśli nie znajdziesz sekcji mbstring, możesz mieć problem. Istnieją trzy możliwe scenariusze:

  • Jeśli jest to serwer Twojego dostawcy usług hostingowych, poproś o aktywację tego rozszerzenia w PHP lub o dalsze informacje na temat tego, jak możesz je aktywować - jeśli masz dobry panel administracyjny dla swojego serwera, możesz możesz go aktywować samodzielnie
  • Jeśli jest to Twój własny serwer „Linux”, być może będziesz musiał ponownie skompilować PHP i dołączyć bibliotekę mbstring. Zapytaj ekspertów od Linuksa, jak to zrobić. Można go jednak zainstalować za pomocą menedżera pakietów Linuksa, który jest obecnie dostępny głównie we wszystkich dystrybucjach Linuksa
    • Jeśli używasz wersji Linuksa obsługującej „mniam” (CentOS, RedHat, Fedora)...
      • ...użyj terminala (jako superużytkownik) i wpisz: yum install php-mbstring
      • ...pamiętaj o aktualizacji pliku /etc/php. ini i odkomentuj różne parametry mbstring
      • ...pamiętaj, aby ponownie uruchomić Apache po jego zainstalowaniu: /etc/init.d/httpd restart
  • Jeśli to twój własny Serwer „Windows”, wyszukaj php.ini w swoim systemie, otwórz go za pomocą edytora i wyszukaj mbstring. Najprawdopodobniej linia zawierająca ciąg znaków jest komentowana średnikiem. Usuń średnik, zapisz i uruchom ponownie serwer WWW

Zablokowany przy sprawdzaniu uprawnień systemu plików

Jeśli SELinux jest aktywowany (głównie w CentOS), może pojawić się błąd informujący, że uprawnienia systemu plików są nieprawidłowe, nawet jeśli lista katalogów jest pusta. SELinux uniemożliwia zapis nawet jeśli uprawnienia są na przykład na 777 lub 755. Aby poprawnie skonfigurować SELinux dla swojego serwera - zapoznaj się z dokumentacją SELinux.

Po utworzeniu bazy danych

Biały ekran po założeniu bazy danych

Symptomy

  • LimeSurvey jest zainstalowany poprawnie i baza danych została utworzona, ale zamiast strony administratora pojawia się pusta strona
  • Dziennik serwera WWW pokazuje „””Błąd krytyczny: wywołanie funkcja członkowska na obiekcie niebędącym obiektem w /path/to/limesurvey/admin/login_check.php w linii 69"

Naprawa

Jest to prawdopodobnie związane z nieprawidłowym ustawieniem $rooturl lub $rootdir w config.php. Plik config.php próbuje poprawnie ustawić $rootdir , wywołując <code>dirname('''FILE''')</code> . Chociaż to zwykle działa, może wystąpić problem, gdy LimeSurvey jest zainstalowany w katalogu domowym użytkownika lub w katalogu public_html, a katalog domowy jest zamontowany przez NFS. Aby ręcznie skonfigurować $rootdir (polecenie powłoki lub pwd może pokazać ścieżkę taką jak /disks/nazwa hosta/home/nazwa_użytkownika/public_html/limesurvey), spróbuj użyć /home/username/public_html/limesurvey.

Podczas uzyskiwania dostępu do strony administratora przeglądarka nadal działa i ostatecznie nie będzie jej wyświetlać

Objawy

  • LimeSurvey został poprawnie zainstalowany i baza danych została utworzona. Jednakże, gdy uzyskasz dostęp do strony administratora, przeglądarka będzie działać i ostatecznie nie wyświetli tej strony
  • Kiedy sprawdzasz dziennik dostępu do serwera WWW, jego rozmiar stał się dość duży (w niektórych przypadkach ponad 2 GB)
  • Wewnątrz dziennika dostępu pojawia się następujący komunikat wypełniający dziennik:
  Warning : fread() [function.fread]: Parametr długości musi być większy niż 0 w /limesurvey/classes/php-gettext/streams.php w linii 120.

Template:Uwaga

Naprawa

Może to być spowodowane ustawieniem mbstring.func_overload. Zmień następujące ustawienie w pliku php.ini:

 
mbstring.func_overload = 0

Template:Uwaga

Podczas uzyskiwania dostępu do strony administracyjnej przeglądarka zgłasza błąd krytyczny: wywołanie funkcji członkowskiej gT() na obiekcie niebędącym obiektem w login_check.php w linii 76

Objawy

  • LimeSurvey został poprawnie zainstalowany i baza danych została utworzona. Jednak po przekierowaniu na stronę administratora przeglądarka wyświetliła wymieniony błąd.
  • $rootdir i $rooturl są poprawnie ustawione w config.php.
  • Nazwa ścieżki dysku dla katalogu instalacyjnego limesurvey zawiera jeden z następujących znaków : '(',')' lub '+'.
  Uwaga : Inne znaki również mogą powodować to samo zachowanie.


Naprawa

Przenieś/zmień nazwę katalogu instalacyjnego LimeSurvey tak, aby nazwa ścieżki nie zawierała następujących znaków: znaki „(”, „)” lub „+”.

Po instalacji

W przypadku wszystkich innych problemów, które mogą wystąpić po pomyślnej instalacji, zapoznaj się z stroną rozwiązywania problemów.