Installationsversion 1.92 eller ældre
From LimeSurvey Manual
1. Sørg for, at du kan bruge LimeSurvey på din hjemmeside
Sørg for, at din server opfylder følgende yderligere krav:
Påkrævet:
- Minimum 80 MB diskplads
- MySQL 4.1.0 eller nyere ELLER Microsoft SQL Server 2000 eller nyere ELLER Postgres 8.1 eller nyere
- PHP 5.1.2 eller nyere med følgende moduler/biblioteker aktiveret:
- mbstring (Multibyte String Functions) udvidelsesbibliotek (se også Installation FAQ )
- mysql5 eller pgsql PHP-bibliotek (som er standard hos hostingudbydere - hvis du har opsat din egen server, så sørg for at den er installeret)
Bemærk: Vi antager, at du ikke har nogen PHP-standardbiblioteker eksplicit deaktiveret (såsom sessioner, pcre, ctype eller andre).
Valgfri PHP-udvidelser:
- GD-Library med FreeType-understøttelse installeret er nødvendig for captchas eller flotte diagrammer i statistik - se /da/image.setup.php PHP GD-Library Extension-dokumentation
- IMAP (temmelig standard) er nødvendig for E-mail afvisningssporingssystem - se .php.net/manual/en/imap.setup.php PHP IMAP-udvidelsesdokumentation
- LDAP installeret er nødvendig for at importere tokens ved hjælp af LDAP - se /manual/da/ldap.installation.php PHP LDAP-dokumentation
- Zip (temmelig standard) til skabelonupload og importressourcer Zip-arkiver - se manual/en/zip.setup.php PHP Zip Extension dokumentation
- Zlib (temmelig standard) er nødvendig for ComfortUpdate - se /manual/da/zlib.setup.php PHP Zlib-udvidelsesdokumentation
I de fleste tilfælde vil din webhoteludbyder eller systemadministrator være i stand til at hjælpe dig med disse valgfrie komponenter.
Hvis du vil prøve LimeSurvey på din lokale maskine anbefaler vi XAMPP, som er en nem at installere softwarepakke, der indeholder en komplet webserver med Apache, MySQL, PHP og Perl. LimeSurvey vil køre på XAMPP uden behov for konfiguration.
Hvis du vil køre Microsofts IIS-server, så kig på "Installation på XP med IIS".
1.1 Hosting for LimeSurvey
LimeSurvey burde fungere med de fleste hostingfirmaer, der leverer PHP og MYSQL. Hvis du vil have en færdiginstalleret version af LimeSurvey, så overvej at bruge LimeSurvey Cloud, ellers tjek vores liste over LimeSurvey-kompatible hostingvirksomheder.
2. Download LimeSurvey-pakken
Download den seneste stabile LimeSurvey zip-pakke (der er også gzip-, bz2- og 7zip-pakker tilgængelige for din bekvemmelighed) og gem den på din lokale disk.
3. Pak LimeSurvey-pakken ud
Udkomprimer zip-filen til en dedikeret mappe/mappe ved hjælp af din foretrukne komprimeringssoftware. Når du udkomprimerer filen, skal du sørge for at udkomprimere mappestrukturen med filerne (dette er standardadfærd for de fleste komprimeringsprogrammer). Stinavnet til installationsmappen bør ikke indeholde ( eller )-tegn, men kan indeholde tegnet mellemrum
4. Indsaml information om din server
Du bliver nødt til at vide følgende ting for at installere LimeSurvey på din webserver korrekt:
- Din tilsigtede webadresse, hvor dine scripts vil ligge (f.eks.: http://my.domain.com/limesurvey)! N!*Den fysiske diskplacering på din server, hvor dine scripts vil ligge (dvs.: /home/usr/htdocs/limesurvey)
- IP/net-placeringen af din databaseserver (dvs.: localhost )
- Hvis din databaseserver bruger en ikke-standard port, find ud af hvilken port det er.
- Dit brugernavn og adgangskode til din databaseserver
- Hos de fleste udbydere kan du ikke lade scriptet oprette databasen, men skal gøre det selv. Hvis du bruger en sådan udbyder, skal du oprette en database (for eksempel limesurvey) selv.
5. Konfigurer LimeSurvey
Åbn nu filen config.php i /limesurvey/ rodmappen med din foretrukne teksteditor.
5.1 Grundlæggende indstillinger
Gå gennem config.php og kontroller/indstil følgende indstillinger:
- $databasetype: Dette er databasetypen. I øjeblikket kan du her indstille "mysql" for MySQL-databaseserveren, "odbc_mssql" eller "mssqlnative" (kræver den oprindelige MSSQL PHP-driver fra Microsoft) til Microsoft SQL-server og "postgres" for Postgres SQL Server. Det er i hvert fald dem, der er blevet testet. (:stort smil:)
- $databaselocation: Set this to the IP/net location of your database server. In most cases "localhost" will work. If you are using MSSQL try to use <MACHINENAME>/<SERVERNAME> instead.
- $databasename: The name of the database on your database server that you will be using for LimeSurvey. If you have high level permissions on the server, you can create a database from LimeSurvey. In this case, put whatever the database will be called into this setting. Alternatively you can use the name of a previously created database here. If you provide an existing database name make sure the database does not contain old tables of LimeSurvey.
- $databaseuser: Your database server user name
- $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.
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.
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
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: