Actions

Installation - LimeSurvey CE/ja: Difference between revisions

From LimeSurvey Manual

(Updating to match new version of source page)
(Updating to match new version of source page)
Line 5: Line 5:
=全般的なこと=
=全般的なこと=


LimeSurveyプロジェクトは、二通りのインストール方法を準備しています。
The LimeSurvey project provides two ways to install LimeSurvey:
*自分のウェブサーバー:<br />この場合は、このページのステップ1からそのとおりに行います。
*On your webserver:<br />In that case just follow the instructions on this page starting with step 1.


*ローカルのWindows PC:<br />調査をまずはローカル環境で作ろうとする場合は、(スピードやテストの都合で)自分のPC上にインストールしておいて、あとでその環境をウェブサーバーに移したいということがあるでしょう。この目的のために、ウェブサーバー・データベース・LimeSurveyアプリケーションをすべて含んだ特別なパッケージを準備しました。[[Installation of the LimeSurvey XAMPP package|XAMPP版LimeSurveyのインストール方法はここから。]]
*On your local Windows PC:<br />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 [[Installation of the LimeSurvey XAMPP package|instructions how to install it]].


===1. LimeSurveyの利用環境===
===1. LimeSurveyの利用環境===
Line 16: Line 16:
Required:
Required:
* Minimum 180MB disk space
* Minimum 180MB disk space
* MySQL 5.5.3 or later '''OR'''    Microsoft SQL Server 2005 or later '''OR'''  Postgres 9 or later
* MySQL 5.5.3 or later '''OR''' Microsoft SQL Server 2005 or later '''OR''' Postgres 9 or later
* Minimum ''PHP 5.3.3 or later'', however we recommend "PHP 5.5.x or later" with the following modules/libraries enabled:
* 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#What is this mbstring (Multibyte String Functions) library?|Installation FAQ]])
** mbstring (Multibyte String Functions) extension library (see also [[Installation FAQ#What is this mbstring (Multibyte String Functions) library?|Installation FAQ]])
** PDO database driver for MySQL (pdo_mysql or pdo_mysqli) or Postgres (pdo_pgsql) or MSSQL ([http://php.net/manual/en/ref.pdo-sqlsrv.php pdo_sqlsrv] for Windows and [http://www.php.net/manual/en/ref.pdo-dblib.php pdo_dblib] for Linux)
** PDO database driver for MySQL (pdo_mysql or pdo_mysqli) or Postgres (pdo_pgsql) or MSSQL ([http://php.net/manual/en/ref.pdo-sqlsrv.php pdo_sqlsrv] for Windows and [http://www.php.net/manual/en/ref.pdo-dblib.php pdo_dblib] for Linux)
Line 44: Line 44:
==Screen sizes==
==Screen sizes==
We support any reasonable screen size for survey taking (360px x 640px and up).
We support any reasonable screen size for survey taking (360px x 640px and up).
For the LimeSurvey administration the minimum screen resolution supported ist 1280px x 1024px.
For the LimeSurvey administration the minimum screen resolution supported is 1280px x 1024px.


==Hosting for LimeSurvey==
==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 [https://www.limesurvey.org/component/limeservice/?view=limeservice&task=limeservice.routeAlternatives LimeSurvey Professsional], else check out our [[LimeSurvey-compatible hosting companies|list of LimeSurvey-compatible hosting companies]].
LimeSurvey should work with most hosting companies which provide PHP and MYSQL. If you want a ready-installed version of LimeSurvey consider using [https://www.limesurvey.org/component/limeservice/?view=limeservice&task=limeservice.routeAlternatives LimeSurvey Professional], else check out our [[LimeSurvey-compatible hosting companies|list of LimeSurvey-compatible hosting companies]].


===2. LimeSurveyをダウンロードする===
===2. LimeSurveyをダウンロードする===

Revision as of 15:30, 2 August 2017

Note: These installation instructions are for version 2.0 or later. Older instructions for 1.92 can be found here and update instructions can be found here

全般的なこと

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.).
Note: LimeSurvey 2.x uses different database drivers than 1.x . If you get a message not No DBO driver was found during the installation you will have to contact your webspace provider and ask them to activate one of the aforementioned database driver libraries.
Note: If you are connecting from Linux to a MSSQL database on a Windows server using the dblib PDO driver, then the underlying FreeTDS needs to be set up correctly. Check out the Troubleshooting page for more info.

Optional PHP Extensions:

これらの導入については、サーバ提供者の助けを借りるとうまくいく場合が多いでしょう。

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 も読み込み専用にしておくとよいでしょう。
 Hint: If you are using Linux then setting permissions depends on your webserver configuration. For example, using Apache HTTPD on CentOS, use chmod -R 755 <directory> ; chown -R apache <directory>. This will give everyone access to read, and your webserver will have permission to write. For more information on Linux permissions, see http://www.linux.com/learn/tutorials/309527-understanding-linux-file-permissions


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: