Actions

Namestitev - LimeSurvey CE

From LimeSurvey Manual

Revision as of 17:00, 15 June 2013 by Dusan (talk | contribs) (Created page with "Poznati morate naslednje za uspešno namestitev LimeSurvey-a na vaš spletni strežnik: *Vaš načrtovan URL spletne strani, kjer se bodo nahajale vaše skripte (nekaj podobn...")
Pomni: Ta navodila za namestitev so za različico 2.0 ali starejšo. Navodila za starejše različice lahko najdete tukaj

Splošno

LimeSurvey projekt ponuja dva načina namestitve:

  • Na vaš lasten spletni strežnik:
    V tem primeru sledite navodilom na tej strani s korakom 1.
  • Na vaš lokalni namizni PC s OS Windows:
    Običajno se LimeSurvey namešča na lokalni PC, če uporabnik želi ustvarjati ankete neposredno na svojem računalniku (večinoma zaradi hitrosti ali razlogov testiranja) in jih kasneje prenese na nameščen LimeSurvey na spletnem strežniku. V ta namen smo pripravili poseben paket za LimeSurvey, ki vsebuje spletni strežnik, podatkovno bazo in LimeSurvey aplikacijo in navodila kako ga namestiti.

1.Prepričajte se, da lahko uporabljate LimeSurvey na vašem spletnem strežniku

Preverite če vaš server zadošča naslednjim zahtevam. Večino teh zahtev lahko preverite med samo namestitvijo.

Zahteve:

  • Minimalno 80 MB prostora na disku
  • MySQL 4.1.0 ali novejša OR    Microsoft SQL Server 2005 ali novejša OR  Postgres 8.1 ali novejša
  • PHP 5.1.6 ali novejša s sledečimi vključenimi moduli/knjižnicami:
    • mbstring (Multibyte String Functions) extension library (preveri tudi Installation FAQ)
    • PDO database gonilnik za MySQL (pdo_mysql ali pdo_mysqli) ali Postgres (pdo_pgsql) ali MSSQL (pdo_sqlsrv)
    • Za PHP različico <5.2 boste potrebovali PECL JSON library( glej [1]) nameščeno
    • Prav tako predvidevamo v splošnem, da so vse PHP osnovne knjižnice omogočene (recimo hash, session, itd.).
Ne pozabite, da LimeSurvey 2.x uporablja različne gonilnike za bazo podatkov kot 1.x . Če naletite na sporočilo 'DBO gonilnik ni nameščen / No DBO driver was found' med namestitvijo, se boste morali obrniti na vašega ponudnika spletnega prostora in ga prositi, da vam aktivira eno od prej omenjenih gonilnikov za bazo podatkov.


PHP dodatki po želji:

V večini primerov vam bo lahko pomagal pri teh dodatnih komponentah vaš ponudnik spletnega prostora ali vaš sistemski administrator.

If you want to try LimeSurvey on your local machine we recommend XAMPP which is an easy to install software package containing a complete web server with Apache, MySQL, PHP and Perl. LimeSurvey will run on XAMPP with no configuration needed.

Če želite uporabljati Microsoft's IIS server, si pomagajte z "Installation of LimeSurvey on a Windows XP machine" in "Installation on XP with IIS".

1.1 Gostovanje za LimeSurvey

LimeSurvey bi moral delovati pri večini ponudnikov gostovanj, ki zagotavljajo PHP in MYSQL. V kolikor želite že nameščeno verzijo LimeSurvey-a, premislite o uporabi LimeService, sicer pa preverite naš seznam LimeSurvey-kompatibilnih ponudnikov gostovanj.

2.Prenesite si LimeSurvey paket

Download zadnji stabilni LimeSurvey zip paket (tu se nahajajo tudi gzip, bz2 in 7zip paketi) in ga shranite na svoj lokalni disk.

3. Unpack the LimeSurvey package

Razširite zip datoteko v primerno mapo z uporabo vašega prilubljenega programa za razširjanje. Ko razširite datoteko, se prepričajte da ste razširili tudi mapno zgradbo datotek(to je običajno dejanje večine programov za razširjanje). Ime mape namestitvenih datotek ne sme vsebovati ( ali ) znakov, lahko pa vsebuje znak za presledek.

4. Zberite informacije o vašem serverju

Poznati morate naslednje za uspešno namestitev LimeSurvey-a na vaš spletni strežnik:

  • Vaš načrtovan URL spletne strani, kjer se bodo nahajale vaše skripte (nekaj podobnega kot: http://my.domain.com/limesurvey)
  • Mesto (fizično mapo) na vašem disku na serverju, kjer se bodo nahajale vaše skripte(nekaj podobnega kot: /home/usr/htdocs/limesurvey)
  • IP/net lokacijo vašega serverja za podatkovno bazo(običajno: localhost)
  • Če vaš server za podatkovno bazo uporablja nestandardna vrata, pridobite informacijo o pravih vratih.
  • Vaše uporabniško ime in geslo za vaš server podatkovne baze
  • Pri večini ponudnikih ne morete ustvariti podatkovne baze s skripto, pač pa jo morate ustvariti sami.Če je v vašem primeru tako, ustvarite podatkovno bazo(na primer limesurvey) sami.

5. Upload the files to your web server

Using your FTP program, connect to your web server and create a directory to store your scripts. Then upload the files using the directory structure they are in. Make sure you upload the files in binary mode (check the settings of your FTP program). Please note that uploading in ASCII mode can lead to uncommon errors (e.g. 'class not found' error during installation), also images may not be uploaded correctly.

7.1 Set Directory permissions

For the script to work properly it needs certain access to some directories - this applies especially to Linux/*nix systems.

  • The "/limesurvey/tmp" directory and all its subdirectories and files are used for imports & uploads and should be set to Read & Write for your webserver.
  • The "/limesurvey/upload/" directory and all its subdirectories and files must also have Read & Write for your webserver in order to enable picture and media files upload.
  • The "/limesurvey/application/config/" directory also needs Read & Write permissions for your webserver.
  • The other directories can be set to Read Only or in Linux/Unix. You may wish to set the permissions on each file within the /limesurvey/admin directory to Read Only.
 Hint: If you are using Linux then depending on your webserver configuration you will have to chmod the rights on the writable folders to 755 or 777. Try 755 first - if it does not work 'upgrade' to 777.


7.2 Create a database user

LimeSurvey will create a database and the tables inside it. To be able to do this it will need the username and password of a database user. In general we recommend to create a database user with the following permissions:

- MySQL: SELECT, CREATE, INSERT, UPDATE, DELETE, ALTER, DROP, INDEX

- PostgreSQL: SELECT, INSERT, UPDATE, DELETE, TRUNCATE, TRIGGER

- Microsoft SQL Server:

8. Run the installation script

Go to "http://your.domain.com/limesurvey/admin". If you configured everything correctly the LimeSurvey installer should be starting - just follow the instructions. You will be asked if to create the database and/or create the tables inside the database. LimeSurvey then creates the needed tables in the database.

9. Connect to the administration script for the first time

After the installer has finished you are done! Open your browser and enter the URL of your admin.php script. Assuming you used LimeSurvey as the directory name to store the files in, this will be something like "http://your.domain.com/limesurvey/admin/admin.php".

You should get a login screen. The default login credentials (if not changed during in the installation) are

User: admin

Password: password

You will be prompted to change the default password after you logged in. Have fun!

10. What if I have problems...

Like all computer programs, most of the time things will work just like the instructions say, but sometimes they just won't. There are too many possible reasons for things not going according to plan to describe here. If you have trouble, first check out the Installation FAQ. If you don't find your answer there please post your problem and any error messages in the LimeSurvey forums on limesurvey.org or join the IRC channel: