引用文章自
http://docs.moodle.org/en/Environment#Moodle_version_1.9
Moodle version 1.6
MySQL
version 4.1.12 or later for sites that are exclusively Latin-1, 4.1.16
if you have other languages, or PostgreSQL 7.4.x or later
PHP version 4.3.0 or later is required ( but don't use versions 5.0.0 to 5.0.6 which were buggy )
The php_extension iconv is recommended to be installed/enabled
The php_extension mbstring is recommended to be installed/enabled
Moodle version 1.8
MySQL version 4.1.16 or later is required, or PostgreSQL 7.4.x or later
PHP version 4.3.0 or later is required ( but don't use versions 5.0.0 to 5.0.6 which were buggy )
Unicode is required
The php_extension curl is recommended to be installed/enabled
The php_extension iconv is recommended to be installed/enabled
The php_extension mbstring is recommended to be installed/enabled
The php_extension openssl is recommended to be installed/enabled
The php_extension tokenizer is recommended to be installed/enabled
Moodle version 1.9
MySQL version 4.1.16 or later is required, or PostgreSQL 8.0 or later
Moodle version 2.0PHP version 5.2.0 or later is required
請到Moodle 官方網站:http://moodle.org/
下載最新版的moodle(moodle-1.8.5.zip)
用 phpMyAdmin 新增 moodle 資料庫
unzip moodle-1.8.5.zip
mv moodle /var/www/html
chown -R apache.apache /var/www/html/moodle
rm -rf moodle-1.8.5.zip
mkdir /var/www/moodledata
chown apache.apache /var/www/moodledata
echo "deny from all" > /var/www/moodledata/.htaccess
/*
moodledata
建議不要放在網站資料夾內
更要避免放在網站moodle的底下
---->避免被人存取
未來琳富的dyna及school的data將採取相同的安全設計!!
*/
提升 Moodle 執行效能的設定(非必需,視自己需求設定)
vi /etc/php.ini
483行 magic_quotes_gpc = 1
486行 magic_quotes_runtime = 0
965行 session.bug_compat_warn = 0echo "AcceptPathInfo on" >> /etc/httpd/conf/httpd.conf
/etc/rc.d/init.d/httpd restart
安裝:http://IP/moodle/install.php
安裝時特別需要注意的事項
請指定好moodledata的位置
(閱讀全文)
Moodle網站檔案的結構:
config.php - 包含各種基本設定。這檔案不是隨著 Moodle而來 - 您需要在安裝過程建立它。
install.php - 您將用來建立 config.php 的腳本
version.php - 定義當前 Moodle 程式碼的版本
index.php - 這網站的首頁
* admin/ - 管理這整個伺服器的程式碼
* auth/ - 用於認證用戶的插件模組
* blocks/ - 用於管理在許多頁面上的小區塊的插件模組
* calendar/ - 管理和顯示行事曆的程式碼
* course/ - 顯示和管理課程的程式碼
* doc/ - Moodle用的幫助文件 (例如這一頁)
* files/ - 顯示和管理上傳檔案的程式碼
* lang/ - 不同語言的文字檔,每種語言一個目錄
* lib/ - Moodle核心程式碼的程式庫
* login/ - 處理登入和產生帳號的程式碼
* mod/ - 所有 Moodle主要的課程模組都放在這裡
* pix/ - 產生網站的圖表
* theme/ - 主題包/用以改變網站外觀的外殼
* user/ - 顯現和管理用戶的程式碼