Ogólne często zadawane pytania
From LimeSurvey Manual
Pierwsze kroki
Jeśli nie chcesz czytać połowy instrukcji, aby przekonać się, co można zrobić za pomocą LimeSurvey, zalecamy obejrzenie kilku samouczków wideo na YouTube:
*Lista radiowa
- Kopiuj/importuj ankietę
- [ https://www.youtube.com/watch?v=QEHyH1YbNEQ Pytanie dotyczące importu]
Potrzebuję krótkiego wprowadzenia do LimeSurvey
Aby zapoznać się z krótkim tekstowym wprowadzeniem do LimeSurvey, kliknij poniższe dwa łącza:
Projekt i układ ankiety
Jak mogę usunąć plik Index.php ze ścieżki URL, aby uzyskać krótszy URL
Jeśli chcesz używać wymyślnych adresów URL (nie mieć /index.php w każdym adresie URL), edytuj /application/config/config.php i zmień
'showScriptName' => prawda,
Do
'showScriptName' => fałsz,
Aby to działało poprawnie, musisz użyć serwera Apache z poprawnie zainstalowanym modułem mod_rewrite.
Z serwerem WWW Nginx
Jeśli używasz serwera http Nginx (z php działającym przez FastCGI) i chcesz użyć ustawienia „urlFormat' => 'path' (zobacz konfigurację .php), rozważ następującą konfigurację witryny Nginx:
serwer {
ustaw $host_path "/PATH/TO/LIMESURVEY";
nazwa_serwera TWÓJ.SERWER.FQDN;
root /PATH/TO/LIMESURVEY;
zestaw znaków utf-8;
try_files $uri /index.php?$uri&$args;
# Nie zezwalaj na czytanie katalogu skryptów php, zobacz problem z debugowaniem > 1 w notatce
lokalizacja ~ ^/(aplikacja|dokumenty|framework|locale|chronione|testy|motywy/\w+/widoki) {
zaprzeczaj wszystkiemu;
}
# Nie zezwalaj na czytanie katalogu wykonawczego
lokalizacja ~ ^/tmp/runtime/ {
zaprzeczaj wszystkiemu;
}
# Zezwól na dostęp do dobrze znanego katalogu, do różnych zastosowań, na przykład ACME Challenge dla Let's Encrypt
lokalizacja ~ /\.dobrze znana {
pozwolić wszystkim;
}
# Odmawiaj wszelkim próbom dostępu do ukrytych plików
# takie jak .htaccess, .htpasswd, .DS_Store (Mac).
lokalizacja ~ /\. {
zaprzeczaj wszystkiemu;
}
#Nie zezwalaj na bezpośrednie przesyłanie plików przez użytkowników
lokalizacja ~ ^/upload/surveys/.*/fu_[a-z0-9]*$ {
zwróć 444;
}
#Nie zezwalaj na przesyłanie potencjalnych plików wykonywalnych do katalogu przesyłania
lokalizacja ~* /upload/.*\.(pl|cgi|py|pyc|pyo|phtml|sh|lua|php|php3|php4|php5|php6|pcgi|pcgi3|pcgi4|pcgi5|pcgi6|icn)$ {
zwróć 444;
}
#unikaj przetwarzania wywołań nieistniejących plików statycznych przez yii
lokalizacja ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ {
try_files $uri =404;
}
lokalizacja ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(.*)$;
try_files $uri indeks.php;
fastcgi_pass 127.0.0.1:9000; # Zmień to, aby dopasować swoje ustawienia
fastcgi_index indeks.php;
dołącz fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
}
}
Efekt końcowy powinien wyglądać następująco:
Jak pozbyć się * (czerwonej gwiazdki) pytań obowiązkowych?
Instrukcja dla LimeSurvey 2
W LimeSurvey 2.x czerwona gwiazdka pytań obowiązkowych jest ustawiana w pliku template.css (klasa „gwiazdka”). Aby go ukryć:
- Otwórz edytor szablonów
- Utwórz kopię szablonu, który chcesz zmodyfikować
- Wybierz plik „template.css” i wyszukaj klasę asterix
- Dodaj następujący wiersz na końcu klasy asterix..asterisk {display: none;}.
- Zapisz szablon.css
- Wyczyść pamięć podręczną przeglądarki, aby edytowany szablon.css został ponownie załadowany i nie został pobrany z pamięci podręcznej .
Instrukcja dla LimeSurvey 3
Instrukcje są podobne do tych przedstawionych powyżej dla LimeSurvey 2.
- Uzyskaj dostęp do żądanego motywu. Jeśli jest to motyw domyślny, utwórz jego kopię, klikając przycisk „rozszerz”.
- Uzyskaj dostęp do listy motywów i kliknij „edytor motywów” odpowiadający nowo utworzonemu motywowi.
- Po lewej stronie możesz wizualizować odpowiednie pliki CSS swojego motywu.
- Kliknij plik custom.css i dodaj następujący wiersz:
.asterisk {wyświetlacz: brak;}
- Zapisz zmiany. Czerwona gwiazdka, która zwykle jest wyświetlana na początku tekstu pytania, jest ukryta.
Jak mogę osadzić plik Flash?
Najpierw przejdź do Ustawienia globalne i dezaktywuj filtr XSS. Przeczytaj także konsekwencje dezaktywacji tego filtra dla Twojej instancji. Poniższe kroki „nie” zadziałają, jeśli filtr jest aktywny.
- Przejdź do miejsca w ankiecie, w którym chcesz wstawić plik Flash. Może to być dowolne miejsce, w którym można korzystać ze zintegrowanego edytora HTML, na przykład w pytaniach, podpytaniach, odpowiedziach, tekście powitalnym/końcowym ankiety i wielu innych.
- Otwórz full- tryb edytora ekranowego, klikając przycisk 'LimeFitWin' na pasku narzędzi edytora.
- Na pasku narzędzi edytora pełnoekranowego znajdziesz mały przycisk z symbolem Flash. Kliknij na to. Otworzy się okno dialogowe.
- W tym oknie możesz podać ścieżkę do istniejącego pliku Flash lub kliknąć przycisk „Przeglądaj serwer”.
- Jeśli klikniesz przycisk „Przeglądaj serwer”, zostaniesz zostanie wyświetlona przeglądarka plików, a na dole pole przesyłania pliku. Wybierz teraz istniejący plik lub najpierw prześlij plik.
Otóż to! Jeśli uważasz, że ten opis jest niekompletny, zaktualizuj go odpowiednio.
Jak utworzyć ankietę, która będzie dostępna dla wszystkich?
Aby utworzyć ankietę, którą może wypełnić każdy, nie twórz tabela uczestników ankiety! Udostępnij link do ankiety znajdujący się w panel przeglądu.
Rejestracja publiczna - pola obowiązkowe
Jeśli korzystasz z tabela uczestników ankiety i zezwolisz także na rejestracja publiczna, użytkownicy zostaną poproszeni o następujący komunikat:
Jak widać powyżej, obowiązkowe jest jedynie pole e-mail.
Aby wszystkie trzy pola były oznaczone jako obowiązkowe, należy odpowiednio zmodyfikować temat ankiety. Jeśli korzystasz z opcji „Fruity”, musisz przejść do ekranu „rejestracja” i zobaczyć, jak wygląda pole e-mail uczestnika:
{# E-mail uczestników #}
<div class='{{ aSurveyInfo.class.registerformcolrowc }} form-group row' {{ aSurveyInfo.attr.registerformcolrowc }}>
<label {{ aSurveyInfo.attr.registerformcolrowclabel }} class='{{ aSurveyInfo.class.registerformcolrowclabel }} control-label'>{{ gT("Adres e-mail:") }} {{ include('./subviews/registration/required.twig') }} !</label> N!<div {{ aSurveyInfo.attr.registerformcolrowcdiv }} >
{{ C.Html.textField('register_email', aSurveyInfo.sEmail, ({'id': 'register_email','class': 'form-control input-sm','required': true})) }}! N!</div>
</div>
Następnie pamiętaj o odpowiedniej edycji pól imienia i nazwiska, dodając etykietę:
{{ include('./subviews/registration/required.twig') }}
oraz tę linię, która powoduje, że pole jest obowiązkowe do wypełnienia:
„wymagane”: prawda
Edytowany plik powinien wyglądać następująco:
{# Imię uczestnika #}
<div class='{{ aSurveyInfo.class.registerformcolrow }} form-group row' {{ aSurveyInfo.attr.registerformcolrow }}>
<label for='register_firstname' class='{{ aSurveyInfo.class.registerformcolrowlabel }} control-label '>{{ gT("Imię:") }} {{ include('./subviews/registration/required.twig') }} {</label> # dodatkowa etykieta #}
<div class="">
{{ C.Html.textField('register_firstname', aSurveyInfo.sFirstName, ({'id': 'register_firstname','class': 'form-control', 'required': true})) }} {# pole obowiązkowe #}
</div>
</div>
{# Nazwisko uczestnika #}
<div class='{{ aSurveyInfo.class.registerformcolrowb }} form-group row' {{ aSurveyInfo.attr.registerformcolrowb }}>
<label {{ aSurveyInfo.attr.registerformcolrowblabel }} class='{{ aSurveyInfo.class.registerformcolrowblabel }} control-label '>{{ gT("Nazwisko:") }} {{ include('./subviews/registration/required.twig') }} {</label> # dodatkowa etykieta #}
<div {{ aSurveyInfo.attr.registerformcolrowbdiv }} >
{{ C.Html.textField('register_lastname', aSurveyInfo.sLastName, ({'id': 'register_lastname', 'class': 'form-control', 'required': true})) }} {# pole obowiązkowe #}
</div>
</div>
Teraz strona rejestracji publicznej powinna wyglądać następująco (wszystkie pola są obowiązkowe):
Ukrywanie przełącznika języka
Kroki umożliwiające ukrycie obu przełączników języków (w pobliżu tytułu ankiety i w prawym górnym rogu strony) opisano w naszej sekcji wiki poświęconej ankiety wielojęzyczne.
Ukrywanie „Wyjdź i wyczyść ankietę”
Jeśli chcesz ukryć przycisk „Wyjdź i wyczyść ankietę”, musisz edytować plik nav_bar.twig znajdujący się w motywie ankiety.
Linia, którą należy usunąć (lub skomentować):
{{ include('./subviews/navigation/clearall_links.twig') }}
Nie ma już możliwości wyjścia i wyczyszczenia ankiety.
Pomocy, przez przypadek...
Zapomniałem hasła administratora. Jak to zresetować?
Wersja 2.x
- Dostęp do serwera za pomocą wiersza poleceń (na przykład ssh)
- Upewnij się, że masz dostęp do wiersza poleceń php (zobacz http://php.net/features. Commandline.php).
- Przejdź do katalogu LimeSurvey
- Uruchom tę komendę
php application/commands/starter.php resetpassword NEW_ADMIN_NAME NEW_ADMIN_PASS
lubphp application/commands/console.php resetpassword NEW_ADMIN_NAME NEW_ADMIN_PASS
php może wymagać pełnego katalogu dostęp, przykład /usr/bin/php
Wersja 2.xx i nowsze z dostępem tylko do FTP
Zobacz ResetPasswordController
Zmień hasło bezpośrednio w bazie danych
Jeśli masz bezpośredni dostęp do bazy danych Limesurvey, możesz tam zmienić stare hasło, przesyłając nowe hasło jako skrót SHA256. Możesz utworzyć tutaj skrót SHA256 swojego hasła.
Na przykład możesz użyć tej instrukcji, aby ustawić hasło na hasło:
UPDATE lime_users USTAW hasło = 0x356538383438393864613238303437313531643065353666386463363239323737333630336430643661616262646436326131316 56637323164313534326438 GDZIE uid =1;
Tutaj z przedrostkiem lime_ i wybraną bazą danych.
Jak mogę przywrócić dane z dezaktywowanej ankiety?
We recommend to always use the time-out option instead of deactivating a survey. If you closed your survey accidentally, it is important that you don't change anything in the survey!
Then, and only then the following steps will work:
- Activate your survey again
- Select Responses from the survey toolbar.
- Click on Import and select the "Import answers from a deactivated survey table" menu entry.
- Choose your source table.
- Click on the "Import" button located on the upper-right part of the screen.
I deleted a question/question group/survey!
If you delete it, it is gone. Only a backup could help you recover it.
Hard- and Software requirements
For general requirements please refer to our installation instructions.
What limitations does LimeSurvey have...
...regarding speed
There is no existing speed limit on LimeSurvey. Everything depends on how fast your server and your connection are. If you expect a large number of users within a short amount of time and you are not sure if your server can handle this, check our forum for similar topics! or contact an authorized LimeSurvey partner: https://limesurvey.com.
...regarding survey size
MySQL and MariaDB
Note: 'Survey size' refers to the maximum number of questions (and answers) in your survey - don't confuse this with the number of replies on your survey (there is no limitation on that). Theoretically there would also be no limit on the maximum number of questions/answers in LimeSurvey. But the database engine you are using has several limits. The most important one is the limit on the number of fields(columns) in the result table.
- MySQL ISAM: The sum of the lengths of the VARCHAR and CHAR columns in a table may be up to 64KB.
- MySQL InnoDB: Maximum number of 1000 columns
- MS SQL Server 2000: Maximum number of 1024 columns. There are a maximum of 8,060 bytes for size one row, then even is survey can be activated, if you have a lot of text data : participant can not submit…
- Postgres: Maximum number of 250-1600 columns depending on column types. The maximum number of columns can be quadrupled by increasing the default block size to 32k. See Installation FAQ and PostgreSQL FAQ.
The mySQL ISAM engine is the most tricky one (see mysql documentation for more information). As it allows only up to 65,535 bytes per row and utf8 characters, it can require up to three bytes per character. The maximum may be only 21,844 characters (but this depends on your DB encoding).
You can roughly calculate the size of your survey like this:
- Every multiple numerical question: 20 chars for each answer
- Every multiple choice & array question answers: 5 chars for each answer
- Every other question type: 5 chars
- Add 10% for the usual overhead
With Microsoft SQL
There are no fixed limit on MSSQL. Some information on microsoft website.
The 8,060 bytes per row can appear after activation when you want to browse response and data. You can export answer code and not answer text or try to export only some columns.
With PostgreSQL
When you try to export response : you can have SQLSTATE[54000] error. You can export some columns. See forum post.
How to increase the maximum number of columns in PostgreSQL
In case your survey contains too many questions, you can define a different block size in PostgreSQL to create more columns. This might be tricky because you have to recompile PostgreSQL and set BLCKSZ to a higher value, like 16kiB or 32kiB. Watch for the configuration option "--with-blocksize=BLOCKSIZE". For details see the archives of the PostgreSQL mailing list or ask there (pgsql-patches(at)postgresql(dot)org).
Instructions for Debian (thanks to Martin Pitt):
sudo apt-get build-dep postgresql-8.3
apt-get source postgresql-8.3
cd postgresql-8.3-*
debian/rules patch
sensible-editor build-tree/postgresql-8.3.5/src/include/pg_config_manual.h
dpkg-buildpackage -us -uc -b -nc
Note: the above could not be reproduced on Ubuntu 14.04 in August 2014. A patch is required (the configuration option is not enough). See (tested with PostgreSQL 9.3 on Linux): Instructions for increasing the maximum number of columns in PostgreSQL on Linux
Fatal error: Allowed memory size
Depending on your server configuration you might run into memory problems being reported by an error like "Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 233472 bytes) in /path/to/htdocs/limesurvey/filename.php on line 7296".
You can try to raise the limit by adding an optional setting to LimeSurvey's config file.
Please bear in mind that changes in the default settings of an application can always be overruled by global server settings. To increase the memory limit of your sever to 128M:
- memory_limit = 128M to your server's main php.ini file (recommended, if you have access)
- memory_limit = 128M to a php.ini file in the LimeSurvey root
- php_value memory_limit 32M in a .htaccess file located in the LimeSurvey root folder
- " ini_set('memory_limit', '128M'); " in your config.php
Specific configuration
Under certain circumstances, you need to update the LimeSurvey configuration in application/config/config.php
IE 11 and Windows 7 / Windows 8
There is a known issue with the session with IE 11, that leads to users not being able to finish a survey.
It is solved by giving the session a unique name.
This is done by adding this to the config file.
// Set the name of the session
'session' => array (
'sessionName' => "YOURUNIQUESESSIONNAME",
),
Two LimeSurvey instances on same domain
If you run 2 LimeSurvey instances on the same domain, but within different directories, you need to update the session configuration.
For example, if you have example.org/ls1 and example.org/ls2, update the ls1 config file:
'session' => array (
'cookieParams' => array(
'path' => '/ls1',
),
),
'request' => array(
'csrfCookie' => array( 'path' => '/ls1' )
),