Actions

Installation FAQ/sl: Difference between revisions

From LimeSurvey Manual

(Updating to match new version of source page)
(Updating to match new version of source page)
Line 4: Line 4:
=Installation on your computer=
=Installation on your computer=


LimeSurvey can be installed on your computer with MAMP/XAMP or any other system. But your computer is not a web server : it's not accessible via web by other user.  
LimeSurvey can be installed on your computer with MAMP/XAMP or any other system. But your computer is not a web server - it's not accessible via web to any other user.  


Then if you want to spread your survey on the web : you have to  
In order to make your survey reachable to other users via the web, you need to either:


* own a server  
* own a server or a web space from a host provider;
* or a web space at a hoster
* or find a LimeSurvey-specialized host provider.
* find a LimeSurvey instance specialized hoster


{{Alert|Installation on your computer is not done to share your survey on internet.}}
{{Alert|An installation on your computer is not done to share your survey on internet!}}


=Med namestitvijo=
=Starting installation=


==Kako lahko ustvarim bazo podatkov in uporabnika v mysql-u preko ukazne vrstice?==
==How can I create a database and a user in MySQL with command line access?==


V vaš mysql morate vnesti spodnje ukaze.
You have to enter the below commands in your MySQL:


create database '''<ime_vaše_podatkovne_zbirke>''';
*<code>create database '''<your_database_name>''';</code>


create user '''<vaše_uporabniško_ime>''';
*<code>create user '''<your_database_username>''';</code>


create user '''<vaše_uporabniško_ime>'''@localhost;
*<code>create user '''<your_database_username>'''@localhost;</code>


