インストール - LimeSurvey CE
From LimeSurvey Manual
全般的なこと
The LimeSurvey project provides two ways to install LimeSurvey:
- On your webserver:
In that case just follow the instructions on this page starting with step 1.
- On your local Windows PC:
You usually only want to install LimeSurvey on your local PC if you want to create surveys locally (mainly for speed or development/test reasons) and upload them later to your live LimeSurvey installation on a web server. For this we have prepared a special package for LimeSurvey which includes the web server, the database and the LimeSurvey application and instructions how to install it.
1. LimeSurveyの利用環境
LimeSurveyを利用するには、サーバが以下の要件を満たしている必要があります。
Required:
- Minimum 180MB disk space
- MySQL 5.5.3 or later OR Microsoft SQL Server 2005 or later OR Postgres 9 or later
- Minimum PHP 5.4 or later, however we recommend PHP 5.6.x or later with the following modules/libraries enabled:
- mbstring (Multibyte String Functions) extension library (see also Installation FAQ)
- PDO database driver for MySQL (pdo_mysql or pdo_mysqli) or Postgres (pdo_pgsql) or MSSQL (pdo_sqlsrv for Windows and pdo_dblib for Linux)
- Also we assume in general that all PHP default libraries are enabled (like hash, session, etc.).
Optional PHP Extensions:
- GD-Library with FreeType support installed is needed for captchas or nice charts in statistics - see PHP GD-Library Extension documentation
- IMAP (pretty standard) is needed for the Email bounce tracking system - see PHP IMAP Extension documentation
- LDAP installed is needed to import tokens using LDAP - see PHP LDAP Documentation
- Zip (pretty standard) for template upload and import resources Zip archives - see PHP Zip Extension documentation
- Zlib (pretty standard) is needed for the ComfortUpdate - see PHP Zlib Extension documentation
これらの導入については、サーバ提供者の助けを借りるとうまくいく場合が多いでしょう。
If you want to run Microsoft's IIS server taking a look at "Installation on XP with IIS might also help.
Browser compatibility
For the survey taking side we currently support IE9 and all newer comparable browsers like FF, Chrome, Opera, etc. with activated JavaScript. For the administration part we currently support IE11 and all newer comparable browsers like FF, Chrome, Opera, etc. with activated JavaScript. We do not support any IE version running in Intranet-mode or Compatibility-mode!
Screen sizes
We support any reasonable screen size for survey taking (360px x 640px and up). For the LimeSurvey administration the minimum screen resolution supported is 1280px x 1024px.
Hosting for LimeSurvey
LimeSurvey should work with most hosting companies which provide PHP and MYSQL. If you want a ready-installed version of LimeSurvey consider using LimeSurvey Professional, else check out our list of LimeSurvey-compatible hosting companies.
2. LimeSurveyをダウンロードする
Download the latest stable LimeSurvey zip package (there are also gzip, bz2 and 7zip packages available for your convenience) and save it to your local disk.
3. LimeSurveyのパッケージを解凍する
お好きな解凍ソフト(例えばLhaplusなど)を用いて、zipファイルを任意のディレクトリ(もしくはフォルダ、以下同じ)に解凍します。フォルダ構造を持つzipファイルが解凍できるように設定してください。(多くの解凍ソフトでは、これがデフォルトの設定です。)
ディレクトリの権限設定
- このプログラムはアンケートをインポートする際にadminディレクトリへの書込権限が必要となります。またアップロードには"/limesurvey/tmp" ディレクトリが利用されるので、これらのディレクトリにはウェブサーバから読み書きできる必要があります。Linux, Unixではchmod 775の設定が必要です。
- その他のディレクトリは読取専用、Linux/Unixではchmod 755の設定で結構です。また、/limesurvey/admin ディレクトリの中の各ファイルを755に設定するのも一案です。
4. サーバの情報を集める
LimeSurveyを正しくインストールするために、次の情報が必要です。
- プログラムを置くWebサイトのURL(例: 'http://my.domain.com/limesurvey')
- プログラムを置くサーバ内の物理的なロケーション (例: '/home/usr/htdocs/limesurvey')
- MySQLデータベースサーバのIPアドレスまたはホスト名 (例: 'localhost')
- MySQLデータベースサーバが標準以外のポートを利用している場合、そのポート番号
- MySQLを利用する際のユーザ名とパスワード
- ホスティングサービスによっては、スクリプトからデータベース権限がないかも知れません。そのときはあらかじめデータベースの作成(limesurveyなどの名前で)だけやっておく必要があります。
5. ウェブサーバーへのアップロード
FTPなどでウェブサーバーに接続し、スクリプトを格納するディレクトリを作り、そこにディレクトリ構造をまるごとアップロードします。FTPの設定では、バイナリモードでアップロードするよう注意してください。ASCIIモードでは変なエラーが出ることがあります。(インストール中に 'class not found' となってしまうことがありますし、画像も壊れます。)
7.1 ディレクトリのパーミッション設定
スクリプトが正しく動くために、いくつかのディレクトリに正しいアクセス権が必要です。特に、Linuxのようなシステムにおいて。
- "/limesurvey/tmp"ディレクトリとその下のサブディレクトリとファイルは、インポートやアップロードに使われます。ウェブサーバーの実行ユーザーに、書き込みと読み込みの両方を許可してください。
- "/limesurvey/upload/"ディレクトリとその下すべてについても、書き込み・読み込みを許可します。画像やメディアのアップロードに使われます。
- "/limesurvey/application/config/" ディレクトリも書き込み・読み込みを許可してください。
- その他のディレクトリは読み込み専用にします。/limesurvey/admin も読み込み専用にしておくとよいでしょう。
7.2 データベースユーザーの作成
LimeSurveyはデータベースとその中のテーブルを自動で作ります。そのためには、そのデータベースエンジンへのユーザーネームとパスワードが必要です。ユーザーは、だいたい下のような権限が必要になるでしょう:
- 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. 管理プログラムに初回の接続を行う
Go to "http://www.example.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. うまくいかない時は…
After the installer has finished you are done! Open your browser and enter the URL to the LimeSurvey administration. Assuming you used 'limesurvey' as the directory name to store the files in, this will be something like "http://www.example.com/limesurvey/admin".
ログイン画面が現れるはずです。デフォルトでログインできるユーザーは、(インストール中に明示的に変えない場合、)
User: admin
Password: password
初回ログイン時に、デフォルトのパスワードを変更するのを忘れないようにしてください。
10. 何か問題があったら
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: