Actions

Installation FAQ/ja: Difference between revisions

From LimeSurvey Manual

(Created page with "mbstringライブラリとは、文字セットを他言語のものに変換するためのPHPのライブラリで、LimeSurveyを実行するのに必要となります。m...")
No edit summary
 
(78 intermediate revisions by 4 users not shown)
Line 2: Line 2:
Contents:__TOC__
Contents:__TOC__


=During Installation (Limesurvey 1.92 and below)=
=あなたのパソコンへのインストール=


==How can I create a database and a user in mysql with command line access?==
LimeSurvey は、MAMP / XAMPP などのシステムを使って、あなたのパソコンにインストールすることができます。このパソコンは Web サーバーではない――つまり他のユーザーが Web 経由でアクセスできないことに注意してください。


You have to enter the below commands in your mysql.
他のユーザーが Web 経由でアンケートにアクセスできるようにするには、次のいずれかを行う必要があります :


create database '''<your_database_name>''';
* ホストの提供者からサーバーまたは Web ホスティングを確保する
* または LimeSurvey に特化したホスト提供業者を探す


create user '''<your_database_username>''';
=インストールの開始=


create user '''<your_database_username>'''@localhost;
==MySQL にコマンドラインで接続して、データベースとユーザーを作成するには?==


set password for '''<your_database_username>''' = PASSWORD(''''<your_database_password>'''');
MySQL に以下のコマンドを入力します :


set password for '''<your_database_username>'''@localhost = PASSWORD(''''<your_database_password>'''');
*<code>create database '''<your_database_name>''';</code>


grant all on '''<your_database_name>'''.* to ''''<your_database_username>'''';
*<code>create user '''<your_database_username>''';</code>


grant all on '''<your_database_name>'''.* to ''''<your_database_username>''''@'localhost';
*<code>create user '''<your_database_username>'''@localhost;</code>


You have to replace '''<your_database_name>''', '''<your_database_username>''' and '''<your_database_password>''' in above commands with according values.
*<code>set password for '''<your_database_username>''' = PASSWORD(''''<your_database_password>'''');</code>


==What if I can't create a database through a script?==
*<code>set password for '''<your_database_username>'''@localhost = PASSWORD(''''<your_database_password>'''');</code>


Normally, the script creates a new database, and then the table structure. However if your server/ISP doesn't give you admin rights to create a new database in MySQL, you will need to contact your server administrator to create the necessary database (or create it yourself). They should create a blank database for you that gives you the appropriate access rights (ie: read/write/create). Start the LimeSurvey installation as usually and it will then create the tables in the existing database.
*<code>grant all on '''<your_database_name>'''.* to ''''<your_database_username>'''';</code>


mbstringライブラリ(マルチバイト文字列機能)とは何ですか?
*<code>grant all on '''<your_database_name>'''.* to ''''<your_database_username>''''@'localhost';</code>


mbstringライブラリとは、文字セットを他言語のものに変換するためのPHPのライブラリで、LimeSurveyを実行するのに必要となります。mbstringがすでにインストールされているかどうかを確認するには、webスペースにtest.phpというファイルを作成して、そこに次のように記入します。
<code>'''<your_database_name>'''</code>、<code>'''<your_database_username>'''</code>、<code>'''<your_database_password>'''</code> の部分は、ターミナルに入力する際に適切な目的の値に置き換えます。


 http://<your_server>/<your_limesurvey_directory>/admin/install/phpinfo.php
==スクリプトでデータベースを作成できなかったら、どうする?==


from the web browser. A lot of information will be shown. Search for the string 'mbstring' under the '''Configuration''' section.
通常、スクリプトで新しいデータベースを作り、さらにテーブル構造を作成します。ただし、サーバー・ISP から MySQL で新しいデータベースを作成する権限を与えられていない場合は、サーバー管理者に連絡して必要なデータベースを作成してもらう ( または権限の付与を受けて、自分で作成する ) 必要があります。作成した空のデータベースには、適切な権限 ( 例 : 読み込み・書き込み・作成 ) を付与する必要があります。この準備の後に LimeSurvey のインストールを開始すると、作成したデータベース内にテーブルが作成されます。


If you find the mbstring section then all should be well and you can continue on with your LimeSurvey installation!
==インストールページにアクセスすると空白のページが表示される==


'''If you don't find the mbstring section''' you might have a problem on your hands.
この問題は、LimeSurvey のインストールではなく、PHP のインストールで発生します。
* MySQL PHPモジュール ( php-mysql ) のインストールを確認します。
* インストールした PHP が あなたが設定した PHP.ini ファイルを読み込んでいるか、システム内の他の PHP.INI ファイルを読み込んでいないかを確認します。
* PHP.ini 内に記述している、以下の場所と権限を確認します :


There are three possible scenarios:
<syntaxhighlight lang="c">upload_tmp_dir="/temp"
*If it's your providers server: Ask your provider to activate that extension in PHP or how to activate it - if you have a good administration panel for your server you may be able to activate it yourself.
*If it's your own '''Linux''' server: You may have to re-compile PHP and include the mbstring library. Ask the Linux experts how to do that. In most Linux versions today you can install it using your Linux packet manager.
**If you are using a version of Linux that supports 'yum' (CentOS, RedHat, Fedora):
### Use the terminal (as a super user) and type: '''yum install php-mbstring'''
### Make sure to update /etc/php.ini to update and uncomment the various mbstring params
### Make sure to restart apache after installing it:  '''/etc/init.d/httpd restart'''
*If it's your own '''Windows''' server: Search for php.ini on your system, open it with an editor and search for mbstring. Most probably the line that contains that string is commented out with a semicolon. Remove the semicolon, save and restart your web server.


==When I am entering special chars (Chinese, Cyrillic, Greek, Arabic) into my survey, every character is shown as a question mark?==
session.save_path="/temp"</syntaxhighlight>
* サーバーで適切なバージョンの PHP を実行しているか確認します。


This happens if your database itself is not created to use an UTF-8 charset. This can happen when you have to create the database using a provider administration panel. You can fix this problem by executing the following SQL command on your database (using for example phpMyAdmin)
==リソースが存在しないことによるエラーメッセージ==


ALTER DATABASE `<your_database_name>` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
ファイルが正しくアップロードされない、またはアップロード処理中に破損することがときどきあります。結果として、いくつかの異なるエラーメッセージを引き起こします。そのほとんどは、見つからないファイルまたはファイル内の関数を参照しています。


Replace <your_database_name> with the name of your database. '''You need to do this before installing LimeSurvey.'''
'''解決方法 : ''' すべてのファイルを FTP プログラムのバイナリモードで、再アップロードします。


==Blank page when accessing the Install page==
=要件のページ=


The problem is not with the LimeSurvey installation but with the PHP installation.
==mbstring(マルチバイト文字列機能)ライブラリーとは何か?==
*Verify you have the MySQL PHP module (php-mysql) installed.
*Verify your PHP install is loading the PHP.ini file your are modifying and not parsing other PHP.INI files on your system.
*Verify the location and permissions of the following setting in your PHP.ini


<syntaxhighlight lang="c" enclose="div">upload_tmp_dir="/temp"
mbstringライブラリとは、文字セットを他言語のものに変換するためのPHPのライブラリで、LimeSurveyを実行するのに必要となります。mbstringがすでにインストールされているかどうかを確認するには、ウェブブラウザーで以下のURLにアクセスします。


session.save_path="/temp"</syntaxhighlight>
<nowiki>http://<your_server>/<your_limesurvey_directory>/admin/install/phpinfo.php</nowiki>
*Verify your server runs a suitable PHP version (e.g. this "blank page" problem appeared with PHP v4.4 and LimeSurvey v2.00+).


==Error messages because of a not existing ressources==
各種情報が表示されます。'''Configuration'''セクションに'mbstring'という文字列が見つかれば、正しくインストールされており、LimeSurveyを利用できます。


Sometimes files are not uploaded correctly or were broken during upload. This leads to several different error messages. Most of them refer to a file or function within a file which can't be found.
'''mbstringセクションが見つからない場合'''、問題はあなたの側にあるかもしれません。次の3つのシナリオが考えられます。
*ホストプロバイダーのサーバーである場合は、PHPでその拡張モジュールのアクティベーションを依頼するか、アクティブにする方法を聞いてください。サーバーの管理パネルがあれば、自分でアクティブにすることができます
*自分の'''Linux'''サーバーである場合は、PHPを再コンパイルし、mbstringライブラリーを組み込む必要があるかもしれません。Linuxに詳しい人にその方法を尋ねてください。ただし、Linuxパッケージマネージャーを使用してインストールすることができます。これは、現在ほとんどすべてのLinuxディストリビューションで利用可能です。
**'yum'をサポートするLinux(CentOS、RedHat、Fedora)のバージョンを使用しているなら...
***ターミナルを(スーパーユーザーとして)使用し、次のように入力します。'''yum install php-mbstring'''
***/etc/php.iniを更新し、mbstringパラメーターのコメントを解除してください。
***インストール後に必ずapacheを再起動してください。'''/etc/init.d/httpd restart'''
*自分の'''Windows'''サーバーの場合は、システム上でphp.iniを検索し、エディターで開いて、mbstringという文字列を検索します。おそらく、この文字列を含む行はセミコロンでコメントアウトされています。セミコロンを削除し、保存してからWebサーバーを再起動します。


'''Solution:''' Re-upload all files using the binary mode of your FTP program.
== ファイルシステムの権限チェックでスタックする ==
(主にCentOS上で)SELinuxが起動されている場合、ディレクトリーのリストが空であっても、ファイルシステムのアクセス権が正しくないというエラーが発生する可能性があります。SELinuxでは、777や755などの権限を持っていても書き込みを許可されません。サーバーにSELinuxを正しく設定するには、[https://wiki.centos.org/HowTos/SELinux SELinuxのドキュメント]を参照してください。


=During Installation (Limesurvey 2.0 and above)=
=データベース作成後=


==ADD NEW TOPICS HERE (Thanks!)==
==データベース作成後の空白ページ==


=After Database Creation=
===症状===
* LimeSurveyが正しくインストールされ、データベースが作成されたが、管理者ページではなく、空のページが表示される。
* Webサーバーのログに''"Fatal error: Call to a member function on a non-object in /path/to/limesurvey/admin/login_check.php on line 69"''と記録されている。


==Blank Page after Database Creation==
===修正方法===


===Symptoms===
これはおそらく、config.phpの中で<code>$rooturl</code>または<code>$rootdir</code>の設定が間違っていると考えられます。config.phpファイルでは、<code><nowiki>dirname('''FILE''')</nowiki></code>を呼び出して<code>$rootdir</code>を正しく設定しようとします。通常はこれで動作しますが、ユーザーのhomeやpublic_htmlディレクトリーにLimeSurveyがインストールされ、ホームディレクトリーがNFS経由でマウントされている場合は、問題になることがあります。<code>$rootdir</code>を手動で設定するには、(シェルまたはpwdコマンドでは、/disks/hostname/home/username/public_html/limesurveyのようなパスが表示されることがありますが)、/home/username/public_html/limesurveyを試してみてください。
* LimeSurvey installed OK, and database was created, but instead of the admin page, you get an empty page
* Web surver log shows "Fatal error: Call to a member function on a non-object in /path/to/limesurvey/admin/login_check.php on line 69"


===Fix===
==管理ページにアクセスしてもブラウザーが待機し続け結局表示できない==


This is probably an incorrect setting for $rooturl or $rootdir in config.php. In particular, config.php attempts to set $rootdir correctly by calling <nowiki>dirname('''FILE''')</nowiki> and while this usually works, it can be upset when LimeSurvey is installed in a user's home or public_html directory and the home directory is mounted over NFS. Try setting $rootdir manually, and in particular, while your shell or pwd command may show a path like "/disks/hostname/home/username/public_html/limesurvey", try using "/home/username/public_html/limesurvey".
==症状===
* LimeSurveyが正しくインストールされ、データベースが作成され。ただ、管理ページにアクセスすると、ブラウザーは待機し続け、結局ページが表示できない。
* ウェブサーバーのアクセスログを確認すると、ファイルサイズがかなり大きくなっている(場合によっては2GB以上)
* アクセスログに、以下のメッセージが記録されている。


==When accessing admin page, the browser keeps running and will eventually fail to show it==
{{Alert|title=注意|text=''fread() [function.fread]: Length parameter must be greater than 0 in /limesurvey/classes/php-gettext/streams.php on line 120.}}''


===Symptoms===
{{Note|行番号はLimeSurveyのバージョンによって異なる場合があります。}}
* LimeSurvey installed OK and database was created. But when you access the admin page, the browser keeps running and will eventually fail to show the page.
* When you check the web server access log, its size has become so big (in some cases, more than 2 GB).
* Inside the access log, you get this message filling the log.


Warning: fread() [function.fread]: Length parameter must be greater than 0 in /limesurvey/classes/php-gettext/streams.php on line 120
===修正方法===
 
''Note:'' line number may be different depending on your LimeSurvey version.
 
===Fix===
 
This may be caused by the mbstring.func_overload setting. Check the setting in your php.ini and set as the following.


これは、mbstring.func_overload設定によって発生する可能性があります。php.iniファイルの次の設定を変更します。
<syntaxhighlight lang="php" enclose="pre">
mbstring.func_overload = 0
mbstring.func_overload = 0
</syntaxhighlight>


''Note:'' This means no function overloading. See PHP manual for this setting: [http://us3.php.net/manual/en/mbstring.overload.php Function Overloading Feature]
{{Note|つまり、関数のオーバーロードはありません。この設定については、PHPマニュアルを参照してください。[http://us3.php.net/manual/en/mbstring.overload.php Function Overloading Feature]}}
 
==When accessing admin page, the browser reports Fatal error: Call to a member function gT() on a non-object in login_check.php on line 76==
 
===Symptoms===
* LimeSurvey installed OK and database was created. But when rdirected to the admin page, the browser displayed the the listed error.
* $rootdir and $rooturl are correctly set in config.php.
* The disk path name for limesurvey installation directory includes one of the following characters: ()+
 
''Note:'' Other characters may also induce the same behaviour
 
===Fix===
 
Move / rename the limesurvey installation directory so that pathname does not include either the '''(''' or ''')''' characters
 
=After Login=
 
==Any action in admin page will return you to login screen==
 
This may happen for the following two main reasons :
*PHP sessions problems
*UTF8 encoding problems
*IE (6,7 and 8) problems
 
<u>PHP Sessions :</u>
# Update upload_tmp_dir and session.save_path in php.ini
# Create the configured session and upload directories
# IIS: Assigned permission to create and modify to IIS guest user account
# Apache: Make sure your webserver has permissions to write into the configured directory
# Check if the variable  "session.use_cookies" in php.ini is set to 1.
# Check the variable "session.auto_start" in php.ini. If it is set to 1, change it to 0.
 
<u>UTF8 Encoding : </u>
 
If you edit any file (most probably config.php) do not save it as UTF8 to support special language chars! Always save .php files as true ANSI/ISO format. Starting with 1.87 you can set the most important settings inside the application using the 'Global settings' dialog (like site name, administrator name, etc.).
 
<u>IE Cookies :</u>
 
IE (6,7 and 8) does not support underscore "_" in the server hostname. If it is the case, the cookies are not managed and cookie(s) is(are) not set. So change the server hostname under apache or IIS.
 
==LimeSurvey and suhosin ("Session has expired")==
 
You might, at one point, get a message like :
 
<syntaxhighlight lang="php" enclose="div">ERROR
 
We are sorry but your session has expired.
 
Either you have been inactive for too long, you have cookies disabled for your browser, or there were problems with your connection.</syntaxhighlight>
 
And if you have Suhosin activated on your server, that's might be the reason why you get this in the middle of a survey.
 
NB : when your survey is not active, the behaviour might be different, you could be redirected in the middle of a survey to the public list of surveys. The solution is the same.
 
Suhosin is an advanced protection system for PHP installations. Suhosin default configuration can make trouble to LimeSurvey installation.
 
First think to test with suhosin log, set suhosin.log.sapi = 511 and suhosin.simulation = on according with [http://www.hardened-php.net/suhosin/configuration.html suhosin documentation].
 
The configuration file is usually located in /etc/php5/apache2/conf.d/suhosin.ini but to be sure you can check your phpinfo (Limesurvey administration > Global Settings > Button Show phpinfo > Line : "Additional .ini files parsed") to get the correct path.
 
Don't forget to restart your Apache server for the parameters to be taken into account (service apache2 restart).
 
When the simulation is on, Suhosin is not blocking anything and the errors are reported into the logs (usually in your syslog : /var/log/syslog). If you appear to get error messages such as "ALERT-SIMULATION - configured POST variable limit exceeded" that's Suhosin alerting...
 
This configuration seems to work well with Limesurvey:
 
<syntaxhighlight lang="php" enclose="div">suhosin.memory_limit = 128
 
suhosin.post.max_value_length = 5000000
 
suhosin.post.max_vars = 5000
 
suhosin.request.max_value_length = 5000000
 
suhosin.request.max_vars = 5000</syntaxhighlight>
 
With those parameters, you should be able to put the suhosin.simulation back at the "off" value (so that the serveur is protected and limesurvey still works).
 
The default values of suhosin are not working well with limesurvey. If you really want to secure your serveur tightly you might want to use the simulation mode to tune the setting and find the good values between 1000 and 5000 for the vars and 1000000 and 5000000 for the value_lenghts.
 
<div class="simplebox"> Note: There was an additional PHP setting introduced recently: max_input_vars - this setting is the same as suhosin.post.max_vars but needs to be set separately in php.ini . </div>
 
==LimeSurvey and suhosin ("quick translate trouble")==
 
You can have some problem with the quick translate module when you are on OpenBSD 5.1 with php-5.3.10.
 
The symptom is : modification via "Quick translate --> options answer" are not update
 
You must downgrade your php version to php-5.2.17p8 and use the suhosin tweak proposed above.
 
==I can't change the language!==
 
No matter what language you choose, the interface (admin und user) always is in English language. Normally this is caused by a bug in your PHP version. There is no other fix for this than updating your PHP version.
 
==Some common errors (IIS focused)==
 
===Index.php won't open===
 
Possible cause: This might happen if you haven't installed necessary extensions
* You need to install Multi-byte string, and MSSQL (or MySQL) extensions
 
Possible cause: ISAPI filter not configured
* In IIS, for the website (you could do it at the directory level) you must configure it to use php5isapi.dll
 
===Index.php won't open and "php.exe -i" gives error messages about missing .dll's===
 
This may happen if you install too many extensions
* If you install all PHP extensions, PHP will fail because not all dependencies were met (e.g. oracle package needs oracle dll's)
* Install only the extensions that you need
* To test, try running php.exe -i from the command line
 
===Message stating database was missing===
 
This may happen if you navigate to wrong url
* Make sure you go to limesurvey/admin/install/index.php instead of limesurvey/index.php !
 
===Above fixes do not solve the problem===
 
This may happen if you have not restarted IIS
* Restart IIS
 
Things that were easy to forget:
* .php needs to be associated to php5isapi.dll filter (It did this for me automagically)
* limesurvey/tmp directory needs writer permission for survey uploads
* updating doc_root in php.ini and $rootdir in config.php
 
===Missing files ("No such file or directory")===
 
When uploading LimeSurvey to your server it might happen that the connection is interrupted so that some files are not transferred or not transferred completely. Depending on the files you can receive error message at different part of LimeSurvey usage. Normally missing files throw errors like
 
<div class="simplebox">
 
"Warning: require_once(/path/to/your/limesurvey/installation/filename) [function.require-once]: failed to open stream: No such file or directory in /path/to/your/limesurvey/installation/filename on line 12345)" OR
 
"Fatal error: require_once() [function.require]: Failed opening required 'require_once(/path/to/your/limesurvey/installation/filename)' (include_path='.:/x/y/z) in /path/to/your/limesurvey/installation/filename on line 12345"
 
</div>
 
'''Solution'''
 
1. Delete all uploaded files.
 
2. Re-upload the files.
 
(3. If necessary: Re-install by browsing to /limesurveyfolder/admin/install)
 
==Not able to add or edit subquestions/answers after upgrade==


If you're not capable of editing or adding a question, ask youre host provider to change the mod_security setting of the domain name. See the forum thread [http://www.limesurvey.org/en/support/forums/1-installation-a-update-issues/46435-not-able-to-add-or-edit-questions-on-new-190-?limit=10 Not Able to Add or Edit Questions on new 1.90] for more info.
==管理ページにアクセスすると、ブラウザーにFatal error: Call to a member function gT() on a non-object in login_check.php on line 76と表示される==


==Fancy URLs by removing index.php from the URL path==
===症状===
* LimeSurveyが正しくインストールされ、データベースが作成された。ただ、管理者ページにリダイレクトされると、ブラウザーには上記のエラーが表示された。
* <code>$rootdir</code>と<code>$roofturl</code>はconfig.phpで正しく設定されている。
* limesurveyインストールディレクトリーのディスクパス名に、'('、')'、'+'のいずれかの文字が含まれている。


If you want to use fancy URLs and so not have /index.php in every URL please edit /application/config/config.php and change
{{Alert|title=注意|text=他の文字も同じ動作を引き起こす可能性があります。}}


<syntaxhighlight lang="php" enclose="div">'showScriptName' => true,</syntaxhighlight>
===修正方法===


to
パス名に'('、')'、'+'が含まれないよう、LimeSurveyのインストールディレクトリを移動または名前を変更します。


<syntaxhighlight lang="php" enclose="div">'showScriptName' => false,</syntaxhighlight>
=インストール後=  


For this to work properly you must use an Apache webserver with a properly installed mod_rewrite module.
インストールが正常に完了した後に発生するその他の問題については、[[Troubleshooting/ja|トラブルシューティングのページ]]を参照してください。

Latest revision as of 05:00, 8 December 2023

Contents:

あなたのパソコンへのインストール

LimeSurvey は、MAMP / XAMPP などのシステムを使って、あなたのパソコンにインストールすることができます。このパソコンは Web サーバーではない――つまり他のユーザーが Web 経由でアクセスできないことに注意してください。

他のユーザーが Web 経由でアンケートにアクセスできるようにするには、次のいずれかを行う必要があります :

  • ホストの提供者からサーバーまたは Web ホスティングを確保する
  • または LimeSurvey に特化したホスト提供業者を探す

インストールの開始

MySQL にコマンドラインで接続して、データベースとユーザーを作成するには?

MySQL に以下のコマンドを入力します :

  • create database <your_database_name>;
  • create user <your_database_username>;
  • create user <your_database_username>@localhost;
  • set password for <your_database_username> = PASSWORD('<your_database_password>');
  • set password for <your_database_username>@localhost = PASSWORD('<your_database_password>');
  • grant all on <your_database_name>.* to '<your_database_username>';
  • grant all on <your_database_name>.* to '<your_database_username>'@'localhost';

<your_database_name><your_database_username><your_database_password> の部分は、ターミナルに入力する際に適切な目的の値に置き換えます。

スクリプトでデータベースを作成できなかったら、どうする?

通常、スクリプトで新しいデータベースを作り、さらにテーブル構造を作成します。ただし、サーバー・ISP から MySQL で新しいデータベースを作成する権限を与えられていない場合は、サーバー管理者に連絡して必要なデータベースを作成してもらう ( または権限の付与を受けて、自分で作成する ) 必要があります。作成した空のデータベースには、適切な権限 ( 例 : 読み込み・書き込み・作成 ) を付与する必要があります。この準備の後に LimeSurvey のインストールを開始すると、作成したデータベース内にテーブルが作成されます。

インストールページにアクセスすると空白のページが表示される

この問題は、LimeSurvey のインストールではなく、PHP のインストールで発生します。

  • MySQL PHPモジュール ( php-mysql ) のインストールを確認します。
  • インストールした PHP が あなたが設定した PHP.ini ファイルを読み込んでいるか、システム内の他の PHP.INI ファイルを読み込んでいないかを確認します。
  • PHP.ini 内に記述している、以下の場所と権限を確認します :
upload_tmp_dir="/temp"

session.save_path="/temp"
  • サーバーで適切なバージョンの PHP を実行しているか確認します。

リソースが存在しないことによるエラーメッセージ

ファイルが正しくアップロードされない、またはアップロード処理中に破損することがときどきあります。結果として、いくつかの異なるエラーメッセージを引き起こします。そのほとんどは、見つからないファイルまたはファイル内の関数を参照しています。

解決方法 : すべてのファイルを FTP プログラムのバイナリモードで、再アップロードします。

要件のページ

mbstring(マルチバイト文字列機能)ライブラリーとは何か?

mbstringライブラリとは、文字セットを他言語のものに変換するためのPHPのライブラリで、LimeSurveyを実行するのに必要となります。mbstringがすでにインストールされているかどうかを確認するには、ウェブブラウザーで以下のURLにアクセスします。

http://<your_server>/<your_limesurvey_directory>/admin/install/phpinfo.php

各種情報が表示されます。Configurationセクションに'mbstring'という文字列が見つかれば、正しくインストールされており、LimeSurveyを利用できます。

mbstringセクションが見つからない場合、問題はあなたの側にあるかもしれません。次の3つのシナリオが考えられます。

  • ホストプロバイダーのサーバーである場合は、PHPでその拡張モジュールのアクティベーションを依頼するか、アクティブにする方法を聞いてください。サーバーの管理パネルがあれば、自分でアクティブにすることができます
  • 自分のLinuxサーバーである場合は、PHPを再コンパイルし、mbstringライブラリーを組み込む必要があるかもしれません。Linuxに詳しい人にその方法を尋ねてください。ただし、Linuxパッケージマネージャーを使用してインストールすることができます。これは、現在ほとんどすべてのLinuxディストリビューションで利用可能です。
    • 'yum'をサポートするLinux(CentOS、RedHat、Fedora)のバージョンを使用しているなら...
      • ターミナルを(スーパーユーザーとして)使用し、次のように入力します。yum install php-mbstring
      • /etc/php.iniを更新し、mbstringパラメーターのコメントを解除してください。
      • インストール後に必ずapacheを再起動してください。/etc/init.d/httpd restart
  • 自分のWindowsサーバーの場合は、システム上でphp.iniを検索し、エディターで開いて、mbstringという文字列を検索します。おそらく、この文字列を含む行はセミコロンでコメントアウトされています。セミコロンを削除し、保存してからWebサーバーを再起動します。

ファイルシステムの権限チェックでスタックする

(主にCentOS上で)SELinuxが起動されている場合、ディレクトリーのリストが空であっても、ファイルシステムのアクセス権が正しくないというエラーが発生する可能性があります。SELinuxでは、777や755などの権限を持っていても書き込みを許可されません。サーバーにSELinuxを正しく設定するには、SELinuxのドキュメントを参照してください。

データベース作成後

データベース作成後の空白ページ

症状

  • LimeSurveyが正しくインストールされ、データベースが作成されたが、管理者ページではなく、空のページが表示される。
  • Webサーバーのログに"Fatal error: Call to a member function on a non-object in /path/to/limesurvey/admin/login_check.php on line 69"と記録されている。

修正方法

これはおそらく、config.phpの中で$rooturlまたは$rootdirの設定が間違っていると考えられます。config.phpファイルでは、dirname('''FILE''')を呼び出して$rootdirを正しく設定しようとします。通常はこれで動作しますが、ユーザーのhomeやpublic_htmlディレクトリーにLimeSurveyがインストールされ、ホームディレクトリーがNFS経由でマウントされている場合は、問題になることがあります。$rootdirを手動で設定するには、(シェルまたはpwdコマンドでは、/disks/hostname/home/username/public_html/limesurveyのようなパスが表示されることがありますが)、/home/username/public_html/limesurveyを試してみてください。

管理ページにアクセスしてもブラウザーが待機し続け結局表示できない

症状=

  • LimeSurveyが正しくインストールされ、データベースが作成され。ただ、管理ページにアクセスすると、ブラウザーは待機し続け、結局ページが表示できない。
  • ウェブサーバーのアクセスログを確認すると、ファイルサイズがかなり大きくなっている(場合によっては2GB以上)
  • アクセスログに、以下のメッセージが記録されている。
  注意 : fread() [function.fread]: Length parameter must be greater than 0 in /limesurvey/classes/php-gettext/streams.php on line 120.

行番号はLimeSurveyのバージョンによって異なる場合があります。

修正方法

これは、mbstring.func_overload設定によって発生する可能性があります。php.iniファイルの次の設定を変更します。

mbstring.func_overload = 0
つまり、関数のオーバーロードはありません。この設定については、PHPマニュアルを参照してください。Function Overloading Feature

管理ページにアクセスすると、ブラウザーにFatal error: Call to a member function gT() on a non-object in login_check.php on line 76と表示される

症状

  • LimeSurveyが正しくインストールされ、データベースが作成された。ただ、管理者ページにリダイレクトされると、ブラウザーには上記のエラーが表示された。
  • $rootdir$roofturlはconfig.phpで正しく設定されている。
  • limesurveyインストールディレクトリーのディスクパス名に、'('、')'、'+'のいずれかの文字が含まれている。
  注意 : 他の文字も同じ動作を引き起こす可能性があります。


修正方法

パス名に'('、')'、'+'が含まれないよう、LimeSurveyのインストールディレクトリを移動または名前を変更します。

インストール後

インストールが正常に完了した後に発生するその他の問題については、トラブルシューティングのページを参照してください。