Actions

Installation - LimeSurvey CE/zh-hant: Difference between revisions

From LimeSurvey Manual

(Created page with "====螢幕尺寸==== 對於問卷填寫方我們支援任何螢幕尺寸(360px x 640px 還有以上)。 對於問卷管理方最小支援尺寸是1280px x 1024px。")
No edit summary
Line 55: Line 55:
'''對於問卷填寫方''', 我們目前支援 IE11 (除了相容性模式) 和其他較新的瀏覽器如 Edge, FireFox, Chrome, Opera 等等,並啟動JavaScript。  
'''對於問卷填寫方''', 我們目前支援 IE11 (除了相容性模式) 和其他較新的瀏覽器如 Edge, FireFox, Chrome, Opera 等等,並啟動JavaScript。  


'''對於問卷管理者部份''',我們目前支援 Edge 和所有較新的瀏覽器,如 FireFox、Chrome、Opera 等等,並啟動了 JavaScript。<u>問卷管理者部份我們不再支援任何 Internet Explorer 版本。</u>
'''對於問卷管理''',我們目前支援 Edge 和所有較新的瀏覽器,如 FireFox、Chrome、Opera 等等,並JavaScript。<u>問卷管理者部份我們不再支援任何 Internet Explorer 版本。</u>


====螢幕尺寸====
====螢幕尺寸====

Revision as of 11:27, 30 June 2024

注意:這些安裝說明適用於 2.0 或更高版本。 1.92 的舊版說明可在 此處 找到,更新說明可在 此處 找到。

概觀

LimeSurvey 提供了兩種安裝的方法:

  • 在您的網頁伺服器上:
    在這種情況下,需從步驟 1 開始按照本頁上的說明進行操作。
  • 在您的本機 Windows PC 上:
    如果您想在自己的電腦建立問卷(主要是出於速度、開發或測試原因)並在稍後將其佈署到您的網頁伺服器上,通常只需在本機 PC 上安裝 LimeSurvey。為此,我們準備了一個特殊的 LimeSurvey 安裝包,其中包括網頁伺服器、資料庫、LimeSurvey 應用程式和 如何安裝的說明

確認 LimeSurvey 能夠在您的伺服器上執行

確認伺服器符合以下所有需求:

安裝過程中也將檢查最低需求!

LimeSurvey 6.x的最低需求:

  • 至少 250MB 硬碟空間
  • MariaDB 10.3.38 或更高版本 MySQL 8 或更高版本 Microsoft SQL Server 2008 或更高版本 Postgres 12 或更高版本。
  • PHP 版本需求:
    • LS 6.x 需 PHP 7.4.x ~ 8.x
    • LS 5.x 需 PHP 7.2.5 ~ 8.0.x
    • LS 3.x 需 PHP 5.5.9 ~ 7.4.x
  • php.ini 裡 `short_open_tag` 參數設定需設為 `ON`
  • 以下的 PHP 模組/擴充功能庫需啟用:
    • mbstring (Multibyte String Functions) 擴充功能庫
    • 在Windows環境 需要 MySQL 的PDO驅動程式庫 (pdo_mysql 或 pdo_mysqli) 或 Postgres (pdo_pgsql) 或 MSSQL (pdo_sqlsrv 而 Linux環境需要 pdo_dblib )。
    • 還有, 我們建議常用的PHP程式庫都應該啟用
      • hash
      • session
      • openssl or mcrypt
      • fileinfo
      • SimpleXML
      • 等等…
注意:如果您使用 dblib PDO 驅動程式從 Linux 連接到 Windows 伺服器上的 MSSQL 資料庫,則需要正確設定底層的 FreeTDS。請查看Troubleshooting頁面以獲取更多資訊。

選擇性PHP擴充:

在大多數情況下,您的網頁伺服器供應商或系統管理員能夠協助您解決這些選用元件的問題。

如果您想透過 Microsoft 的 IIS 執行,請查看 Installation on XP with IIS 可能也會有所幫助。

瀏覽器相容性

對於問卷填寫方, 我們目前支援 IE11 (除了相容性模式) 和其他較新的瀏覽器如 Edge, FireFox, Chrome, Opera 等等,並啟動JavaScript。

對於問卷管理方,我們目前支援 Edge 和所有較新的瀏覽器,如 FireFox、Chrome、Opera 等等,並需啟用 JavaScript。問卷管理者部份我們不再支援任何 Internet Explorer 版本。

螢幕尺寸

對於問卷填寫方我們支援任何螢幕尺寸(360px x 640px 還有以上)。 對於問卷管理方最小支援尺寸是1280px x 1024px。

Hosting for LimeSurvey

LimeSurvey should work with most hosting companies that provide PHP and MySQL. If you want a ready-installed version of LimeSurvey, you could try LimeSurvey Cloud, else check out our list of LimeSurvey-compatible hosting companies.

2. 下載 LimeSurvey 套件

到訪 sourceforge 網站下載最新的 LimeSurvey 套件. http://sourceforge.net/projects/limesurvey/

套件約 2 MB 的檔案大小。 下載 zip 壓縮格式的檔案,並儲存到您的硬碟內。

3. 解壓縮 LimeSurvey 軟體包

採用你慣用的壓縮軟體以預設目錄/資料夾的方式解壓縮 zip 格式的軟體包。請一併解壓縮軟體包原來預設的目錄結構及相關檔案).

目錄使用權限

  • 程序 admin 目錄需要有 '寫入' 權限來導入問卷. "/limesurvey/tmp" 目錄用作上傳文件,所以要設定可讀取/可寫入的狀態. 在 linux 或 unix 它應該 chmod 到 775.
其他目錄可以設定成可讀取狀態或在 linux/unix chmod 755. 你可以把 /limesurvey/admin 目錄內的文件都設定成 755 的使用權限.

4. 收集網站伺服器訊息

你需要符合以下條件才可以正確安裝 LimeSurvey.

  • 你要建立 limesurvey 的網址URL來存放它的源程序 (ie: 'http://my.domain.com/limesurvey')
  • limesurvey 在伺服器所在的實質位置 (ie: '/home/usr/htdocs/limesurvey')
  • 你的 MySQL 資料庫的 IP/網路位置 (ie:'localhost')
  • 如果您的 MySQL 資料庫使用非標準連接埠, 您就要找出埠號.
  • 你的 MySQL 資料庫使用的使用者名稱及密碼
  • 如果您的網路伺服器是使用 Windows 作業系統, 請當試找出 mysql bin 檔案的存放位置. (ie: 'c:/mysql/bin')

5. LimeSurvey 的組態設定

使用自己的文字編輯器修改 /limesurvey/目錄內的 config.php 文件檔,下列設定要加以調整:

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. You may wish in Linux/Unix to set the permissions on each file within the /limesurvey/admin directory to Read Only.
  If you are using Linux, then setting permissions depends on your webserver configuration. For example, if you use Apache HTTPD on CentOS, type chmod -R 755 <directory> ; chown -R apache <directory>. This will give everyone access to read, and your webserver will have the permission to write. Check the following link for more information on Linux permissions.


Create a database user

LimeSurvey will create a database and the tables inside it. To be able to do this, it will need the user name and password of a database user. We generally recommend creating 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: Unknown - if you can find out this information, please complete it.

8. 首次連結 admin 源程序

上傳檔案後,您可以透過網站瀏覽器建立 LimeSurvey. 打開您的瀏覽器,在網址列鍵入 admin.php 的 url 網址. 如果您是使用limesurvey 作為目錄名稱來存放它的所有檔案, 網址大概的形式如是 "http://your.domain.com/limesurvey/admin/admin.php"

You should get a login screen. The default login credentials (if they have not been changed during the installation) are:

第一次使用 LimeSurvey 時, 源程序會連接到你在 config.php 文件設定的數據庫. 如果該數據庫並未建立, LimeSurvey 會向你發出警訊. 至低限度您會進入登入的頁面. 預設核查身份的登入資料是︰

User: admin Password: password

</syntaxhighlight>

緊記第一次登入後馬上要更改預設的密碼.

Further configuration

Caching

LimeSurvey uses the Yii file cache by default, but it can be configured to use other cache engines. Possible other caches are:

  • Memcached
  • Redis
  • WinCache
  • XCache

Please see the Yii documentation for full description.

Since LimeSurvey 4.0.0 you also have the possibility to cache calculations in the ExpressionScript. This can provide a significant speed-up depending on survey complexity. To enable the emcache, add this in your config.php file (components array):

'emcache' => array('class' => 'CFileCache'),

As with the main Yii cache, other cache systems can be used.

The emcache is not compatible with randomized surveys, and will be automatically turned off in such cases.

9. 我遇到問題怎麼辦...

正如所有電腦程式, 運作過程難免偶有問題, 導致運作失常的原因也很多. 如果您操作上有麻煩, 請透過 limesurvey.org 的LimeSurvey forums 支援論壇或加入 IRC channel: irc://irc.freenode.net/limesurvey 發表您遇到的技術問題或LimeSurvey 執行後出現的錯誤訊息,一定有人協助您解決困難。