Actions

Versiunea de instalare 1.92 sau mai veche

From LimeSurvey Manual

Revision as of 08:42, 7 November 2023 by Maren.fritz (talk | contribs) (Created page with "<div class="simplebox">File:help.png '''Important:''' Dacă aveți un server Microsoft SQL, asigurați-vă că baza de date folosește o colare care nu ține seama de maju...")
Pagini suplimentare:{toc}

1. Asigurați-vă că puteți utiliza LimeSurvey pe site-ul dvs.

Asigurați-vă că serverul dvs. îndeplinește următoarele cerințe suplimentare:

Necesar:

  • Minim 80 MB spațiu pe disc
  • MySQL 4.1.0 sau o versiune ulterioară „SAU Microsoft SQL Server 2000 sau o versiune ulterioară „SAU Postgres 8.1 sau o versiune ulterioară
  • PHP 5.1.2 sau o versiune ulterioară cu următoarele module/biblioteci activate:
    • biblioteca de extensii mbstring (Multibyte String Functions) (consultați, de asemenea, Întrebări frecvente despre instalare )
    • biblioteca PHP mysql5 sau pgsql (care este standard cu furnizorii de găzduire - dacă v-ați configurat propriul server asigurați-vă că este instalat)

Notă: Presupunem că nu aveți nicio bibliotecă standard PHP dezactivată explicit (cum ar fi sessions, pcre, ctype sau altele).

Extensii opționale PHP:

În cele mai multe cazuri, furnizorul de spațiu web sau administratorul de sistem vă va putea ajuta cu aceste componente opționale.

Dacă doriți să încercați LimeSurvey pe computerul dvs. local, vă recomandăm XAMPP care este un pachet software ușor de instalat care conține un server web complet cu Apache, MySQL, PHP și Perl. LimeSurvey va rula pe XAMPP fără a fi necesară configurarea.

Dacă doriți să rulați serverul Microsoft IIS, aruncați o privire la „Instalarea pe XP cu IIS”.

1.1 Găzduire pentru LimeSurvey

LimeSurvey ar trebui să funcționeze cu majoritatea companiilor de găzduire care furnizează PHP și MYSQL. Dacă doriți o versiune gata instalată de LimeSurvey, luați în considerare utilizarea LimeSurvey Cloud, în caz contrar, consultați lista companiilor de găzduire compatibile cu LimeSurvey.

2. Descărcați pachetul LimeSurvey

Download cel mai recent pachet zip stabil LimeSurvey (există și pachete gzip, bz2 și 7zip disponibile pentru confortul dvs.) și salvați-l pe discul local.

3. Despachetați pachetul LimeSurvey

