Actions

Installation Version 1.92 or older/ja: Difference between revisions

From LimeSurvey Manual

(Created page with "要件: * 80MB以上のディスクスペース。 * MySQL 4.1.0以上 '''または''' Microsoft SQL Server 2000以上 '''または'''  Postgres 8.1以上 * PHP 5.1.2以上...")
No edit summary
(45 intermediate revisions by 3 users not shown)
Line 9: Line 9:
* MySQL 4.1.0以上 '''または''' Microsoft SQL Server 2000以上 '''または'''  Postgres 8.1以上
* MySQL 4.1.0以上 '''または''' Microsoft SQL Server 2000以上 '''または'''  Postgres 8.1以上
* PHP 5.1.2以上で次のモジュール/ライブラリーが利用できること
* PHP 5.1.2以上で次のモジュール/ライブラリーが利用できること
** mbstring (マルチバイト文字機能)拡張ライブラリー([[Installation FAQ/ja#What is this mbstring (Multibyte String Functions) library?|インストールFAQ]]を参照)
** mbstring (マルチバイト文字機能)拡張ライブラリー([[Installation FAQ/ja#What is this mbstring (Multibyte String Functions) library?|インストールについてのよくある質問
]]を参照)
** mysql5またはpgsql PHP library(ホスティングプロバイダーでは標準的です - 自身でサーバをセットアップした場合は、インストールされていることを確認してください)
** mysql5またはpgsql PHP library(ホスティングプロバイダーでは標準的です - 自身でサーバをセットアップした場合は、インストールされていることを確認してください)


Note: We assume that you don't have any PHP standard libraries explicitly deactivated (like sessions, pcre, ctype or others).
注意: sessions、pcre、ctypeなどのように明示的に非アクティブ化されたPHP標準ライブラリはないと仮定しています。


Optional PHP Extensions:
PHP拡張のオプション:
* '''GD-Library''' '''with FreeType support''' installed is needed for captchas or nice charts in statistics - see [http://de3.php.net/manual/en/image.setup.php PHP GD-Library Extension documentation]
* '''GD-Library''' '''with FreeType support'''は、CAPTCHA、統計で使うチャートで必要になります。[http://de3.php.net/manual/en/image.setup.php PHP GD-Library Extensionのドキュメント]を参照してください。
* '''IMAP''' (pretty standard) is needed for the [[Email bounce tracking system]] - see [http://www.php.net/manual/en/imap.setup.php PHP IMAP Extension documentation]
* '''IMAP''' (極めて標準的)は、[[Email bounce tracking system/ja|バウンスメールトラッキングシステム]]で必要です。[http://www.php.net/manual/en/imap.setup.php PHP IMAP Extensionのドキュメント]を参照してください。
* '''LDAP''' installed is needed to import tokens using LDAP - see [http://de.php.net/manual/en/ldap.installation.php PHP LDAP Documentation]
* '''LDAP'''は、LDAPを使ってトークンをインポートするのに必要です。[http://de.php.net/manual/en/ldap.installation.php PHP LDAPのドキュメント]を参照してください。
* '''Zip''' (pretty standard) for template upload and import resources Zip archives - see [http://www.php.net/manual/en/zip.setup.php PHP Zip Extension documentation]
* '''Zip'''(極めて標準的)は、テンプレートのアップロード、.zip形式のアーカイブファイルのインポートで必要です。[http://www.php.net/manual/en/zip.setup.php PHP Zip Extensionのドキュメント]を参照してください。
* '''Zlib''' (pretty standard) is needed for the [[ComfortUpdate]] - see [http://www.php.net/manual/en/zlib.setup.php PHP Zlib Extension documentation]
* '''Zlib'''(極めて標準的)は、 [[ComfortUpdate/ja|ComfortUpdate]]に必要です。[https://php.net/manual/zlib.setup.php PHP Zlib Extensionのドキュメント]を参照してください。


In most cases your webspace provider or system administrator will be able to help you out on these optional components.
これらの導入については、サーバ提供者の助けを借りるとうまくいく場合が多いでしょう。


If you want to try LimeSurvey on your local machine we recommend [http://www.apachefriends.org/en/xampp.html XAMPP] which is an easy to install software package containing a complete web server with Apache, MySQL, PHP and Perl. LimeSurvey will run on XAMPP with no configuration needed.
LimeSurveyをローカルコンピュータで試してみたいときは、[http://www.apachefriends.org/en/xampp.html XAMPP] を使うのがインストールも簡単でおすすめです。これにはウェブサーバーであるApache、MySQL、PHP、Perlがすべて含まれます。LimeSurveyはXAMPPの上で特別な設定なしに動作します。


If you want to run Microsoft's IIS server take a look at "[[Installation on XP with IIS]]".
MicrosoftのIISサーバーで動作させたいときは、"[[Installation on XP with IIS/ja|XPにIISをインストールする]]" を参照してください。


==1.1 Hosting for LimeSurvey==
==1.1 LimeSurveyのホスティング==


LimeSurvey should work with most hosting companies which provide PHP and MYSQL. If you want a ready-installed version of LimeSurvey consider using LimeService, else check out our [[LimeSurvey-compatible hosting companies|list of LimeSurvey-compatible hosting companies]].
LimeSurveyは、PHPとMySQLが提供されていれば、たいていのホスティング業者で動作するはずです。インストール済みのLimeSurveyを使いたいときは、 [https://www.limesurvey.org/editions-and-prices/limesurvey-pro/editions-and-prices-professional LimeSurvey Professional]の利用を検討してください。または、[[LimeSurvey-compatible hosting companies|LimeSurveyが動くホスティングサービスの一覧]] もご参考に。


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


[http://www.limesurvey.org/en/download 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.
最新の安定版LimeSurvey zipパッケージ(gzip、bz2、7zipのパッケージがあります)を[http://www.limesurvey.org/en/download ダウンロード]し、ローカルディスクに保存してください。


=3. Unpack the LimeSurvey package=
===3. LimeSurveyのパッケージを解凍する===


Uncompress the zip file into a dedicated directory/folder using your preferred compression software. When you uncompress the file make sure that you uncompress the directory structure with the files (this is default behavior for most compression programs). The path name for the installation directory should not include '''(''' or ''')''' characters, but may include the '''space''' character
好みの解凍ソフトを使って、zipファイルを解凍し、任意のディレクトリに展開します。ファイルを解凍するときは、ディレクトリ構成を維持したまま展開するようにしてください(ほとんどの解凍ソフトでは既定の動作です)。インストールするディレクトリのパスには、特殊文字である'('')'を含んではいけませんが、'''空白'''文字は含むことができます。


=4. Collect information about your server=
===4. サーバの情報を集める===


You will need to know the following things to install LimeSurvey on your web server correctly:
LimeSurveyをウェブサーバーに正しくインストールするために、次の情報が必要です。
*Your intended website URL where your scripts will reside (e.g: ''http://my.domain.com/limesurvey'')
*プログラムを置くWebサイトのURL(例: 'http://my.domain.com/limesurvey'
*The physical disk location on your server where your scripts will reside (ie: ''/home/usr/htdocs/limesurvey'')
*プログラムを置くサーバ内の物理的なロケーション(例: '/home/usr/htdocs/limesurvey'
*The IP/net location of your database server (ie: ''localhost'')
*データベースサーバーのIP/ネットワークアドレス(例: ''localhost''
*If your database server uses a non-standard port find out which port it is.
*データベースサーバーを標準でないポートで使用する場合、そのポート番号
*Your username and password for your database server
*データベースサーバーのユーザー名、パスワード
*With most providers you can't let the script create the database but have to do it yourself.  If you are using such a provider please create a database (for example ''limesurvey'') yourself.
*ほとんどのプロバイダーでは、スクリプトによってデータベースを作成することができません。そのようなプロバイダーの場合は、自身でデータベースを作成します(例: ''limesurvey'')。


=5. Configure LimeSurvey=
=5. LimeSurveyを設定する=


Now open the file ''config.php'' in the ''/limesurvey/'' root directory with your preferred text editor.
''/limesurvey/''のルートディレクトリーにある''config.php''を好みのテキストエディターで開きます。


==5.1 Basic settings==
==5.1 基本設定==


Walk through config.php and check/configure the following settings:
config.phpを眺め、以下の項目をチェック/設定してください。
*'''$databasetype:''' This is the database type. At the moment you can set here "mysql" for the MySQL database server, "odbc_mssql" or "mssqlnative" (requires the native MSSQL PHP driver from Microsoft) for Microsoft SQL server and "postgres" for Postgres SQL Server. At least those are the ones that have been tested. (:biggrin:)
*'''$databasetype:''' これはデータベースの種類です。現時点では、MySQLの場合は"mysql"、Microsoft SQL Serverの場合は"odbc_mssql"または"mssqlnative"(MicrosoftのネイティブMSSQL PHPドライバーが必要)、Postgres SQL Serverの場合は"postgres"と設定します。これらはテストされたものです。


<div class="simplebox">[[File:help.png]] '''Important:''' If you have Microsoft SQL server make sure your database is using a case-insensitive collation (should be set by default).</div>
<div class="simplebox">[[File:help.png]] '''重要:''' Microsoft SQL Serverを使用している場合、データベースで大文字と小文字を区別しない照合方式が使用されていることを確認してください(既定の設定)。</div>
*'''$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.
*'''$databaselocation:''' データベースサーバーのIP/netの場所を設定します。ほとんどの場合、"localhost"で動作します。MSSQLを使用している場合は、代わりに<MACHINENAME>/<SERVERNAME>を使用してください。
*'''$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.
*'''$databasename:''' データベースサーバー上でLimeSurveyに使用するデータベースの名前。サーバーに対して高いレベルの権限を持っている場合は、LimeSurveyからデータベースを作成できます。この場合、データベースの名称を設定します。あるいは、以前に作成したデータベースの名前を使用することもできます。既存のデータベース名を指定する場合は、データベースにLimeSurveyの古いテーブルが含まれていないことを確認してください。
*'''$databaseuser:''' Your database server user name
*'''$databaseuser:''' データベースサーバーのユーザー名


<div class="simplebox">[[File:help.png]] '''Important:''' If you are using Postgres make sure your user is also the database owner.</div>
<div class="simplebox">[[File:help.png]] '''重要:''' Postgresを使用している場合は、ユーザーがデータベース所有者でもあることを確認してください。</div>
*'''$databasepass:''' Your database server password
*'''$databasepass:''' データベースサーバーのパスワード
*'''$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]].''
*'''$dbprefix:''' LimeSurvey専用のデータベースを使用している場合は、この設定を空白のままにしておくことができます(例: $dbprefix="";)。LimeSurveyと他のデータベースアプリケーションとの間でデータベースを共有する場合は、この設定に接頭辞を追加します。推奨の接頭辞は "lime_"ですが、任意です。''注意: コマンドラインを使用してMySQLでデータベースとユーザ名を作成する方法については、[[Installation FAQ/ja|インストールについてのよくある質問
*'''$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<nowiki>[</nowiki>'SERVER_NAME']}/limesurvey'' to the folder name you have chosen (''{$_SERVER<nowiki>[</nowiki>'SERVER_NAME']}limesurveyfolder''). The variable {$_SERVER<nowiki>[</nowiki>'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 <nowiki>"dirname('''FILE''');"</nowiki> tries to do this automatically). If it doesn't work, type the disk location in manually - for example ''/home/public_html/limesurvey''.
*'''$rooturl:''' LimeSurveyスクリプトのURLの場所に設定する必要があります。LimeSurveyのファイルを''limesurveyfolder''というフォルダーにコピーした場合は、''{$_SERVER<nowiki>[</nowiki>'SERVER_NAME']}/limesurvey''を、コピー先として選択したフォルダー名に変更します(''{$_SERVER<nowiki>[</nowiki>'SERVER_NAME']}limesurveyfolder'')。変数{$_SERVER<nowiki>[</nowiki>'SERVER_NAME']}は、ドメイン名を自動的に決定しますので、通常は変更しないでください。 動作しない場合は、サーバーのフルURLを設定します(例 "http://www.mydomain.com/limesurvey")。LimeSurveyでSSL'''だけ'''を使用する場合は、httpをhttpsに変更します(サーバーにSSL証明書が正しくインストールされ、設定されていることが前提)。httpとhttpsを併用したい場合はこの設定をhttpのままにします。
*'''$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.
*'''$rootdir:''' 通常これを変更する必要はありません。スクリプトの物理ディスクの場所に設定する必要があります。既定の設定では自動的に行われますので、ここで何も変更する必要はありません(セクション<nowiki>"dirname('''FILE''');"</nowiki>は自動的に実行されます)。動作しない場合は、手動でディスクの場所を入力してください。例えば、''/home/public_html/limesurvey''
*'''$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. <br />
*'''$defaultuser:''' スクリプトがアクセスコントロールを有効にしている場合、この設定がLimeSurveyがセキュリティ設定を最初に設定したときに作成される既定のユーザーになります。
*'''$defaultpass:''' スクリプトがアクセスコントロールを有効にしている場合、この設定がLimeSurveyがセキュリティ設定を最初に設定したときに作成される既定のパスワードになります。<br />


<div class="simplebox">[[File:help.png]] '''Note:''' Both settings ($defaultuser and $defaultpass) are used '''only''' for the initial setup. After LimeSurvey has set up the database these settings are not used at all.</div>
<div class="simplebox">[[File:help.png]] '''注意:''' $defaultuserと$defaultpassの2つの設定は最初のセットアップ時'''のみ'''使用されます。LimeSurveyがデータベースを設定した後、これらの設定はまったく使用されません。</div>


==5.2 Optional settings==
==5.2 オプション設定==


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 [[Optional settings|this page]]. However for a basic setup just continue with the next step.
config.phpで設定可能なオプションはもっとたくさんあります。ほとんどはインストール専用で、後から[[Global settings/ja|全体設定]]ダイアログで変更することができます。これらのオプション設定の詳細については、[[Optional settings/ja|このページ]]をご覧ください。ただし、基本的なセットアップの場合は、次の手順に進みます。


=6. Upload the files to your web server=
=6. ウェブサーバーへのアップロード=


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.
FTPなどでウェブサーバーに接続し、スクリプトを格納するディレクトリを作り、そこにディレクトリ構造をまるごとアップロードします。FTPの設定では、バイナリモードでアップロードするよう注意してください。ASCIIモードでは変なエラーが出ることがあります。(インストール中に 'class not found' となってしまうことがありますし、画像も壊れます。)


=7. Set Directory permissions=
=7. ディレクトリのパーミッション設定=


For the script to work properly it needs certain access to some directories - this applies especially to Linux/*nix systems.
スクリプトが正しく動くために、いくつかのディレクトリーに一定のアクセス権が必要です。特に、Linuxのようなシステムで適用されます。
*The '''"/limesurvey/tmp"''' directory is used for imports & uploads and should be set to ''Read & Write'' for your webserver.
*'''"/limesurvey/tmp"'''ディレクトリーは、インポートやアップロードに使われます。ウェブサーバーの実行ユーザーに、書き込みと読み込みの両方を許可してください。
*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.
*'''"/limesurvey/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''.
*その他のディレクトリは読み込み専用にします。/limesurvey/adminディレクトリー内のそれぞれのファイルの権限を読み込み専用にすることもできます。


<div class="simplebox">[[File:help.png]] '''Hint:''' 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.</div>
<div class="simplebox">[[File:help.png]] '''ヒント:''' Linuxを使っている場合は、ディレクトリなどを書き込み可能にするときは chmod 755 777 にします。755を先に試してください。それでだめなら777も試してください。</div>


=8. Run the installation script=
=8. インストールスクリプトを起動する=


'''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.
'''"http://your.domain.com/limesurvey/admin/install"に移動します'''。すべてを正しく設定した場合は、データベースを作成したり、データベース内にテーブルを作成したりするよう求められます。LimeSurveyは必要なテーブルをデータベースに作成します。


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:).
スクリプトがテーブルを正常に作成したことが示されたら、''' ''/admin/install''ディレクトリーの名前を変更または削除する'''かを尋ねるプロンプトが表示されますので、実行してください。


=9. Connect to the administration script for the first time=
=9. 最初に管理スクリプトに接続する=


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".
これで完了です。ブラウザーを開き、admin.phpスクリプトのURLを入力します。ファイルを格納するためのディレクトリ名としてLimeSurveyを使用した場合は、"http://your.domain.com/limesurvey/admin/admin.php"のようなものになります。


You should get a login screen. The default login credentials are
ログイン画面が表示されます。既定のログイン認証情報は以下のとおりです。


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


Password: password
パスワード: password


</div>
</div>


You will be prompted to change the default password after you logged in. Have fun!
ログインすると、初期パスワードを変更するよう促されます。楽しんでください。


=10. What if I have problems...=
=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 [http://www.limesurvey.org/en/forum LimeSurvey forums] on limesurvey.org or join the [irc://irc.freenode.net/limesurvey|LimeSurvey IRC channel]:
どんなプログラムもそうですが、この手順の通りでたいていは動きますが、そうでないときもあります。ありうる原因は、それはもういろいろあるので、ここには書ききれません。何か問題があったら、まずは [[Installation FAQ/ja|インストールについてのよくある質問]] を見ましょう。そこで問題が解決しなければ、発生した問題とすべてのエラーメッセージをlimesurvey.orgの [http://www.limesurvey.org/en/forum LimeSurvey forums|フォーラム] にポストするか、[irc://irc.freenode.net/limesurvey|LimeSuveryのIRC] を訪ねてください。


<div class="simplebox"><center>'''[http://www.limesurvey.org/en/community-services/live-chat Direct link to the Official LimeSurvey IRC Channel]'''</center></div>
<div class="simplebox"><center>'''[http://www.limesurvey.org/en/community-services/live-chat IRCチャンネルへの直接リンク]'''</center></div>

Revision as of 05:23, 20 February 2020

追加ページ:{toc}

1. ウェブサイトでLimeSurveyを使用できることを確認する

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

要件:

  • 80MB以上のディスクスペース。
  • MySQL 4.1.0以上 または Microsoft SQL Server 2000以上 または  Postgres 8.1以上
  • PHP 5.1.2以上で次のモジュール/ライブラリーが利用できること
    • mbstring (マルチバイト文字機能)拡張ライブラリー(インストールについてのよくある質問 を参照)
    • mysql5またはpgsql PHP library(ホスティングプロバイダーでは標準的です - 自身でサーバをセットアップした場合は、インストールされていることを確認してください)

注意: sessions、pcre、ctypeなどのように明示的に非アクティブ化されたPHP標準ライブラリはないと仮定しています。

PHP拡張のオプション:

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

LimeSurveyをローカルコンピュータで試してみたいときは、XAMPP を使うのがインストールも簡単でおすすめです。これにはウェブサーバーであるApache、MySQL、PHP、Perlがすべて含まれます。LimeSurveyはXAMPPの上で特別な設定なしに動作します。

MicrosoftのIISサーバーで動作させたいときは、"XPにIISをインストールする" を参照してください。

1.1 LimeSurveyのホスティング

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

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

最新の安定版LimeSurvey zipパッケージ(gzip、bz2、7zipのパッケージがあります)をダウンロードし、ローカルディスクに保存してください。

3. LimeSurveyのパッケージを解凍する

好みの解凍ソフトを使って、zipファイルを解凍し、任意のディレクトリに展開します。ファイルを解凍するときは、ディレクトリ構成を維持したまま展開するようにしてください(ほとんどの解凍ソフトでは既定の動作です)。インストールするディレクトリのパスには、特殊文字である'('や')'を含んではいけませんが、空白文字は含むことができます。

4. サーバの情報を集める

LimeSurveyをウェブサーバーに正しくインストールするために、次の情報が必要です。

  • プログラムを置くWebサイトのURL(例: 'http://my.domain.com/limesurvey')
  • プログラムを置くサーバ内の物理的なロケーション(例: '/home/usr/htdocs/limesurvey')
  • データベースサーバーのIP/ネットワークアドレス(例: localhost
  • データベースサーバーを標準でないポートで使用する場合、そのポート番号
  • データベースサーバーのユーザー名、パスワード
  • ほとんどのプロバイダーでは、スクリプトによってデータベースを作成することができません。そのようなプロバイダーの場合は、自身でデータベースを作成します(例: limesurvey)。

5. LimeSurveyを設定する

/limesurvey/のルートディレクトリーにあるconfig.phpを好みのテキストエディターで開きます。

5.1 基本設定

config.phpを眺め、以下の項目をチェック/設定してください。

  • $databasetype: これはデータベースの種類です。現時点では、MySQLの場合は"mysql"、Microsoft SQL Serverの場合は"odbc_mssql"または"mssqlnative"(MicrosoftのネイティブMSSQL PHPドライバーが必要)、Postgres SQL Serverの場合は"postgres"と設定します。これらはテストされたものです。
重要: Microsoft SQL Serverを使用している場合、データベースで大文字と小文字を区別しない照合方式が使用されていることを確認してください(既定の設定)。
  • $databaselocation: データベースサーバーのIP/netの場所を設定します。ほとんどの場合、"localhost"で動作します。MSSQLを使用している場合は、代わりに<MACHINENAME>/<SERVERNAME>を使用してください。
  • $databasename: データベースサーバー上でLimeSurveyに使用するデータベースの名前。サーバーに対して高いレベルの権限を持っている場合は、LimeSurveyからデータベースを作成できます。この場合、データベースの名称を設定します。あるいは、以前に作成したデータベースの名前を使用することもできます。既存のデータベース名を指定する場合は、データベースにLimeSurveyの古いテーブルが含まれていないことを確認してください。
  • $databaseuser: データベースサーバーのユーザー名
重要: Postgresを使用している場合は、ユーザーがデータベース所有者でもあることを確認してください。
  • $databasepass: データベースサーバーのパスワード
  • $dbprefix: LimeSurvey専用のデータベースを使用している場合は、この設定を空白のままにしておくことができます(例: $dbprefix="";)。LimeSurveyと他のデータベースアプリケーションとの間でデータベースを共有する場合は、この設定に接頭辞を追加します。推奨の接頭辞は "lime_"ですが、任意です。注意: コマンドラインを使用してMySQLでデータベースとユーザ名を作成する方法については、インストールについてのよくある質問 を参照してください。
  • $rooturl: LimeSurveyスクリプトのURLの場所に設定する必要があります。LimeSurveyのファイルをlimesurveyfolderというフォルダーにコピーした場合は、{$_SERVER['SERVER_NAME']}/limesurveyを、コピー先として選択したフォルダー名に変更します({$_SERVER['SERVER_NAME']}limesurveyfolder)。変数{$_SERVER['SERVER_NAME']}は、ドメイン名を自動的に決定しますので、通常は変更しないでください。 動作しない場合は、サーバーのフルURLを設定します(例 "http://www.mydomain.com/limesurvey")。LimeSurveyでSSLだけを使用する場合は、httpをhttpsに変更します(サーバーにSSL証明書が正しくインストールされ、設定されていることが前提)。httpとhttpsを併用したい場合はこの設定をhttpのままにします。
  • $rootdir: 通常これを変更する必要はありません。スクリプトの物理ディスクの場所に設定する必要があります。既定の設定では自動的に行われますので、ここで何も変更する必要はありません(セクション"dirname('''FILE''');"は自動的に実行されます)。動作しない場合は、手動でディスクの場所を入力してください。例えば、/home/public_html/limesurvey
  • $defaultuser: スクリプトがアクセスコントロールを有効にしている場合、この設定がLimeSurveyがセキュリティ設定を最初に設定したときに作成される既定のユーザーになります。
  • $defaultpass: スクリプトがアクセスコントロールを有効にしている場合、この設定がLimeSurveyがセキュリティ設定を最初に設定したときに作成される既定のパスワードになります。
注意: $defaultuserと$defaultpassの2つの設定は最初のセットアップ時のみ使用されます。LimeSurveyがデータベースを設定した後、これらの設定はまったく使用されません。

5.2 オプション設定

config.phpで設定可能なオプションはもっとたくさんあります。ほとんどはインストール専用で、後から全体設定ダイアログで変更することができます。これらのオプション設定の詳細については、このページをご覧ください。ただし、基本的なセットアップの場合は、次の手順に進みます。

6. ウェブサーバーへのアップロード

FTPなどでウェブサーバーに接続し、スクリプトを格納するディレクトリを作り、そこにディレクトリ構造をまるごとアップロードします。FTPの設定では、バイナリモードでアップロードするよう注意してください。ASCIIモードでは変なエラーが出ることがあります。(インストール中に 'class not found' となってしまうことがありますし、画像も壊れます。)

7. ディレクトリのパーミッション設定

スクリプトが正しく動くために、いくつかのディレクトリーに一定のアクセス権が必要です。特に、Linuxのようなシステムで適用されます。

  • "/limesurvey/tmp"ディレクトリーは、インポートやアップロードに使われます。ウェブサーバーの実行ユーザーに、書き込みと読み込みの両方を許可してください。
  • "/limesurvey/upload/"ディレクトリとその下すべてについても、ウェブサーバーに書き込み・読み込みを許可し、画像やメディアのアップロードに使います。
  • その他のディレクトリは読み込み専用にします。/limesurvey/adminディレクトリー内のそれぞれのファイルの権限を読み込み専用にすることもできます。
ヒント: Linuxを使っている場合は、ディレクトリなどを書き込み可能にするときは chmod 755 か 777 にします。755を先に試してください。それでだめなら777も試してください。

8. インストールスクリプトを起動する

"http://your.domain.com/limesurvey/admin/install"に移動します。すべてを正しく設定した場合は、データベースを作成したり、データベース内にテーブルを作成したりするよう求められます。LimeSurveyは必要なテーブルをデータベースに作成します。

スクリプトがテーブルを正常に作成したことが示されたら、 /admin/installディレクトリーの名前を変更または削除するかを尋ねるプロンプトが表示されますので、実行してください。

9. 最初に管理スクリプトに接続する

これで完了です。ブラウザーを開き、admin.phpスクリプトのURLを入力します。ファイルを格納するためのディレクトリ名としてLimeSurveyを使用した場合は、"http://your.domain.com/limesurvey/admin/admin.php"のようなものになります。

ログイン画面が表示されます。既定のログイン認証情報は以下のとおりです。

ユーザ名: admin

パスワード: password

ログインすると、初期パスワードを変更するよう促されます。楽しんでください。

10. 何か問題があったら

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