Installation FAQ/ja: Difference between revisions
From LimeSurvey Manual
Bravehorse (talk | contribs) No edit summary |
Bravehorse (talk | contribs) (Created page with "'''mbstringセクションが見つからない場合'''、問題はあなたの側にあるかもしれません。次の3つのシナリオが考えられます。 *ホス...") |
||
Line 67: | Line 67: | ||
各種情報が表示されます。'''Configuration'''セクションに'mbstring'という文字列が見つかれば、正しくインストールされており、LimeSurveyを利用できます。 | 各種情報が表示されます。'''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サーバーを再起動します。 | ||
== Stuck at checking file system permissions == | == Stuck at checking file system permissions == |
Revision as of 10:35, 20 July 2018
Contents:
コンピューターへのインストール
LimeSurveyは、MAMP/XAMPPまたは他のシステムを使用してコンピューターにインストールすることもできます。ただし、このコンピューターはウェブサーバーではないので、ウェブ経由で他のユーザーがアクセスすることはできません。
アンケートをウェブ経由で他のユーザーがアクセスできるようにするには、次のいずれかを行う必要があります。
- サーバーまたはホストプロバイダーからウェブスペースを用意する
- 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.iniファイルをPHPが読み込んでいるか、システム内の他の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
- 'yum'をサポートするLinux(CentOS、RedHat、Fedora)のバージョンを使用しているなら...
- 自分のWindowsサーバーの場合は、システム上でphp.iniを検索し、エディターで開いて、mbstringという文字列を検索します。おそらく、この文字列を含む行はセミコロンでコメントアウトされています。セミコロンを削除し、保存してからWebサーバーを再起動します。
Stuck at checking file system permissions
If SELinux is activated (primarily on CentOS), then you might get an error that the file system permissions are not correct, even if the list of directories is empty. SELinux prevents writing even though the permissions are for example on 777 or 755. To configure SELinux correctly for your server - check out the SELinux documentation.
After database creation
Blank page after database creation
Symptoms
- LimeSurvey is installed correctly and the database was created, but instead of the admin page, you get an empty page
- Web server 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 related to an incorrect setting for $rooturl
or $rootdir
in config.php. The file config.php attempts to set $rootdir
correctly by calling dirname('''FILE''')
. 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. To set up the $rootdir
manually, (your shell or pwd command may show you a path like /disks/hostname/home/username/public_html/limesurvey), try using /home/username/public_html/limesurvey.
When accessing the admin page, the browser keeps running and will eventually fail to show it
Symptoms
- LimeSurvey is installed correctly and the database was created. However, 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 quite big (in some cases, more than 2 GB)
- Inside the access log, you get this message filling the log:
Fix
This may be caused by the mbstring.func_overload setting. Change the following setting in the php.ini file:
mbstring.func_overload = 0
When accessing the 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 is installed correctly and the database was created. But when redirected to the admin page, the browser displayed 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: '(',')' or '+'.
Fix
Move/rename the LimeSurvey installation directory so that the path name includes non of the following characters: '(',')' or '+' characters.
After installation
For all the other issues that may occur after a successful installation, please refer to the troubleshooting page.