Actions

Installation - LimeSurvey CE/ja: Difference between revisions

From LimeSurvey Manual

(Created page with "===ブラウザの互換性=== 回答の回収には、IE7か、より新しい互換ブラウザ、FF、Chrome、Operaなどをサポートしています。 管理ツール...")
(Updating to match new version of source page)
Line 15: Line 15:


Required:
Required:
* Minimum 80 MB disk space
* Minimum 180MB disk space
* MySQL 4.1.0 or later '''OR'''    Microsoft SQL Server 2005 or later '''OR'''  Postgres 8.1 or later
* MySQL 5.5.3 or later '''OR'''    Microsoft SQL Server 2005 or later '''OR'''  Postgres 8.1 or later
* '''PHP 5.3 or later''' with the following modules/libraries enabled:
* Minimum ''PHP 5.3.3 or later'', however we recommend "PHP 5.5.x" 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 24: Line 24:
<div class="simplebox"> LimeSurveyの2.xは、1.xと異なるデータベースドライバを使っています。インストール中に、DBOドライバがみつからないといったメッセージが出た場合は、そこのウェブサーバー環境の管理者に、前述のドライバライブラリを入れてもらうようにお願いする必要があるでしょう。
<div class="simplebox"> LimeSurveyの2.xは、1.xと異なるデータベースドライバを使っています。インストール中に、DBOドライバがみつからないといったメッセージが出た場合は、そこのウェブサーバー環境の管理者に、前述のドライバライブラリを入れてもらうようにお願いする必要があるでしょう。


<div class="simplebox"> 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.</div>


推奨:
推奨:
Line 32: Line 33:


これらの導入については、サーバ提供者の助けを借りるとうまくいく場合が多いでしょう。
これらの導入については、サーバ提供者の助けを借りるとうまくいく場合が多いでしょう。
LimeSurveyをローカルコンピュータで試してみたいときは、[http://www.apachefriends.org/en/xampp.html XAMPP] を使うのがインストールも簡単でおすすめです。これにはウェブサーバーであるApache、MySQL、PHP、Perlがすべて含まれます。LimeSurveyはXAMPPの上で特別な設定なしに動作します。


If you want to run Microsoft's IIS server taking a look at "[[Installation on XP with IIS]] might also help.
If you want to run Microsoft's IIS server taking a look at "[[Installation on XP with IIS]] might also help.
データベースセッションを使用する場合は、MySQLの"max_allowed_packet"設定が十分に大きいことを確認して下さい。いくつかの設問は2MB以上のセッションデータを生成します。


===ブラウザの互換性===
===ブラウザの互換性===
Line 44: Line 41:
IEのイントラネットモードや、互換モードでの動作はサポートしてしません。
IEのイントラネットモードや、互換モードでの動作はサポートしてしません。


==1.1 LimeSurveyのホスティング==
==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 ist 1280px x 1024px.
 
==Hosting for LimeSurvey==


LimeSurveyは、PHPとMySQLが提供されていれば、たいていのホスティングサーバーで動作するはずです。インストールなしにLimeSurveyを使いたいときは、 [http://www.limeservice.com LimeService] の利用を検討してください。または、[[LimeSurvey-compatible hosting companies|LimeSurveyが動くホスティングサービスの一覧]] もご参考に。
LimeSurveyは、PHPとMySQLが提供されていれば、たいていのホスティングサーバーで動作するはずです。インストールなしにLimeSurveyを使いたいときは、 [http://www.limeservice.com LimeService] の利用を検討してください。または、[[LimeSurvey-compatible hosting companies|LimeSurveyが動くホスティングサービスの一覧]] もご参考に。
Line 86: Line 87:
*その他のディレクトリは読み込み専用にします。/limesurvey/admin も読み込み専用にしておくとよいでしょう。
*その他のディレクトリは読み込み専用にします。/limesurvey/admin も読み込み専用にしておくとよいでしょう。


{{Hint|Text=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.}}
{{Hint|Text=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 データベースユーザーの作成=
=7.2 データベースユーザーの作成=
Line 100: Line 101:
===8. 管理プログラムに初回の接続を行う===
===8. 管理プログラムに初回の接続を行う===


'''Go to "http://your.domain.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.
'''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. うまくいかない時は&hellip;===
===9. うまくいかない時は&hellip;===


After the installer has finished 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".
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".


ログイン画面が現れるはずです。デフォルトでログインできるユーザーは、(インストール中に明示的に変えない場合、)
ログイン画面が現れるはずです。デフォルトでログインできるユーザーは、(インストール中に明示的に変えない場合、)


<div class="simplebox"> ユーザ名: admin
<div class="simplebox"> ユーザ名: admin


パスワード: password
User: admin
Password: password
 
</syntaxhighlight>


</div>


'''初回ログイン時に、デフォルトのパスワードを変更するのを忘れないようにしてください。'''
'''初回ログイン時に、デフォルトのパスワードを変更するのを忘れないようにしてください。'''

Revision as of 12:09, 25 January 2017

注意: このインストール方法は、バージョン2.0以上用です。1.92以前用のものは ここ にあります。

全般的なこと

LimeSurveyプロジェクトは、二通りのインストール方法を準備しています。

  • 自分のウェブサーバー:
    この場合は、このページのステップ1からそのとおりに行います。
  • ローカルのWindows PC:
    調査をまずはローカル環境で作ろうとする場合は、(スピードやテストの都合で)自分のPC上にインストールしておいて、あとでその環境をウェブサーバーに移したいということがあるでしょう。この目的のために、ウェブサーバー・データベース・LimeSurveyアプリケーションをすべて含んだ特別なパッケージを準備しました。XAMPP版LimeSurveyのインストール方法はここから。

1. LimeSurveyの利用環境

LimeSurveyを利用するには、サーバが以下の要件を満たしている必要があります。

Required:

  • Minimum 180MB disk space
  • MySQL 5.5.3 or later OR    Microsoft SQL Server 2005 or later OR  Postgres 8.1 or later
  • Minimum PHP 5.3.3 or later, however we recommend "PHP 5.5.x" 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.).
LimeSurveyの2.xは、1.xと異なるデータベースドライバを使っています。インストール中に、DBOドライバがみつからないといったメッセージが出た場合は、そこのウェブサーバー環境の管理者に、前述のドライバライブラリを入れてもらうようにお願いする必要があるでしょう。
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.

推奨:

  • GDライブラリ(登録フォームのキャプチャ機能で必要。GD-Library PHP Documentationを参照。)
  • LDAPライブラリ(LDAPを用いたトークンをインポートするのに必要。PHP LDAP Documentationを参照。)
  • Zipライブラリ(Zipアーカイブ形式でテンプレートやその他のリソースをインポートするのに必要)
  • Zlibライブラリ(楽々アップグレードに必要)

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

If you want to run Microsoft's IIS server taking a look at "Installation on XP with IIS might also help.

ブラウザの互換性

回答の回収には、IE7か、より新しい互換ブラウザ、FF、Chrome、Operaなどをサポートしています。 管理ツールについては、IE9か、より新しい互換ブラウザ、FF、Chrome、Operaなどをサポートしています。 IEのイントラネットモードや、互換モードでの動作はサポートしてしません。

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 ist 1280px x 1024px.

Hosting for LimeSurvey

LimeSurveyは、PHPとMySQLが提供されていれば、たいていのホスティングサーバーで動作するはずです。インストールなしにLimeSurveyを使いたいときは、 LimeService の利用を検討してください。または、LimeSurveyが動くホスティングサービスの一覧 もご参考に。

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

sourceforgeのウェブサイトから、最新バージョンのLimeSurveyをダウンロードします。

パッケージは2MB程度です。zipファイル(gzip、bz2、7zip形式もあります)をダウンロードして、ローカルディスクに保存してください。

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:

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".

ログイン画面が現れるはずです。デフォルトでログインできるユーザーは、(インストール中に明示的に変えない場合、)


ユーザ名: admin

User: admin Password: password

</syntaxhighlight>


初回ログイン時に、デフォルトのパスワードを変更するのを忘れないようにしてください。

10. 何か問題があったら

どんなプログラムもそうですが、この手順の通りでたいていは動きますが、そうでないときもあります。ありうる原因は、それはもういろいろあるので、ここには書ききれません。何か問題があったら、まずは インストール時のFAQ を見ましょう。そこで問題が解決しなければ、発生した問題とすべてのエラーメッセージをlimesurvey.orgの LimeSurvey forums|フォーラム にポストするか、[1] を訪ねてください。