CentOS7をMoodleインストール用にセットアップしてあれば、基本的にそのままMaharaもインストールが可能です。

スタンダードビルド(例:mahara-1.4.6.tar.gz)をMaharaサイトから直接ダウンロードします。
展開します。
# tar xvfz mahara-1.4.6.tar.gz
# cd mahara-1.4.6
# ls
COPYING  ChangeLog  Makefile  README  htdocs
htdocs以下がMaharaの本体です。

# cp  -r  htdocs  /data/html/mahara
# cd  /data/html/mahara
# cp  config-dist.php   config.php

設定ファイルを編集します。
# vi  config.php
// database connection details
// valid values for dbtype are 'postgres8' and 'mysql5'
$cfg->dbtype   = 'postgres8';  ==> mysql5
$cfg->dbhost   = 'localhost';
$cfg->dbport   = null;
$cfg->dbname   = '';  --> mahara
$cfg->dbuser   = '';  --> root
$cfg->dbpass   = '';  --> password phrase
$cfg->dbprefix = '';  --> mh_
$cfg->dataroot = '/path/to/uploaddir'; --> /data/maharadata
$cfg->emailcontact = ''; --> root@localhot

言語パックをダウンロードします。
ダウンロードした言語パックを展開します。
# tar xvfz ja-1.4_STABLE.tar.gz
展開した言語パックのファイルをMahara本体へ上書きします。
# cp -R ja.utf8/* /data/html/mahara/

ブラウザへサイトへ管理者としてログインして初期設定を行います。

最終更新日時: 2023年 10月 13日(金曜日) 10:43