Actions

Installation Version 1.92 or older/nl: Difference between revisions

From LimeSurvey Manual

(Created page with "<div class="simplebox">File:help.png '''NB.:''' Beide instellingen ($defaultuser en $defaultpass) worden '''alleen''' gebruikt voor de setup. Na aanmaken van de database ...")
(Created page with "==Optionele instellingen==")
Line 73: Line 73:
<div class="simplebox">[[File:help.png]] '''NB.:''' Beide instellingen ($defaultuser en $defaultpass) worden  '''alleen''' gebruikt voor de setup. Na aanmaken van de database worden ze niet meer gebruikt.</div>
<div class="simplebox">[[File:help.png]] '''NB.:''' Beide instellingen ($defaultuser en $defaultpass) worden  '''alleen''' gebruikt voor de setup. Na aanmaken van de database worden ze niet meer gebruikt.</div>


==5.2 Optional settings==
==Optionele instellingen==


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 [[Optional settings|this page]]. However for a basic setup just continue with the next step.
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 [[Optional settings|this page]]. However for a basic setup just continue with the next step.

Revision as of 12:32, 5 June 2013

Extra pagina's:{toc}

Controleren of je LimeSurvey op je website kunt gebruiken

Controleer of de server voldoet aan de volgende eisen:

Vereist:

  • Minimaal 80Mb beschikbaar
  • MySQL 4.1.0 of later OF Microsoft SQL Server 2000 of later OF Postgres 8.1 of later
  • PHP 5.1.2. of later met de volgende modules en bibliotheken actief:
    • mbstring (zie ook: Installatie FAQ)
    • mysql5 of pgsql PHP bibliotheek (de standaard bij providers - als je een eigen server hebt, controleer dan of een van beide geïnstalleerd is)

NB.: We gaan ervan uit dat je geen standaardbibliotheken hebt gedeactiveerd (sessions, pcre, ctype of anderen).

Optionele PHP Extensies:

In de meeste gevallen kan je webhoster je helpen om deze componenten te activeren.

We bevelen XAMPP aan als je LimeSurvey op je lokale machine wilt installeren. Dit is een vrij simpel te installeren download die een complete webserver (Apache), MySQL, PHP en Perl bevat. LimeSurvey draait op XAMPP zonder verdere aanpassingen.

Als je LimeSurvey op een Microsoft IIS server wilt draaien, lees dan "Installation of LimeSurvey on a Windows XP machine" en "Installation on XP with IIS".

Hosting van LimeSurvey

LimeSurvey werkt met de meeste webhosters die PHP en MySQL leveren. Mocht je een turn-key oplossing willen hebben, zoek dan even naar LimeService, of kijk op onze Lijst van LimeSurvey-compatible hosters

Download LimeSurvey

Download de laatste stabiele versie van de LimeSurvey. Er zijn zip, gzip, bz2 en 7zip-bestanden beschikbaar. Sla de download op.

Uitpakken van LimeSurvey-download

Pak het bestand uit in een map. Gebruik hiervoor je favoriete software. Check bij het uitpakken dat je de mapstructuur mee uitpakt (gebeurt meestal vanzelf). Het pad mag geen haakjes, maar wel spaties bevatten.

Informatie over de server verzamelen

Noteer de volgende zaken voordat je LimeSurvey gaat installeren op de webserver:

  • Het webadres waar de scripts bereikbaar zijn(voorbeeld: http://mijn.domein.nl/limesurvey)
  • De fysieke locatie waar de scripts staan (voorbeeld: /home/usr/htdocs/limesurvey)
  • De IP/netlocatie van de databaseserver (voorbeeld: localhost)
  • De poort waarop de databaseserver zit, als dat een niet-standaardpoort is
  • Naam en wachtwoord van de databaseserver
  • De meeste webhosters laten een installatie niet een database aanmaken op de server. Maak in dat geval zelf een database aan (bijvoorbeeld limesurvey)

Configureer LimeSurvey

Open het bestand config.php in de map /limesurvey/ met een text editor.

Basis instellingen

Bekijk config.php en controleer/wijzig de volgende instellingen:

  • $databasetype: Het database type. Kies voor "mysql" bij een MySQL database server OF "odbc_mssql" of "mssqlnative" (dan heb je de native MSSQL PHP driver nodig van Microsoft) voor Microsoft SQL server OF "postgres" voor Postgres SQL Server. Dit zijn de geteste database types.
Belangrijk: Als je een Microsoft SQL server hebt, zorg er dan voor dat je database een case-insensitive collation gebruikt (zou de standaard moeten zijn).
  • $databaselocation: Stel dit in op de IP/net locatie van je database server. Meestal "localhost". Gebruik bij MSSQL de waarde <MACHINENAME>/<SERVERNAME>.
  • $databasename: De naam ven de database die je wilt gebruiken voor LimeSurvey. Als je daartoe rechten hebt op de server dan kun je dit doen via LimeSurvey. Als de database al bestaat, zorg er dan voor dat er geen oude tabellen van LimeSurvey in staan.
  • $databaseuser: De gebruikersnaam van de database server.
Belangrijk: Als je Postgres gebruikt, zorg dan dat je user ook de owner is.
  • $databasepass: Je database server password
  • $dbprefix: Laat dit leeg ($dbprefix="";) als LimeSurvey een eigen database krijgt. Als je in de database ook tabellen van andere applicaties hebt staan, geef hier dan een prefix op (bijv. "lime_"). NB.: Aanmaken van een database en een username in MySQL met de commandline is beschreven in Installatie FAQ.
  • $rooturl: Dit moet de URL locatie van je LimeSurvey scripts worden. Als je de LimeSurvey bestanden in de map limesurveyfolder hebt gezet, wijzig dan {$_SERVER['SERVER_NAME']}/limesurvey in de map die je gekozen hebt ({$_SERVER['SERVER_NAME']}limesurveyfolder). De variabele {$_SERVER['SERVER_NAME']} zal proberen je domeinnaam te bepalen, dus wijzigen is meestal niet nodig. Als het niet werkt, probeer dan de volledige server URL te gebruiken. (Bijvoorbeeld: "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.
NB.: Beide instellingen ($defaultuser en $defaultpass) worden alleen gebruikt voor de setup. Na aanmaken van de database worden ze niet meer gebruikt.

Optionele instellingen

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: