Actions

General FAQ/ja: Difference between revisions

From LimeSurvey Manual

No edit summary
(Updating to match new version of source page)
Line 1: Line 1:
<languages />  
<languages />  
__TOC__
__TOC__
{{Note|The following answers have been provided by the LimeSurvey user community. In case you do not understand something or you are unsure about what you have to do next, you can address your question(s) to the rest of community members: https://limesurvey.org/forums. For professional help, please check our list of authorized partners: https://limesurvey.com.}}


=はじめに=
=はじめに=


<div class="mw-translate-fuzzy">
LimeSurveyでできることを感じるためにマニュアルの半分でも読みくない場合は、ビデオを見ることをお勧めします(下記参照)。
LimeSurveyでできることを感じるためにマニュアルの半分でも読みくない場合は、ビデオを見ることをお勧めします(下記参照)。
</div>
*[https://www.youtube.com/watch?v=oyoq14XpkwA How to set up an account and survey installation]
*[https://www.youtube.com/watch?v=7134QebOQzY Question type - Array]
*[https://www.youtube.com/watch?v=aeb93vAe7R4 Assessments]
*[https://www.youtube.com/watch?v=s5OOzDoPjIU Placeholder fields]
*[https://www.youtube.com/watch?v=7N4xUQMWbJY Radio list]
*[https://www.youtube.com/watch?v=UI01hwrsiVk Copy/import survey]
*[https://www.youtube.com/watch?v=QEHyH1YbNEQ Import question]
{{Note|If you know any good video out there, do not hesitate to share it with us.}}


その後、[[Creating surveys - Introduction/ja|アンケート - はじめに]]のマニュアルページが参考になるかもしれません。


==LimeSurveyについて簡単に知りたい==
==LimeSurveyについて簡単に知りたい==


まず基本的な[[LimeSurvey Video-Tutorial/ja|LimeSurveyビデオチュートリアル]]をご覧ください。


LimeSurveyでオンラインアンケートを実施する方法に関する[http://vimeo.com/4951738 別のチュートリアル]もあります。[http://vimeo.com/4951738 このビデオ]では、初めてアンケートを作成るところから、ユーザーに提供し、回答された結果を表示するまでを扱っています。
For a quick text introduction to LimeSurvey, check the following two links:


'''YouTubeにはさらに多くのビデオ'''ががあります。
*[[Quick start guide - LimeSurvey 2.50+|LimeSurvey 2.50+]]
*[[Quick start guide - LimeSurvey 3.0+|Limesurvey 3+]]


'''''LimeSurvey:'''''
*[http://www.youtube.com/watch?v=96WdtqDmRVw アンケートの計画]
*[http://www.youtube.com/watch?v=6GH-S3YAHRg アンケートの作成]
*[http://www.youtube.com/watch?v=61p1Yre4GFM 質問を入力する]
*[http://www.youtube.com/watch?v=5eiZHw9mjDg ラベルセットの使用]
*[http://www.youtube.com/watch?v=5fI9Fyk5UCk LimeSurveyからのデータのエクスポート]


'''''昔のPHP-surveyorのビデオ:'''''
{{Alert|We are working at the moment on introductory videos to LimeSurvey.}}
*[http://www.youtube.com/watch?v=c8OiA0bv8Rk phpsurveyors管理ページへのアクセス]
 
*[http://www.youtube.com/watch?v=KOq45Val3v8 アンケートで新しいグループを作成する]
*[http://www.youtube.com/watch?v=bXGQeP8f7kQ phpsurveyorで新しい質問を作成する]
*[http://www.youtube.com/watch?v=1mzZ3KCaGAc 新しく作成/修正されたアンケートのテスト]
*[http://www.youtube.com/watch?v=6Y2L23y6bps 回答者の追加]
*[http://www.youtube.com/watch?v=NcnK5YsfB8g 回答者へのメール送信]


=アンケートのデザインとレイアウト=
=アンケートのデザインとレイアウト=


==How can I remove index.php from the URL path to get a shorter URL==
<div class="mw-translate-fuzzy">
==短いURLにするためにURLパスからindex.phpを削除する方法==
==短いURLにするためにURLパスからindex.phpを削除する方法==
すっきりしたURLを使うため、URLに/index.phpを含めない場合は、/application/config/config.phpを編集して変更してください。
すっきりしたURLを使うため、URLに/index.phpを含めない場合は、/application/config/config.phpを編集して変更してください。
</div>


<syntaxhighlight lang="php" enclose="div">'showScriptName' => true,</syntaxhighlight>
<syntaxhighlight lang="php" enclose="div">'showScriptName' => true,</syntaxhighlight>
Line 42: Line 55:
<syntaxhighlight lang="php" enclose="div">'showScriptName' => false,</syntaxhighlight>
<syntaxhighlight lang="php" enclose="div">'showScriptName' => false,</syntaxhighlight>


<div class="mw-translate-fuzzy">
これを正しく動作させるためには、mod_rewriteモジュールが正しくインストールされたApacheウェブサーバーを使用する必要があります。
これを正しく動作させるためには、mod_rewriteモジュールが正しくインストールされたApacheウェブサーバーを使用する必要があります。
</div>


<div class="mw-translate-fuzzy">
[http://nginx.com/products/ Nginx] http serverを使用し(PHPはFastCGIを経由して実行)、''''urlFormat' => 'path''''設定を使用したい場合は、以下ようなnginxのサイト設定を検討してください。
[http://nginx.com/products/ Nginx] http serverを使用し(PHPはFastCGIを経由して実行)、''''urlFormat' => 'path''''設定を使用したい場合は、以下ようなnginxのサイト設定を検討してください。
</div>


<div class="mw-translate-fuzzy">
<syntaxhighlight lang="apache">server {
<syntaxhighlight lang="apache">server {
     set $host_path "/PATH/TO/LIMESURVEY";
     set $host_path "/PATH/TO/LIMESURVEY";
Line 69: Line 87:
     }
     }
}</syntaxhighlight>
}</syntaxhighlight>
</div>
{{Note|This disables access to files inside application. Some JavaScript and CSS files located within the application have to be readable with debug > 0. You can force the usage of the asset manager when the debug mode is enabled with <code><nowiki>'use_asset_manager' => 1,</nowiki></code> in your config file (or remove <code><nowiki>application</nowiki></code> from the directory list</code>).}}
The end result should look like this:
<center>[[File:Remove index.php steps.png]]</center>


==回答必須の質問の<span style='color:red'>*</span>(赤いアスタリスク)を取り除く方法==
==回答必須の質問の<span style='color:red'>*</span>(赤いアスタリスク)を取り除く方法==


===Instructions for LimeSurvey 2===
<div class="mw-translate-fuzzy">
'''LimeSurvey 2.x '''では、必須であることを示す赤いアスタリスクはtemplate.cssファイル("asterisk"クラス)内に設定されています。それを隠すには、
'''LimeSurvey 2.x '''では、必須であることを示す赤いアスタリスクはtemplate.cssファイル("asterisk"クラス)内に設定されています。それを隠すには、
*テンプレートエディタを開く
*テンプレートエディタを開く
Line 79: Line 111:
*template.cssを保存する
*template.cssを保存する
*編集したtemplate.cssが再読み込みされ、キャッシュから取得されないように、ブラウザのキャッシュをクリアする
*編集したtemplate.cssが再読み込みされ、キャッシュから取得されないように、ブラウザのキャッシュをクリアする
</div>
===Instructions for LimeSurvey 3===
The instructions are similar to the ones presented above for LimeSurvey 2.
* Access the desired theme. If it is a default theme, create a copy of it by clicking on the "extend" button.
* Access the list of themes and click on the '''theme editor''' that corresponds to the newly created theme.
* On the left side, you can visualise the corresponding CSS files of your theme.
* Click on custom.css and add the following line:
<syntaxhighlight lang="css" enclose="div">.asterisk {display: none;}</syntaxhighlight>
* Save the changes. The red asterisk that is usually displayed at the beginning of the question text is hidden.


'''以前のバージョン'''
*テキストエディタでqanda.phpを開きます
*"asterisk"という文字列を探す
*行頭に2つのスラッシュ"/"を付けてこの行をコメントアウトする
*例:
**original: $qtitle = '<span class=\'asterisk\'>'.$clang->gT('*').'</span>'.$qtitle;
**modified: // $qtitle = '<span class=\'asterisk\'>'.$clang->gT('*').'</span>'.$qtitle;


==Flashファイルを埋め込む方法==
==Flashファイルを埋め込む方法==


<div class="mw-translate-fuzzy">
まず[[Global settings/ja|全体設定]]に行き、XSSフィルターを無効にします。また、そのフィルターを無効にすることどうなるかは理解しておいてください。フィルターが有効な場合、次の手順は機能しません。
まず[[Global settings/ja|全体設定]]に行き、XSSフィルターを無効にします。また、そのフィルターを無効にすることどうなるかは理解しておいてください。フィルターが有効な場合、次の手順は機能しません。
#Flashファイルを挿入する場所に移動します。これは、質問、サブ質問、回答、アンケートのようこそ/終了のテキストなど、統合されたHTMLエディタを使用できる場所であればどこでもかまいません。
#Flashファイルを挿入する場所に移動します。これは、質問、サブ質問、回答、アンケートのようこそ/終了のテキストなど、統合されたHTMLエディタを使用できる場所であればどこでもかまいません。
Line 96: Line 140:
#このダイアログでは、既存のFlashファイルのパスを指定するか、'サーバーを閲覧'ボタンをクリックします。
#このダイアログでは、既存のFlashファイルのパスを指定するか、'サーバーを閲覧'ボタンをクリックします。
#'サーバーを閲覧'ボタンをクリックすると、ファイルブラウザが表示され、下部にはファイルアップロードフィールドが表示されます。既存のファイルを選択するか、ファイルをアップロードしてください。
#'サーバーを閲覧'ボタンをクリックすると、ファイルブラウザが表示され、下部にはファイルアップロードフィールドが表示されます。既存のファイルを選択するか、ファイルをアップロードしてください。
</div>


それでおしまいです。この説明が不完全な場合は、適宜更新してください。
それでおしまいです。この説明が不完全な場合は、適宜更新してください。


==アンケートから既定のテキストを削除する方法==


==="X問あります"===
{{Alert|title=Attention|text=The steps to use it in LimeSurvey 3 are similar. However, we do not recommend our users to use flash files!}}
 
 
==一般に公開するアンケートを作成する方法==
 
 
To create a survey that can be filled out by anyone, do not create a [[Survey participants|survey participants table]]! Share the survey link located on the [[Overview|overview panel]].
 
 
==Public registration - mandatory fields==
 
 
If you use a [[Survey participants|survey participants table]] and you also allow [[Participant_settings#Allow_public_registration|public registration]], then users will be prompted by the following message:
 
 
<center>[[File:non-mandatory public reg.png]]</center>
 
 
As it can be observed above, only the email field is mandatory.
 
To have all three fields marked as being mandatory, please edit your survey theme accordingly. If you use '''Fruity''', you have to go to the '''registration''' screen and see how the participants email field looks like:
 
<syntaxhighlight lang="twig">
        {# Participants email #}
        <div class='{{ aSurveyInfo.class.registerformcolrowc }} form-group row' {{ aSurveyInfo.attr.registerformcolrowc }}>
            <label {{ aSurveyInfo.attr.registerformcolrowclabel }} class='{{ aSurveyInfo.class.registerformcolrowclabel }}  control-label'> {{ gT("Email address:") }} {{ include('./subviews/registration/required.twig') }}</label>
            <div {{ aSurveyInfo.attr.registerformcolrowcdiv }}  >
                {{ C.Html.textField('register_email', aSurveyInfo.sEmail, ({'id' : 'register_email','class' : 'form-control input-sm','required' : true})) }}
            </div>
        </div>
</syntaxhighlight>
 
After that, make sure to edit the first name and last name fields correspondingly by adding the label: <syntaxhighlight lang="twig">{{ include('./subviews/registration/required.twig') }}</syntaxhighlight> and this line which makes the field mandatory to be filled out: <syntaxhighlight lang="twig">'required' : true</syntaxhighlight>
 
The edited file should look like this:
 
<syntaxhighlight lang="twig">
        {# Participants first name #}
        <div class='{{ aSurveyInfo.class.registerformcolrow }} form-group row' {{ aSurveyInfo.attr.registerformcolrow }}>
            <label for='register_firstname' class='{{ aSurveyInfo.class.registerformcolrowlabel }} control-label '>{{ gT("First name:") }} {{ include('./subviews/registration/required.twig') }}</label> {# extra label #}
            <div class="">
                {{ C.Html.textField('register_firstname', aSurveyInfo.sFirstName, ({'id' : 'register_firstname','class' : 'form-control', 'required' : true})) }} {# mandatory field #}
            </div>
        </div>


==="プライバシーに関するメモ..."===
        {# Participants last name #}
        <div class='{{ aSurveyInfo.class.registerformcolrowb }} form-group row' {{ aSurveyInfo.attr.registerformcolrowb }}>
            <label {{ aSurveyInfo.attr.registerformcolrowblabel }}  class='{{ aSurveyInfo.class.registerformcolrowblabel }} control-label '>{{ gT("Last name:") }} {{ include('./subviews/registration/required.twig') }}</label> {# extra label #}
            <div {{ aSurveyInfo.attr.registerformcolrowbdiv }} >
                {{ C.Html.textField('register_lastname', aSurveyInfo.sLastName, ({'id' : 'register_lastname', 'class' : 'form-control', 'required' : true})) }} {# mandatory field #}
            </div>
        </div>
</syntaxhighlight>


===質問コード===


これらのテキストはすべて、[[The template editor/ja#Replacements_Field_Strings|プレースホルダー]]を使用しているテンプレートに挿入されます。簡単に削除できます。[[The template editor/ja|テンプレートエディター]]に移動し、{THEREAREXQUESTIONS} / {PRIVACYMESSAGE} / {QUESTION_CODE}のプレースホルダーを削除します。
Now, the public registration page should look like this (all the fields being mandatory):


=アンケート構成=


==一般に公開するアンケートを作成する方法==
<center>[[File:mandatory public reg.png]]</center>


アンケートを一般に公開するには、以下のようにします。
* [[Survey participants/ja#The token management tools|トークンテーブルの作成]]はしない(存在する場合は削除する)
* アンケート設定で、"[[Survey settings/ja#Publication & access|トークンを持つユーザーのみがアンケートを実施できる]]" = noと設定する(古い設定)
* アンケート設定で、"[[Survey settings/ja#Survey participants|参加登録許可]]" = noとする
* アンケート設定で、"[[Survey settings/ja#Publication & accessl|公開アンケート一覧に表示]]"を"はい"にする


アンケートは、LimeSurveyのルートページにリストされます。ウェブサイト/ブログにアンケートへのリンクを公開し、誰でも制限なくアンケートに参加することができます。
== Hiding the language switcher ==


==システムから確認メールを送信しない方法==


[[Tokens#Emails_settings/ja|トークンを使用]]し、参加者がアンケートに記入すると、参加者のメールアドレスに確認メールが送信されます。このメッセージを送信したくない場合は、"確認メール"の件名とメッセージ全体を削除してください。[[First login - Your user preferences/ja#Source code mode|ソースコードモード]]に切り替え、すべてのテキストを削除します。空のメッセージを保存すれば、確認メールをもう送信しなくなります。
The steps to hide both the language switchers (near the survey title and on the top-right side of the page) are described in our wiki section dedicated to [[Multilingual_survey#Hints_.26_tips|multilingual surveys]].


=誤操作への対処=
=誤操作への対処=


==パスワードをリセットする方法==
==パスワードをリセットする方法==


<div class="mw-translate-fuzzy">
=== バージョン2.x.x以降 ===
=== バージョン2.x.x以降 ===
# コマンドラインでサーバーにアクセスします(例:SSH)
# コマンドラインでサーバーにアクセスします(例:SSH)
Line 134: Line 224:
# limesurveyディレクトリーに移動します
# limesurveyディレクトリーに移動します
# 次のコマンドを入力します <code>php application/commands/starter.php resetpassword NEW_ADMIN_NAME NEW_ADMIN_PASS</code> または <code>php application/commands/console.php resetpassword NEW_ADMIN_NAME NEW_ADMIN_PASS</code><sup>/usr/bin/phpなどphpへの完全なディレクトリーアクセス権が必要です</sup>
# 次のコマンドを入力します <code>php application/commands/starter.php resetpassword NEW_ADMIN_NAME NEW_ADMIN_PASS</code> または <code>php application/commands/console.php resetpassword NEW_ADMIN_NAME NEW_ADMIN_PASS</code><sup>/usr/bin/phpなどphpへの完全なディレクトリーアクセス権が必要です</sup>
</div>
{{Alert|Title=Attention|text=Please note that this method will not work in LimeSurvey 3.x!}}


===バージョン2.x.x以降でFTPアクセスのみの場合===
===バージョン2.x.x以降でFTPアクセスのみの場合===


[https://gitlab.com/SondagesPro/coreAndTools/ResetPasswordController ResetPasswordController]を参照してください。
[https://gitlab.com/SondagesPro/coreAndTools/ResetPasswordController ResetPasswordController]を参照してください。


<div class="mw-translate-fuzzy">
=== データベースのパスワードを直接変更する ===  
=== データベースのパスワードを直接変更する ===  
Limesurveyのデータベースに直接アクセスできる場合、新しいパスワードをSHA256ハッシュに符号化して更新することで、古いパスワードを変更することが可能です。[http://www.xorbin.com/tools/sha256-hash-calculator こちらでパスワードをSHA256ハッシュした値を生成できます。]
Limesurveyのデータベースに直接アクセスできる場合、新しいパスワードをSHA256ハッシュに符号化して更新することで、古いパスワードを変更することが可能です。[http://www.xorbin.com/tools/sha256-hash-calculator こちらでパスワードをSHA256ハッシュした値を生成できます。]
</div>


たとえば、次のコマンドを使用してパスワードをpasswordに設定できます。
たとえば、次のコマンドを使用してパスワードをpasswordに設定できます。
Line 147: Line 246:
</syntaxhighlight>
</syntaxhighlight>
ここでは、接頭辞がlime_であり、データベースが選択されています。
ここでは、接頭辞がlime_であり、データベースが選択されています。


==無効にしたアンケートからデータを復元する方法==
==無効にしたアンケートからデータを復元する方法==


<div class="mw-translate-fuzzy">
アンケートを無効にするのではなく、常に時間切れ扱いとすることをお勧めします。誤ってアンケートを終了した場合は、アンケートを何も変更しないでください。
アンケートを無効にするのではなく、常に時間切れ扱いとすることをお勧めします。誤ってアンケートを終了した場合は、アンケートを何も変更しないでください。
</div>


<div class="mw-translate-fuzzy">
そして、次のような手順を踏みましょう。
そして、次のような手順を踏みましょう。
#アンケートを再度有効化する
#アンケートを再度有効化する
Line 158: Line 262:
#インポート元のテーブルを選択する
#インポート元のテーブルを選択する
#"回答をインポートする"をクリックする
#"回答をインポートする"をクリックする
</div>
{{Note|To understand the difference between "expiry" and "deactivation", visit this following [[https://manual.limesurvey.org/Closing_a_survey|wiki section]].}}


==削除した質問/質問グループ/アンケートの復元方法==
==削除した質問/質問グループ/アンケートの復元方法==


<div class="mw-translate-fuzzy">
残念ながら、削除してしまうと、本当になくなってしまいます。ただし、バックアップしている場合は復元できます(もちろん、定期的に行っていることが前提です)。
残念ながら、削除してしまうと、本当になくなってしまいます。ただし、バックアップしている場合は復元できます(もちろん、定期的に行っていることが前提です)。
</div>
{{Note|If you are a [https://limesurvey.org LimeSurvey GmbH] professional user, please open a support ticket and ask the team to provide you the backup associated to your account. '''Please note that this service is not free of charge!'''}}


=ハードウェア・ソフトウェアの要求条件=
=ハードウェア・ソフトウェアの要求条件=


一般的な要件については、[[Installation/ja#Make sure you can use LimeSurvey on your website|インストール手順]]を参照してください。
一般的な要件については、[[Installation/ja#Make sure you can use LimeSurvey on your website|インストール手順]]を参照してください。


==LimeSurveyの制約==
==LimeSurveyの制約==


===処理速度について===
===処理速度について===


<div class="mw-translate-fuzzy">
LimeSurveyには処理速度に制限はありません。サーバーの処理速度とサーバーへの接続速度に依存します。短時間に多数のユーザーからの回答が予想され、サーバーが処理できるかどうかわからない場合は、フォーラムで他のユーザーの経験に関するトピックを参照してください。
LimeSurveyには処理速度に制限はありません。サーバーの処理速度とサーバーへの接続速度に依存します。短時間に多数のユーザーからの回答が予想され、サーバーが処理できるかどうかわからない場合は、フォーラムで他のユーザーの経験に関するトピックを参照してください。
</div>


=== アンケートの規模について===
=== アンケートの規模について===


注意: ここでいう'アンケートの規模'とは、アンケートの質問(と回答)の最大数のことであり、'''アンケートで受け付ける最大の回答数ではありません(こちらに制限はありません)'''。理論的には、LimeSurveyの質問/回答の最大数に制限はありません。しかし、使用しているデータベースエンジンにはいくつかの制限があります。最も重要なのは、結果テーブルのフィールド(列)数の制限です。
注意: ここでいう'アンケートの規模'とは、アンケートの質問(と回答)の最大数のことであり、'''アンケートで受け付ける最大の回答数ではありません(こちらに制限はありません)'''。理論的には、LimeSurveyの質問/回答の最大数に制限はありません。しかし、使用しているデータベースエンジンにはいくつかの制限があります。最も重要なのは、結果テーブルのフィールド(列)数の制限です。
Line 181: Line 304:
*Postgres: 列の種類に応じ最大250〜1600列。既定のブロックサイズを32kに増やすと、列の最大数を4倍にすることができます。[[Installation FAQ/ja|インストールのFAQ]]および[http://www.postgresql.org/docs/faqs.FAQ.html#item4.4 PostgreSQL FAQ]を参照してください。
*Postgres: 列の種類に応じ最大250〜1600列。既定のブロックサイズを32kに増やすと、列の最大数を4倍にすることができます。[[Installation FAQ/ja|インストールのFAQ]]および[http://www.postgresql.org/docs/faqs.FAQ.html#item4.4 PostgreSQL FAQ]を参照してください。


<div class="mw-translate-fuzzy">
'''注意:''' 実施する前に考えてください。10×10項目の配列は、すでに100列を要します。ルール:画面上で記入または選択が可能なアイテムはそれぞれ1列としてカウントされます。
'''注意:''' 実施する前に考えてください。10×10項目の配列は、すでに100列を要します。ルール:画面上で記入または選択が可能なアイテムはそれぞれ1列としてカウントされます。
</div>


<div class="mw-translate-fuzzy">
mySQL ISAMエンジンは最も面倒です(詳細は[http://dev.mysql.com/doc/refman/5.0/en/column-count-limit.html mysqlのドキュメント]を参照)。1行につき最大65,535バイトまで可能で、utf8文字は1文字につき最大3バイト必要なので、最大値は21,844文字となります(DBエンコーディングによって異なります)。
mySQL ISAMエンジンは最も面倒です(詳細は[http://dev.mysql.com/doc/refman/5.0/en/column-count-limit.html mysqlのドキュメント]を参照)。1行につき最大65,535バイトまで可能で、utf8文字は1文字につき最大3バイト必要なので、最大値は21,844文字となります(DBエンコーディングによって異なります)。
</div>


アンケートの規模は次のように見積もることができます。
アンケートの規模は次のように見積もることができます。
Line 193: Line 320:
==PostgreSQLの最大カラム数を増やす方法==
==PostgreSQLの最大カラム数を増やす方法==


<div class="mw-translate-fuzzy">
アンケートの質問がとても多い場合、PostgreSQLで異なるブロックサイズを定義し、より多くの列を作成することができます。PostgreSQLを再コンパイルし、BLCKSZを16KBまたは32KBなどのより高い値に設定する必要があるため、扱いにくいかもしれません。設定オプション"--with-blocksize=BLOCKSIZE"を確認してください。詳細は、PostgreSQLメーリングリストのアーカイブを参照するか、そこで質問してください(pgsql-patches(at)postgresql(dot)org)。
アンケートの質問がとても多い場合、PostgreSQLで異なるブロックサイズを定義し、より多くの列を作成することができます。PostgreSQLを再コンパイルし、BLCKSZを16KBまたは32KBなどのより高い値に設定する必要があるため、扱いにくいかもしれません。設定オプション"--with-blocksize=BLOCKSIZE"を確認してください。詳細は、PostgreSQLメーリングリストのアーカイブを参照するか、そこで質問してください(pgsql-patches(at)postgresql(dot)org)。
</div>


Debianでの手順です。(Martin Pitt提供)
Debianでの手順です。(Martin Pitt提供)
Line 204: Line 334:
dpkg-buildpackage -us -uc -b -nc</syntaxhighlight>
dpkg-buildpackage -us -uc -b -nc</syntaxhighlight>


<div class="mw-translate-fuzzy">
注意: 2014年8月、Ubuntu 14.04で'''上記を再現することはできませんでした'''。パッチが必要です(設定オプションでは不十分です)。参照(LinuxでPostgreSQL 9.3でテスト済み): [[Instructions for increasing the maximum number of columns in PostgreSQL on Linux|Linux上でPostgreSQL の最大カラム数を増やす方法]]
注意: 2014年8月、Ubuntu 14.04で'''上記を再現することはできませんでした'''。パッチが必要です(設定オプションでは不十分です)。参照(LinuxでPostgreSQL 9.3でテスト済み): [[Instructions for increasing the maximum number of columns in PostgreSQL on Linux|Linux上でPostgreSQL の最大カラム数を増やす方法]]
</div>


==Fatal error: Allowed memory size==
==Fatal error: Allowed memory size==


サーバー構成によっては、メモリーに問題が発生し、次のようなレポートを受けることがあります。''"Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 233472 bytes) in /path/to/htdocs/limesurvey/filename.php on line 7296"''
サーバー構成によっては、メモリーに問題が発生し、次のようなレポートを受けることがあります。''"Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 233472 bytes) in /path/to/htdocs/limesurvey/filename.php on line 7296"''
Line 212: Line 345:
LimeSurveyの設定ファイルに[[Optional settings/ja#Resources|オプションの設定を追加する]]ことで、制限を引き上げることができます。
LimeSurveyの設定ファイルに[[Optional settings/ja#Resources|オプションの設定を追加する]]ことで、制限を引き上げることができます。


<div class="mw-translate-fuzzy">
このようなアプリケーションによるローカル設定は、グローバルサーバー設定によって常に無効になる可能性があることに注意してください。あなたのサーバー上でメモリ制限を直接128Mに増やすには、以下を追加してみてください。
このようなアプリケーションによるローカル設定は、グローバルサーバー設定によって常に無効になる可能性があることに注意してください。あなたのサーバー上でメモリ制限を直接128Mに増やすには、以下を追加してみてください。
*サーバのメインのphp.iniファイルで、memory_limit = 128Mとする(アクセス権がある場合はお勧めします)
*サーバのメインのphp.iniファイルで、memory_limit = 128Mとする(アクセス権がある場合はお勧めします)
Line 217: Line 351:
*LimeSurveyルートの.htaccessファイルで、php_value memory_limitを32Mとする。
*LimeSurveyルートの.htaccessファイルで、php_value memory_limitを32Mとする。
*config.phpで、ini_set('memory_limit', '128M')とする。
*config.phpで、ini_set('memory_limit', '128M')とする。
</div>


=特定の設定=
=特定の設定=


<div class="mw-translate-fuzzy">
特定の状況下では、application/config/config.phpでLimeSurveyの設定を更新する必要があります。
特定の状況下では、application/config/config.phpでLimeSurveyの設定を更新する必要があります。
</div>


<div class="mw-translate-fuzzy">
== 同じドメイン上に2つのLimeSurveyインスタンスがある場合 ==
== 同じドメイン上に2つのLimeSurveyインスタンスがある場合 ==
</div>
<div class="mw-translate-fuzzy">
同じドメイン上に2つのLimeSurveyインスタンスが別のディレクトリーにある場合、[[Optional_settings/ja#Yii_settings|セッション設定]]を更新する必要があります。
</div>


同じドメイン上に2つのLimeSurveyインスタンスが別のディレクトリーにある場合、[[Optional_settings/ja#Yii_settings|セッション設定]]を更新する必要があります。


<div class="mw-translate-fuzzy">
たとえば、example.org/ls1とexample.org/ls2がある場合は、ls1設定ファイルを更新します。
たとえば、example.org/ls1とexample.org/ls2がある場合は、ls1設定ファイルを更新します。
<syntaxhighlight lang="php" enclose="pre">
<syntaxhighlight lang="php" enclose="pre">
Line 237: Line 383:
         ),
         ),
</syntaxhighlight>
</syntaxhighlight>
</div>

Revision as of 22:00, 4 April 2019


The following answers have been provided by the LimeSurvey user community. In case you do not understand something or you are unsure about what you have to do next, you can address your question(s) to the rest of community members: https://limesurvey.org/forums. For professional help, please check our list of authorized partners: https://limesurvey.com.


はじめに

LimeSurveyでできることを感じるためにマニュアルの半分でも読みくない場合は、ビデオを見ることをお勧めします(下記参照)。


If you know any good video out there, do not hesitate to share it with us.


LimeSurveyについて簡単に知りたい

For a quick text introduction to LimeSurvey, check the following two links:


  We are working at the moment on introductory videos to LimeSurvey.



アンケートのデザインとレイアウト

How can I remove index.php from the URL path to get a shorter URL

短いURLにするためにURLパスからindex.phpを削除する方法

すっきりしたURLを使うため、URLに/index.phpを含めない場合は、/application/config/config.phpを編集して変更してください。

'showScriptName' => true,

を次のように変更します。

'showScriptName' => false,

これを正しく動作させるためには、mod_rewriteモジュールが正しくインストールされたApacheウェブサーバーを使用する必要があります。

Nginx http serverを使用し(PHPはFastCGIを経由して実行)、'urlFormat' => 'path'設定を使用したい場合は、以下ようなnginxのサイト設定を検討してください。

server {
    set $host_path "/PATH/TO/LIMESURVEY";
    server_name  YOUR.SERVER.FQDN;
    root /PATH/TO/LIMESURVEY;
    charset utf-8;
    try_files $uri /index.php?$args;
    location ~ ^/(protected|framework|themes/\w+/views) {
        deny  all;
    }
    #avoid processing of calls to unexisting static files by yii
    location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ {
        try_files $uri =404;
    }
    location ~ \.php$ {
        fastcgi_split_path_info  ^(.+\.php)(.*)$;
        try_files $uri index.php;
        fastcgi_pass   127.0.0.1:9000; # Change this to match your settings
        fastcgi_index index.php;
        include fastcgi_params;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        fastcgi_param  SCRIPT_NAME      $fastcgi_script_name;
    }
}
This disables access to files inside application. Some JavaScript and CSS files located within the application have to be readable with debug > 0. You can force the usage of the asset manager when the debug mode is enabled with 'use_asset_manager' => 1, in your config file (or remove application from the directory list).

The end result should look like this:



回答必須の質問の*(赤いアスタリスク)を取り除く方法

Instructions for LimeSurvey 2

LimeSurvey 2.x では、必須であることを示す赤いアスタリスクはtemplate.cssファイル("asterisk"クラス)内に設定されています。それを隠すには、

  • テンプレートエディタを開く
  • 変更したいテンプレートのコピーを作成する
  • "template.css"ファイルを選択して、asteriskクラスを検索する
  • asteriskクラスの最後に次の設定を追加する: ".asterisk {display: none;}"
  • template.cssを保存する
  • 編集したtemplate.cssが再読み込みされ、キャッシュから取得されないように、ブラウザのキャッシュをクリアする


Instructions for LimeSurvey 3

The instructions are similar to the ones presented above for LimeSurvey 2.

  • Access the desired theme. If it is a default theme, create a copy of it by clicking on the "extend" button.
  • Access the list of themes and click on the theme editor that corresponds to the newly created theme.
  • On the left side, you can visualise the corresponding CSS files of your theme.
  • Click on custom.css and add the following line:
.asterisk {display: none;}


  • Save the changes. The red asterisk that is usually displayed at the beginning of the question text is hidden.


Flashファイルを埋め込む方法

まず全体設定に行き、XSSフィルターを無効にします。また、そのフィルターを無効にすることどうなるかは理解しておいてください。フィルターが有効な場合、次の手順は機能しません。

  1. Flashファイルを挿入する場所に移動します。これは、質問、サブ質問、回答、アンケートのようこそ/終了のテキストなど、統合されたHTMLエディタを使用できる場所であればどこでもかまいません。
  2. エディターツールバーの'LimeFitWin'ボタンをクリックし、フルスクリーンエディタモードを開きます。
  3. フルスクリーンエディタのツールバーには、Flashシンボル付きの小さなボタンがあります。クリックすると、ダイアログが開きます。
  4. このダイアログでは、既存のFlashファイルのパスを指定するか、'サーバーを閲覧'ボタンをクリックします。
  5. 'サーバーを閲覧'ボタンをクリックすると、ファイルブラウザが表示され、下部にはファイルアップロードフィールドが表示されます。既存のファイルを選択するか、ファイルをアップロードしてください。


それでおしまいです。この説明が不完全な場合は、適宜更新してください。


  Attention : The steps to use it in LimeSurvey 3 are similar. However, we do not recommend our users to use flash files!



一般に公開するアンケートを作成する方法

To create a survey that can be filled out by anyone, do not create a survey participants table! Share the survey link located on the overview panel.


Public registration - mandatory fields

If you use a survey participants table and you also allow public registration, then users will be prompted by the following message:



As it can be observed above, only the email field is mandatory.

To have all three fields marked as being mandatory, please edit your survey theme accordingly. If you use Fruity, you have to go to the registration screen and see how the participants email field looks like:

        {# Participants email #}
        <div class='{{ aSurveyInfo.class.registerformcolrowc }} form-group row' {{ aSurveyInfo.attr.registerformcolrowc }}>
            <label {{ aSurveyInfo.attr.registerformcolrowclabel }} class='{{ aSurveyInfo.class.registerformcolrowclabel }}  control-label'> {{ gT("Email address:") }} {{ include('./subviews/registration/required.twig') }}</label>
            <div {{ aSurveyInfo.attr.registerformcolrowcdiv }}  >
                {{ C.Html.textField('register_email', aSurveyInfo.sEmail, ({'id' : 'register_email','class' : 'form-control input-sm','required' : true})) }}
            </div>
        </div>

After that, make sure to edit the first name and last name fields correspondingly by adding the label:

{{ include('./subviews/registration/required.twig') }}

and this line which makes the field mandatory to be filled out:

'required' : true

The edited file should look like this:

        {# Participants first name #}
        <div class='{{ aSurveyInfo.class.registerformcolrow }} form-group row' {{ aSurveyInfo.attr.registerformcolrow }}>
            <label for='register_firstname' class='{{ aSurveyInfo.class.registerformcolrowlabel }} control-label '>{{ gT("First name:") }} {{ include('./subviews/registration/required.twig') }}</label> {# extra label #}
            <div class="">
                {{ C.Html.textField('register_firstname', aSurveyInfo.sFirstName, ({'id' : 'register_firstname','class' : 'form-control', 'required' : true})) }} {# mandatory field #}
            </div>
        </div>

        {# Participants last name #}
        <div class='{{ aSurveyInfo.class.registerformcolrowb }} form-group row' {{ aSurveyInfo.attr.registerformcolrowb }}>
            <label {{ aSurveyInfo.attr.registerformcolrowblabel }}  class='{{ aSurveyInfo.class.registerformcolrowblabel }} control-label '>{{ gT("Last name:") }} {{ include('./subviews/registration/required.twig') }}</label> {# extra label #}
            <div {{ aSurveyInfo.attr.registerformcolrowbdiv }} >
                {{ C.Html.textField('register_lastname', aSurveyInfo.sLastName, ({'id' : 'register_lastname', 'class' : 'form-control', 'required' : true})) }} {# mandatory field #}
            </div>
        </div>


Now, the public registration page should look like this (all the fields being mandatory):



Hiding the language switcher

The steps to hide both the language switchers (near the survey title and on the top-right side of the page) are described in our wiki section dedicated to multilingual surveys.

誤操作への対処

パスワードをリセットする方法

バージョン2.x.x以降

  1. コマンドラインでサーバーにアクセスします(例:SSH)
  2. PHPにコマンドラインでアクセスできるか確認します(see http://php.net/features.commandline.php)
  3. limesurveyディレクトリーに移動します
  4. 次のコマンドを入力します php application/commands/starter.php resetpassword NEW_ADMIN_NAME NEW_ADMIN_PASS または php application/commands/console.php resetpassword NEW_ADMIN_NAME NEW_ADMIN_PASS/usr/bin/phpなどphpへの完全なディレクトリーアクセス権が必要です


  Please note that this method will not work in LimeSurvey 3.x!



バージョン2.x.x以降でFTPアクセスのみの場合

ResetPasswordControllerを参照してください。


データベースのパスワードを直接変更する

Limesurveyのデータベースに直接アクセスできる場合、新しいパスワードをSHA256ハッシュに符号化して更新することで、古いパスワードを変更することが可能です。こちらでパスワードをSHA256ハッシュした値を生成できます。

たとえば、次のコマンドを使用してパスワードをpasswordに設定できます。

UPDATE lime_users SET password = 0x35653838343839386461323830343731353164306535366638646336323932373733363033643064366161626264643632613131656637323164313534326438 WHERE uid =1;

ここでは、接頭辞がlime_であり、データベースが選択されています。


無効にしたアンケートからデータを復元する方法

アンケートを無効にするのではなく、常に時間切れ扱いとすることをお勧めします。誤ってアンケートを終了した場合は、アンケートを何も変更しないでください。

そして、次のような手順を踏みましょう。

  1. アンケートを再度有効化する
  2. "アンケートの回答閲覧"画面に移動する
  3. "無効になったアンケートテーブルからのインポート"ボタンを選択する
  4. インポート元のテーブルを選択する
  5. "回答をインポートする"をクリックする


To understand the difference between "expiry" and "deactivation", visit this following [section].


削除した質問/質問グループ/アンケートの復元方法

残念ながら、削除してしまうと、本当になくなってしまいます。ただし、バックアップしている場合は復元できます(もちろん、定期的に行っていることが前提です)。


If you are a LimeSurvey GmbH professional user, please open a support ticket and ask the team to provide you the backup associated to your account. Please note that this service is not free of charge!


ハードウェア・ソフトウェアの要求条件

一般的な要件については、インストール手順を参照してください。


LimeSurveyの制約

処理速度について

LimeSurveyには処理速度に制限はありません。サーバーの処理速度とサーバーへの接続速度に依存します。短時間に多数のユーザーからの回答が予想され、サーバーが処理できるかどうかわからない場合は、フォーラムで他のユーザーの経験に関するトピックを参照してください。

アンケートの規模について

注意: ここでいう'アンケートの規模'とは、アンケートの質問(と回答)の最大数のことであり、アンケートで受け付ける最大の回答数ではありません(こちらに制限はありません)。理論的には、LimeSurveyの質問/回答の最大数に制限はありません。しかし、使用しているデータベースエンジンにはいくつかの制限があります。最も重要なのは、結果テーブルのフィールド(列)数の制限です。

  • MySQL ISAM: テーブル内のVARCHAR列とCHAR列の長さの合計は最大64KBです。
  • MySQL InnoDB: 最大1000列
  • MS SQL Server 2000: 最大1024列
  • Postgres: 列の種類に応じ最大250〜1600列。既定のブロックサイズを32kに増やすと、列の最大数を4倍にすることができます。インストールのFAQおよびPostgreSQL FAQを参照してください。

注意: 実施する前に考えてください。10×10項目の配列は、すでに100列を要します。ルール:画面上で記入または選択が可能なアイテムはそれぞれ1列としてカウントされます。

mySQL ISAMエンジンは最も面倒です(詳細はmysqlのドキュメントを参照)。1行につき最大65,535バイトまで可能で、utf8文字は1文字につき最大3バイト必要なので、最大値は21,844文字となります(DBエンコーディングによって異なります)。

アンケートの規模は次のように見積もることができます。

  • 複数の数値質問: 回答ごとに20文字
  • 複数選択と配列質問タイプ: 回答ごとに5文字
  • その他の質問タイプ: 5文字
  • 余裕をみるため10%程度を追加

PostgreSQLの最大カラム数を増やす方法

アンケートの質問がとても多い場合、PostgreSQLで異なるブロックサイズを定義し、より多くの列を作成することができます。PostgreSQLを再コンパイルし、BLCKSZを16KBまたは32KBなどのより高い値に設定する必要があるため、扱いにくいかもしれません。設定オプション"--with-blocksize=BLOCKSIZE"を確認してください。詳細は、PostgreSQLメーリングリストのアーカイブを参照するか、そこで質問してください(pgsql-patches(at)postgresql(dot)org)。

Debianでの手順です。(Martin Pitt提供)

sudo apt-get build-dep postgresql-8.3
apt-get source postgresql-8.3
cd postgresql-8.3-*
debian/rules patch
sensible-editor build-tree/postgresql-8.3.5/src/include/pg_config_manual.h
dpkg-buildpackage -us -uc -b -nc

注意: 2014年8月、Ubuntu 14.04で上記を再現することはできませんでした。パッチが必要です(設定オプションでは不十分です)。参照(LinuxでPostgreSQL 9.3でテスト済み): Linux上でPostgreSQL の最大カラム数を増やす方法

Fatal error: Allowed memory size

サーバー構成によっては、メモリーに問題が発生し、次のようなレポートを受けることがあります。"Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 233472 bytes) in /path/to/htdocs/limesurvey/filename.php on line 7296"

LimeSurveyの設定ファイルにオプションの設定を追加することで、制限を引き上げることができます。

このようなアプリケーションによるローカル設定は、グローバルサーバー設定によって常に無効になる可能性があることに注意してください。あなたのサーバー上でメモリ制限を直接128Mに増やすには、以下を追加してみてください。

  • サーバのメインのphp.iniファイルで、memory_limit = 128Mとする(アクセス権がある場合はお勧めします)
  • LimeSurveyルートのphp.iniファイルで、memory_limit = 128Mとする。
  • LimeSurveyルートの.htaccessファイルで、php_value memory_limitを32Mとする。
  • config.phpで、ini_set('memory_limit', '128M')とする。

特定の設定

特定の状況下では、application/config/config.phpでLimeSurveyの設定を更新する必要があります。


同じドメイン上に2つのLimeSurveyインスタンスがある場合


同じドメイン上に2つのLimeSurveyインスタンスが別のディレクトリーにある場合、セッション設定を更新する必要があります。


たとえば、example.org/ls1とexample.org/ls2がある場合は、ls1設定ファイルを更新します。

        'session' => array (
            'cookieParams' => array(
                    'path' => '/ls1',
                ),
            ),
        'request' => array(
            'csrfCookie' => array( 'path' => '/ls1' )
        ),