set password for '''<vaše_uporabniško_ime>''' = PASSWORD(''''<vaše_uporabniško_geslo>'''');
*<code>set password for '''<your_database_username>''' = PASSWORD(''''<your_database_password>'''');</code>


set password for '''<vaše_uporabniško_ime>'''@localhost = PASSWORD(''''<vaše_uporabniško_geslo>'''');
*<code>set password for '''<your_database_username>'''@localhost = PASSWORD(''''<your_database_password>'''');</code>


grant all on '''<ime_vaše_podatkovne_zbirke>'''.* to ''''<vaše_uporabniško_ime>'''';
*<code>grant all on '''<your_database_name>'''.* to ''''<your_database_username>'''';</code>


grant all on '''<ime_vaše_podatkovne_zbirke>'''.* to ''''<vaše_uporabniško_ime>''''@'localhost';
*<code>grant all on '''<your_database_name>'''.* to ''''<your_database_username>''''@'localhost';</code>


V zgornjih ukaznih vrsticah morate zamenjati '''<ime_vaše_podatkovne_zbirke>''', '''<vaše_uporabniško_ime>''' in '''<vaše_uporabniško_geslo>''' z ustreznimi vrednostmi.
In terminal, <code>'''<your_database_name>'''</code>, <code>'''<your_database_username>'''</code>, and <code>'''<your_database_password>'''</code> have to be replaced with the according/desired values.


==Kaj če ne morem ustvariti podatkovne zbirke s pomočjo ukaznih datotek (skript)?==
==Kaj če ne morem ustvariti podatkovne zbirke s pomočjo ukaznih datotek (skript)?==


Običajno zagonske datoteke (skripte) najprej ustvarijo novo zbirko podatkov in potem zgradbo tabel. Vendar če vam vaš strežnik ne omogoča skrbniških pravic za izdelavo nove MySQL podatkovne zbirke, se boste morali obrniti na sistemskega skrbnika za izdelavo potrebne zbirke. Na voljo morate imeti prazno zbirko podatkov, nad katero imate ustrezne pravice (branja/pisanja/ustvarjanja). V tem primeru lahko pričnete z običajno namestitvijo LimeSurvey-a, ki vam bo ustvarila tabele v obstoječi podatkovni zbirki.
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.


==Pojavi se prazna stran, ko dostopam do strani za namestitev==
==Pojavi se prazna stran, ko dostopam do strani za namestitev==


Ta problem ni povezan z namestitvijo LimeSurvey-a, pač pa z namestitvijo PHP-ja.
The problem is not with the LimeSurvey installation but with the PHP installation.
*Preverite, če imate nameščen MySQL PHP modul (php-mysql).
*Verify you have the MySQL PHP module (php-mysql) installed.
*Preverite, če vaš nameščeni PHP naloži datoteko PHP.ini, ki ste jo vi spremenili in ne kakšne druge PHP.INI datoteke na vašem sistemu.
*Verify your PHP install is loading the PHP.ini file your are modifying and not parsing other PHP.INI files on your system.
*Preverite mesto in pravice naslednjih nastavitev za vašo datoteko PHP.ini
*Verify the location and permissions of the following setting in your PHP.ini:


<syntaxhighlight lang="c" enclose="div">upload_tmp_dir="/temp"
<syntaxhighlight lang="c" enclose="div">upload_tmp_dir="/temp"


session.save_path="/temp"</syntaxhighlight>
session.save_path="/temp"</syntaxhighlight>
*Preverite, da vaš strežnik zaganja ustrezno različico PHP-ja (problem s prazno stranjo se pojavi v kombinaciji PHP-ja v4.4 in LimeSurvey-a v2.00+).
*Verify if your server runs a suitable PHP version.


==Sporočila o napakah zaradi neobstoječih virov==
==Sporočila o napakah zaradi neobstoječih virov==


Včasih se datoteke ne naložijo pravilno ali so bile pokvarjene med nalaganjem. To vodi do nekaterih različnih sporočil o napakah. Večinoma se nanašajo na datoteko ali funkcijo znotraj datoteke, ki je ni moč najti.
Sometimes, files are not uploaded correctly or were 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.


'''Rešitev:''' Ponovno naložite vse datoteke, ki uporabljajo binarni način vašega FTP program-a.
'''Rešitev:''' Ponovno naložite vse datoteke, ki uporabljajo binarni način vašega FTP program-a.
Line 60: Line 59:
=Requirements page=
=Requirements page=


==Kaj je to knjižnica mbstring (Multibyte String Functions)?==
==What is the mbstring (Multibyte String Functions) library?==


Knjižnica mbstring je PHP knjižnica, ki omogoča pretvarjanje skupin znakov iz enega jezika v drugega. To knjižnico potrebujete, če želite uporabljati LimeSurvey. Da preverite, če je že nameščena, odprite URL
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 an web browser:


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


v vašem spletnem brskalniku. Prikazalo se vam bo veliko informacij. V poglavju '''Configuration''' poiščite niz 'mbstring'.
A lot of information will be shown. Search for the string 'mbstring' under the '''Configuration''' section. If you find the mbstring section then all should be well and you can continue on with your LimeSurvey installation!


Če najdete opis mbstring v tem izpisu, potem bi moralo biti vse vredu in lahko nadaljujete z vašo namestitvijo LimeSurvey-a!
'''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 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;
'''Če ne najdete mbstring dela''', so morda pred vami težave.
*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 Linux distributions nowadays;
 
**If you are using a version of Linux that supports 'yum' (CentOS, RedHat, Fedora):
Na voljo so tri možnosti:
***Use the terminal (as a super user) and type: '''yum install php-mbstring''';
*če imate ponudnika strežnika: prosite vašega ponudnika, da vam aktivira ta PHP dodatek ali da vam pove, kako ga aktivirate sami (če imate na voljo dober skrbniški vmesnik za vaš strežnik).
***Make sure to update /etc/php.ini and uncomment the various mbstring params;
*če imate lasten '''Linux''' strežnik: najbrž boste morali ponovno prevesti PHP in vključiti knjižnico mbstring. Za pomoč pri tem prosite linux strokovnjake. V večini današnjih različicah linux-a ga lahko namestite z uporabo vašega linux upravljalnika paketov (Linux packet manager).
***Make sure to restart apache after installing it: '''/etc/init.d/httpd restart''';
**če uporabljate različico linux-a, ki omogoča '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 that string is commented out with a semicolon. Remove the semicolon, save, and restart your web server.
### uporabite terminal (kot super uporabnik) in vtipkajte: '''yum install php-mbstring'''
### ne pozabite posodobiti /etc/php.ini in odkomentirati številne  mbstring parametre
### po uspešni namestitvi ne pozabite ponovno zagnati apache:  '''/etc/init.d/httpd restart'''
*če je vaš '''Windows''' strežnik: poiščite php.ini na vašem sistemu, ga odprite z urejevalnikom in poiščite niz mbstring. Po vsej verjetnosti je vrstica, ki vsebuje ta niz, onemogočena s podpičjem. Odstranite podpičje, shranite in ponovno zaženite vaš spletni strežnik.


== Stuck at checking file system permissions ==
== 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 but the list of directories is empty. SELinux prevents writing even though the permissions are on e.g. 777 or 755.
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 on for example on 777 or 755. To configure SELinux correctly for your server - check out the [https://wiki.centos.org/HowTos/SELinux SELinux documentation].
You need to configure SELinux for your server correctly - check out the [https://wiki.centos.org/HowTos/SELinux SELinux documentation].


=Po ustvarjanju podatkovne zbirke=
=Po ustvarjanju podatkovne zbirke=
Line 89: Line 83:
==Prazna stran po ustvarjanju podatkovne zbirke==
==Prazna stran po ustvarjanju podatkovne zbirke==


===Simptomi===
===Symptoms===
* LimeSurvey se je vredu namestil in podatkovna zbirka je bila ustvarjena, vendar namesto strani za skrbnike dobim prazno stran
* LimeSurvey installed OK, and database was created, but instead of the admin page, you get an empty page
* Dnevnik spletnega strežnika pokaže "Fatal error: Call to a member function on a non-object in /path/to/limesurvey/admin/login_check.php on line 69"
* 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"


===Popravek===
===Popravek===


Najbrž gre za napačno nastavitev za $rooturl ali $rootdir v datoteki config.php. V tem primeru config.php poskuša pravilno nastaviti $rootdir z ukazom <nowiki>dirname('''FILE''')</nowiki>. Poskušajte ročno nastaviti $rootdir in predvsem, ko vam vaša lupina ali pwd ukaz pokaže pot podobno temu "/disks/hostname/home/username/public_html/limesurvey", poskušajte uporabiti "/home/username/public_html/limesurvey".
This is probably related to an incorrect setting for <code>$rooturl</code> or <code>$rootdir</code> in config.php. The file config.php attempts to set <code>$rootdir</code> correctly by calling <code><nowiki>dirname('''FILE''')</nowiki></code>. 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 manually the <code>$rootdir</code>, (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".


==Pri dostopu do skrbniške strani jo brskalnik kar naprej prikazuje in jo naenkrat neha prikazovati==
==When accessing the admin page, the browser keeps running and will eventually fail to show it==


===Symptoms===
===Symptoms===
* LimeSurvey-eva namestitev je vredu in podatkovna baza je bila ustvarjena. Vendar pri dostopu do skrbniške strani jo brskalnik kar naprej prikazuje in jo naenkrat neha prikazovati.
* LimeSurvey installed OK and the database was created. But when you access the admin page, the browser keeps running and will eventually fail to show the page.
* Pri preverjanju strežniške datoteke, ki beleži poročilo o dostopu, je opaziti, da njena velikost postane zelo velika (v nekaterih primerih celo več kot 2 GB).
* When you check the web server access log, its size has become quite big (in some cases, more than 2 GB).
* V poročilu o dostopih se pojavlja to sporočilo, ki polni poročilo.
* 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
{{Alert|title=Warning|text=''fread() [function.fread]: Length parameter must be greater than 0 in /limesurvey/classes/php-gettext/streams.php on line 120.}}''


''Pomni:'' številka vrstice je lahko drugačna in je odvisna od različice vašega LimeSurvey-a.
{{Note|The line number may be different depending on your LimeSurvey version.}}


===Popravek===
===Popravek===
Line 114: Line 108:
mbstring.func_overload = 0
mbstring.func_overload = 0


''Pomni:'' to pomeni, da nobena funkcija ne sme preobremeniti sistema. Za več informacij o tej nastavitvi poglejte v PHP priročnik: [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].}}


==Pri dostopu do skrbniške strani brskalnik javlja usodno napako: Call to a member function gT() on a non-object in login_check.php on line 76==
==Pri dostopu do skrbniške strani brskalnik javlja usodno napako: Call to a member function gT() on a non-object in login_check.php on line 76==


===Simptomi===
===Symptoms===
* LimeSurvey je vredu nameščen in podatkovna baza je ustvarjena. Vendar pri dostopu do skrbniške strani brskalnik javlja omenjeno napako.
* LimeSurvey installed OK and database was created. But when redirected to the admin page, the browser displayed the the listed error.
* $rootdir in $rooturl sta ustrezno nastavljena v datoteki  config.php.
* <code>$rootdir</code> and <code>$rooturl</code> are correctly set in config.php.
* ime poti do Limesurvey-e mape za namestitev vsebuje enega od neslednjih znakov: ()+
* The disk path name for limesurvey installation directory includes one of the following characters: '''(''',''')''' or '''+'''.


''Pomni:'' drugi znaki lahko prav tako povzročajo enako vedenje
{{Note|Other characters may also induce the same behaviour.}}


===Popravek===
===Popravek===


Premakni oz. preimenuj Limesurvey-evo mapo za namestitev tako, da ime ne vsebuje nobenega od znakov '''(''' ali ''')'''
Move/rename the limesurvey installation directory so that the path name includes non of the following characters: '''(''', ''')''' or '''+''' characters.


=Po namestitvi=  
=Po namestitvi=  


Za vse težave, ki se pripetijo po uspešni namestitvi, se prosimo obrnite na stran za [[Troubleshooting/sl|odpravljanje težav]].
For all issues happening after a successful installation, please refer to the [[Troubleshooting]] page.

Revision as of 15:10, 7 August 2017

Vsebina:

Installation on your computer

LimeSurvey can be installed on your computer with MAMP/XAMP or any other system. But 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:

  • own a server or a web space from a host provider;
  • or find a LimeSurvey-specialized host provider.
  An installation on your computer is not done to share your survey on internet!


Starting installation

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

You have to enter the below commands in your MySQL:

  • create database <your_database_name>;
  • create user <your_database_username>;
  • 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.

Kaj če ne morem ustvariti podatkovne zbirke s pomočjo ukaznih datotek (skript)?

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.

Pojavi se prazna stran, ko dostopam do strani za namestitev

The problem is not with the LimeSurvey installation but with the PHP installation.

  • 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:
upload_tmp_dir="/temp"

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

Sporočila o napakah zaradi neobstoječih virov

Sometimes, files are not uploaded correctly or were 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.

Rešitev: Ponovno naložite vse datoteke, ki uporabljajo binarni način vašega FTP program-a.

Requirements page

What is the mbstring (Multibyte String Functions) library?

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 an web browser:

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

A lot of information will be shown. Search for the string 'mbstring' under the Configuration section. If you find the mbstring section then all should be well and you can continue on 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 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 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 that 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 on for example on 777 or 755. To configure SELinux correctly for your server - check out the SELinux documentation.

Po ustvarjanju podatkovne zbirke

Prazna stran po ustvarjanju podatkovne zbirke

Symptoms

  • LimeSurvey installed OK, and 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"

Popravek

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 manually the $rootdir, (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 installed OK and the 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 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.

Popravek

To lahko povzorča nastavitev mbstring.func_overload. Preverite to nastavitev v vaši datoteki php.ini in jo nastavite takole:

mbstring.func_overload = 0

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

Pri dostopu do skrbniške strani brskalnik javlja usodno napako: 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 redirected 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: (,) or +.
Other characters may also induce the same behaviour.

Popravek

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

Po namestitvi

For all issues happening after a successful installation, please refer to the Troubleshooting page.