Decomprimați fișierul zip într-un director/dosar dedicat folosind software-ul de compresie preferat. Când decomprimați fișierul, asigurați-vă că decomprimați structura directoarelor cu fișierele (acesta este comportamentul implicit pentru majoritatea programelor de compresie). Numele căii pentru directorul de instalare nu trebuie să includă caractere „(' sau ), dar poate include caracterul spațiu

4. Colectați informații despre serverul dvs.

Va trebui să cunoașteți următoarele lucruri pentru a instala corect LimeSurvey pe serverul dvs. web:

  • Adresa URL a site-ului web intenționat, unde vor locui scripturile dvs. (de exemplu: http://my.domain.com/limesurvey)
  • Locația discului fizic de pe serverul dvs. unde vor locui scripturile dvs. (de exemplu: /home/usr/htdocs/limesurvey)
  • Locația IP/net a serverului dumneavoastră de bază de date (de exemplu: localhost)
  • Dacă serverul dvs. de baze de date utilizează un port non-standard, aflați ce port este acesta.
  • Numele dvs. de utilizator și parola pentru serverul dvs. de baze de date
  • La majoritatea furnizorilor nu puteți lăsa scriptul creați baza de date, dar trebuie să o faceți singur. Dacă utilizați un astfel de furnizor, vă rugăm să creați singur o bază de date (de exemplu, limesurvey).

5. Configurați LimeSurvey

Acum deschideți fișierul config.php în directorul rădăcină /limesurvey/ cu editorul de text preferat.

5.1 Setări de bază

Treceți prin config.php și verificați/configurați următoarele setări:

  • $databasetype: Acesta este tipul bazei de date. Momentan puteți seta aici „mysql” pentru serverul de baze de date MySQL, „odbc_mssql” sau „mssqlnative” (necesită driverul nativ MSSQL PHP de la Microsoft) pentru Microsoft SQL server și „postgres” pentru Postgres SQL Server. Cel puțin acestea sunt cele care au fost testate. (:biggrin:)
Important: Dacă aveți un server Microsoft SQL, asigurați-vă că baza de date folosește o colare care nu ține seama de majuscule și minuscule (ar trebui să fie setată implicit).
  • $databaselocation: Setați această locație IP/net a serverului dumneavoastră de baze de date. În cele mai multe cazuri, „localhost” va funcționa. Dacă utilizați MSSQL, încercați să utilizați<MACHINENAME> /<SERVERNAME> în schimb.
  • $databasename: Numele bazei de date de pe serverul dumneavoastră de baze de date pe care o veți folosi pentru LimeSurvey. Dacă aveți permisiuni de nivel înalt pe server, puteți crea o bază de date din LimeSurvey. În acest caz, puneți orice baza de date va fi apelată în această setare. Alternativ, puteți utiliza aici numele unei baze de date create anterior. Dacă furnizați un nume de bază de date existent, asigurați-vă că baza de date nu conține tabele vechi ale LimeSurvey.
  • $databaseuser: Numele dvs. de utilizator al serverului bazei de date.
Important: If you are using Postgres make sure your user is also the database owner.
  • $databasepass: Your database server password
  • $dbprefix: You can leave this setting blank (ie:  $dbprefix="";) if you are using a separate database for LimeSurvey alone. If you want to share a database between LimeSurvey and other database applications, add a prefix to this setting. The recommended prefix is "lime_", but really - this is up to you. Note: Creating a database and a username in MySQL with command line is described in Installation FAQ.
  • $rooturl: This should be set to the URL location of your LimeSurvey scripts. If you copied the LimeSurvey files into the folder limesurveyfolder you have to rename {$_SERVER['SERVER_NAME']}/limesurvey to the folder name you have chosen ({$_SERVER['SERVER_NAME']}limesurveyfolder). The variable {$_SERVER['SERVER_NAME']} will attempt to do determine your domain name atomatically, so usually don't change it. If it doesn't work, set this to full server URL. (Example "http://www.mydomain.com/limesurvey"). If you want LimeSurvey to only use SSL change http to https (provided that you have SSL certificates correctly installed and configured on your server). If you want to use http & https at the same time just leave this setting at http.
  • $rootdir: Usually you don't need to change this. It should be set to the physical disk location of your scripts. The default setting will attempt to do this for you, so most probably you won't need to change anything here (the section "dirname('''FILE''');" tries to do this automatically). If it doesn't work, type the disk location in manually - for example /home/public_html/limesurvey.
  • $defaultuser: When the script has access control turned on this is the default user that is created when LimeSurvey first sets up your security settings.
  • $defaultpass: When the script has access control turned on this is the default password that is created when LimeSurvey first sets up your security settings.
Note: Both settings ($defaultuser and $defaultpass) are used only for the initial setup. After LimeSurvey has set up the database these settings are not used at all.

5.2 Optional settings

There are many more optional settings you can set in config.php. Most of them are for installation only and can later be change in the Global settings dialog. For more information on these optional settings please check out the this page. However for a basic setup just continue with the next step.

6. 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. 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 is used for imports & uploads and should be set to Read & Write for your webserver.
  • The "/limesurvey/upload/" directory and all its subdirectories must also have Read & Write for your webserver in order to enable picture and media files upload.
  • 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.

8. Run the installation script

Go to "http://your.domain.com/limesurvey/admin/install". If you configured everything correctly you will be asked to create the database and/or create the tables inside the database. LimeSurvey then creates the needed tables in the database.

After the script shows that it successfully created the tables, you will be prompted to rename or delete the /admin/install directory - so just do it (:biggrin:).

9. Connect to the administration script for the first time

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 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: