Moodle-メモ

インストール
言語設定:ロケール選ぶ
PHP設定確認:
PHPバージョン
セッション自動スタート
Magic Quotesランタイム
安全ではないGlobalsのハンドリング
セーフモード
ファイルアップロード
GDバージョン
Memory Limit
*GDバージョンに警告がでるが、必須ではない。
*************
ヒント
あなたのサーバには、GDがインストールされていないようです。

GDは、Moodleがイメージ (ユーザプロファイルアイコン等) を処理したり、新しいイメージ (ロググラフ等) を作成するためにPHPが必要とするライブラリです。Moodleは、GDなしでも動作します – イメージ処理等が使用できないだけです。

Unix環境下で、GDをPHPにインストールするには、PHPを –with-gd パラメータでコンパイルしてください。

Windows環境下では、php.iniでphp_gd2.dllを参照している行のコメントアウトを取り除いてください。
*************

Mooodleのインストール先
ウェブアドレス:トップページ
Moodleディレクトリ:Webサーバーのディレクトリパス
データディレクトリ:アップロードされたファイルを保存するディレクトリパス
# mkdir /web/myapp/moodle/moodledata
# chown apache.apache /web/myapp/moodle/moodledata

DBの設定
タイプ:MySQL
ホストサーバー:localhost
データベース:cmses
ユーザー:cmses
パスワード:cmses
テーブル接尾辞:mdl_

**************
PHPのMySQL拡張モジュールが適切に設定されていないため、MySQLと通信できません。
あなたのphp.iniファイルをチェックするか、PHPを再コンパイルしてください。
**************
で失敗、php.iniみると、–without-mysqlとなっている
インストール中断し、
phpを入れ直して再コンパイル。。。

mydns setup メモ

Install MyDNSConfig
===================

You can download MyDNSConfig from http://www.mydnsconfig.org.

Login into mysql and create the database:

mysql -u root -p

CREATE DATABASE mydns;
GRANT SELECT, INSERT, UPDATE, DELETE ON mydns.* TO ‘mydns’@’localhost’ IDENTIFIED BY ‘mydnspassword’;
GRANT SELECT, INSERT, UPDATE, DELETE ON mydns.* TO ‘mydns’@’localhost.localdomain’ IDENTIFIED BY ‘mydnspassword’;
FLUSH PRIVILEGES;
quit;

Download MyDNSConfig:

cd /tmp
wget http://mesh.dl.sourceforge.net/sourceforge/mydnsconfig/MyDNSConfig-1.1.0.tar.gz
tar xvfz MyDNSConfig-1.1.0.tar.gz
cd MyDNSConfig-1.1.0

Install MyDNSConfig:

mkdir /usr/share/mydnsconfig
cp -rf interface/* /usr/share/mydnsconfig/
ln -s /usr/share/mydnsconfig/web/ /var/www/mydnsconfig

Installing MyDNSConfig SQL Database:

mysql -u root -p mydns < install/mydnsconfig.sql
Edit The MyDNSConfig configuration

vi /usr/share/mydnsconfig/lib/config.inc.php

The file should look like this:

———————————————————————————–

<?php
/*
Copyright (c) 2005, Till Brehm, Falko Timme, projektfarm Gmbh
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

    * Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice,
      this list of conditions and the following disclaimer in the documentation
      and/or other materials provided with the distribution.
    * Neither the name of ISPConfig nor the names of its contributors
      may be used to endorse or promote products derived from this software without
      specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

ini_set(‘register_globals’,0);

$conf[“app_title”] = “MyDNSConfig”;
$conf[“app_version”] = “1.1.0”;
$conf[“rootpath”]   = “/usr/share/mydnsconfig”;
$conf[“fs_div”]    = “/”; // File system divider, \\ on windows and / on linux and unix
$conf[“classpath”]   = $conf[“rootpath”].$conf[“fs_div”].”lib”.$conf[“fs_div”].”classes”;
$conf[“temppath”]   = $conf[“rootpath”].$conf[“fs_div”].”temp”;
/*
        Database Settings
*/

$conf[“db_type”]  = ‘mysql’;
$conf[“db_host”]  = ‘localhost’;
$conf[“db_database”]  = ‘mydns’;
$conf[“db_user”]  = ‘mydns’;
$conf[“db_password”]  = ‘mydnspassword’;
/*
        External programs
*/

$conf[“programs”][“wput”] = $conf[“rootpath”].”/tools/wput/wput”;
/*
        Themes
*/

$conf[“theme”]   = ‘grey’;
$conf[“html_content_encoding”] = ‘text/html; charset=iso-8859-1’;
$conf[“logo”]    = ‘themes/default/images/mydnsconfig_logo.gif’;

/*
        Default Language
*/

$conf[“language”]                = ‘en’;
/*
        Auto Load Modules
*/

$conf[“start_db”]    = true;
$conf[“start_session”] = true;

/*
        DNS Settings
*/

$conf[“auto_create_ptr”] = 1; // Automatically create PTR records?
$conf[“default_ns”] = ‘ns1.example.com.’; // must be set if $conf[‘auto_create_ptr’] is 1. Don’t forget the trailing dot!
$conf[“default_mbox”] = ‘admin.example.com.’; // Admin email address. Must be set if $conf[‘auto_create_ptr’] is 1. Replace “@” with “.”. Don’t forget the trailing dot!
$conf[“default_ttl”] = 86400;
$conf[“default_refresh”] = 28800;
$conf[“default_retry”] = 7200;
$conf[“default_expire”] = 604800;
$conf[“default_minimum_ttl”] = 86400;

?>

———————————————————————————–

Make sure you fill in the correct database details! If you want MyDNSConfig to automatically create reverse DNS records (PTR records) when you create a new DNS records, then set $conf[‘auto_create_ptr’] to 1 and specify a default name server in $conf[‘default_ns’] (do not forget the dot at the end!) and an admin email address in $conf[‘default_mbox’] (also with a dot at the end, and the @ sign must be replaced by a dot!).
Removing the installer from /tmp

rm -rf MyDNSConfig-1.1.0/
rm -f MyDNSConfig-1.1.0.tar.gz

Now install mydns and edit the file/etc/mydns.conf to use the same database that we created above for MyDNSConfig. The daatabase contains all tables needed for MyDNS.

—————————–
Now you can access MyDNSConfig under http://<your_ip_address>/mydnsconfig/. The default login username is admin, the password is also admin. Please change the password after your first login under System -> Edit user.

stack_oracle.txt

質問1 LifeKeeperで保護をするリスナは、仮想IPで構成することが必須でしょうか。
listener.oraのADDRES句のHOSTの箇所がマニュアルですとVIPを指定するとなっていますが、必須であると読み取れなかったためご質問させてください。

質問2 LifeKeeperのGUI及びCLIからリスナリソースのみを起動停止をすると、以下のエラーが出力されリスナへ接続できない場合がありますが、LifeKeeperが原因であるとすれば何が考えられますでしょうか。

$sqlplus user/password@sid as sysdba
ERROR:
ORA-01034: ORACLE not available
ORA-27123: unable to attach to shared memory segment
Linux Error: 22: Invalid argument
Additional information: 1
Additional information: 360453

このときORACLEインスタンスは起動していることを確認できております。
この場合リスナをlsnrctlコマンドで停止・起動をすると必ず繋がるようになります。

メモリ関係のエラーのようですので、ulimitの値を取得してみました。
下記リスナ起動スクリプト内でulimitを取得するコマンドを埋め込みました。
/opt/LifeKeeper/subsys/database/resources/listener/actions

下記2行を上記スクリプトに追加。
$cmd = `ulimit -a>/tmp/test.out`;
print “$cmd”;

リスナをGUIから起動後test.outを参照すると
max locked memory (kbytes, -l) 32
と表示されます。
今回のシステムでは、limits.confに
oracle soft memlock 3145728
oracle hard memlock 3145728
と設定しているため、なぜ32と表示されるのか疑問です。
リスナに接続できない事象と関係あるかはわかりませんが、よろしければ判断材料の1つとしてください。

なおリスナはフェールオーバのトリガとするために1つのリソースとして作成しております。

——————
Red Hat Enterprise Linux 4で、hugepagesを使用したり、Very Large
Memory(VLM)ウィンドウ・サイズを使用するには、プロセスごとにロック
されるメモリーのデフォルトの最大サイズを増加する必要があります。
プロセスごとにロックされる最大メモリー制限を増加するには、次の行を
/etc/security/limits.conf ファイルに追加します。
oracleは、データベースを管理するユーザーです。

oracle soft memlock 3145728
oracle hard memlock 3145728

この設定では、デフォルトの最大ロックメモリの制限は3GBまで拡張されています。
——————

********************
ユーザあたりの上限はカーネルパラメータでは変更できません。一時的な変更であれ
ば設定を確認するためにも使用する「ulimit」コマンドで可能ですが、設定値をログ
イン時に常に有効にするためには、以下の手順に従って「/etc/security/limits.conf」
に設定を行います。

単位はkbytes
********************