1. Ph n 2. Ci t Moodle畉 畉
V i m c 鱈ch khai th叩c, s d ng v ph叩t tri n Moodle t叩c gi s tr狸nh by畛 畛 畛 畛 畛 畉 畉
tr c h t c叩ch ci t v c u h狸nh Moodle. V i m t h th ng ph c t p nh動畛 畉 畉 畉 畛 畛 畛 畛 畛 畉 動
Moodle vi c ci t v c u h狸nh c坦 th tri n khai ng d ng l kh担ng n畛 畉 畉 畛 畛 畛 畛 畛 董
gi n. Trong ph n ny ch炭ng t担i s tr狸nh by m t c叩ch chi ti t c叩ch ci t Moodle畉 畉 畉 畛 畉 畉
tr棚n n n Windows. C叩c th担ng tin khi tri n khai ng d ng tr棚n n n UNIX, Mac OS畛 畛 畛 畛 畛
c坦 th t狸m th y tr棚n website ch鱈nh th c c a Moodle.畛 畉 畛 畛
1. Y棚u c u h th ng畉 畛 畛
Web server (h tr PHP): th ng s d ng Apache ho c IIS (c坦 tr棚n畛 畛 動畛 畛 畛 畉
Windows XP Professional, Windows 2003, Windows 2000 server,
Windows 2000 advanced server).
PHP (Version 4.0 hay cao h n). Hi n nay phi棚n b n m i nh t c a PHP董 畛 畉 畛 畉 畛
l 5.0.
H qu n tr c s d li u: MySQL ho c畛 畉 畛 董 畛 畛 畛 畉 PostgreSQL. C叩c h qu n tr畛 畉 畛
c s d li u s c h tr trong c叩c phi棚n b n ti p theo.董 畛 畛 畛 畉 動畛 畛 畛 畉 畉
2. Chu n b畉 畛
T i v Moodle tr棚n trang web畉 畛 http://moodle.org/download/ .
Gi i n辿n.畉
(T湛y ch n) i t棚n th m c thnh "畛 畛 動 畛 moodle" d ng khi ci t h畛 畛 畉 畛
th ng.畛
3. Ci t畉
3.1. Ci t Apache server畉
Trong ph n ny ch炭ng t担i tr狸nh by c叩ch ci t畉 畉 appserv-win32-2.5.1 tr棚n
n n Windows. C叩c b n c滴ng c坦 th dung Apache 1.3.x.畛 畉 畛
Khi ci t Apache phi棚n b n畉 畉 2.5.1 ta c坦 th tu畛 ch n ci t c PHP,畛 畛 畉 畉
MySQL, phpMyAdmin ho c kh担ng.畉
2. Figure 1. T湛y ch n ci t Apache畛 畉
Khi ci t Apache c坦 m t ch炭 箪 l c ng HTTP (m c nh l 80) ch n sao畉 畛 畛 畉 畛 畛
cho kh担ng tr湛ng v i c ng HTTP c a c叩c Server kh叩c ang ch y tr棚n m叩y c a b n畛 畛 畛 畉 畛 畉
(trong v鱈 d ny t担i ch n c ng 9000).畛 畛 畛
Ti p 坦 thi t l p t棚n ng i d湛ng, m t kh u, ph担ng ch .畉 畉 畉 動畛 畉 畉 畛
Sau 坦 th c hi n ci t b狸nh th ng theo ch d n c a ch ng tr狸nh.畛 畛 畉 動畛 畛 畉 畛 動董
Figure 2. Ci t Apache畉
3.2. Ci t PHP畉
Ci t PHP trong hai tr ng h p:畉 動畛 畛
N u ti n hnh ci t Moodle tr棚n tr狸nh ch web IIS th狸 ch n tr狸nh ch畉 畉 畉 畛 畛 畛
HTTP c u h狸nh PHP l IIS.畉
N u ci Moodle tr棚n tr狸nh ch web Apache th狸 ch n tr狸nh ch HTTP c u畉 畛 畛 畛 畉
h狸nh PHP l Apache.
3. Figure 3. Ci t PHP畉
Sau 坦 th c hi n ci t b狸nh th ng theo ch d n c a ch ng tr狸nh.畛 畛 畉 動畛 畛 畉 畛 動董
Ch炭 箪 l tr棚n ch炭ng ta ci PHP d a tr棚n PHP installer, ch g m c叩c thnh ph n畛 畛 畛 畛 畉
c b n c a PHP. N u b n mu n ci y h n c坦 th ci PHP d a tr棚n b董 畉 畛 畉 畉 畛 畉 畛 董 畛 畛 畛
binary.
Trong b ci, 達 c坦 file install.txt h ng d n chi ti t ci trong t ng m担i tr ng.畛 動畛 畉 畉 畛 動畛
B n n棚n theo ch d n ny.畉 畛 畉
3.3. Ci t My SQL畉
Trong v鱈 d ny t担i s d ng phi棚n b n mysql-4.0.17, vi c ci t My SQL畛 畛 畛 畉 畛 畉
kh担ng c坦 g狸 c bi t, th担ng th ng ch炭ng ta ch n theo ch m c nh.畉 畛 動畛 畛 畉 畛 畉 畛
Figure 4. Ci t MySQL畉
4. n gi n trong vi c qu n l箪 c s d li u b n n棚n ci th棚m m t trong c叩c畛 董 畉 畛 畉 董 畛 畛 畛 畉 畛
ph n m m:畉 畛
MySQL-Front
Mysqladmin
MySQL Administrator
Ch炭 箪 r ng n u ci server Apache th狸 達 c坦 s n c担ng c l phpmyAdmin r t m nh畉 畉 畉 畛 畉 畉
qu n l箪 c s d li u.畛 畉 董 畛 畛 畛
Hi棚n t i, Moodle 1.6 達 ho t ng t t v i MySQL 1.5 v PHP 5.x.畉 畉 畛 畛 畛
3.4. C u h狸nh cho ci t Moodle畉 畉
Sau khi ci t tr狸nh ch web, PHP, MySQL ta ti n hnh c u h狸nh cho vi c畉 畛 畉 畉 畛
ci t Moodle.畉
T o c s d li u r ng畉 董 畛 畛 畛 畛 moodle cho Moodle
Trong tr ng h p d湛ng tr狸nh ch web Apache動畛 畛 畛
http://localhost:9000/phpMyadmin/index.php
Figure 5. T o c s d li u cho moodle畉 董 畛 畛 畛
Ho c s d ng MySQL-Front (n u s d ng tr狸nh ch IIS).畉 畛 畛 畉 畛 畛 畛
5. Figure 6. T o c s d li u b ng MySQL-Front畉 董 畛 畛 畛 畉
Trong th m c web m c nh c a tr狸nh ch web ch辿p th m c動 畛 畉 畛 畛 畛 動 畛 moodle 達
c t o ra t tr c.動畛 畉 畛 動畛
i v i tr狸nh ch web Apache l th m c "畛 畛 畛 動 畛 www" (v鱈 d畛 C:
AppServwww) ta s t ng d ng t i th m c ny.畉 畉 畛 畛 畉 動 畛
i v i tr狸nh ch web IIS l th m c 畛 畛 畛 動 畛 wwwroot (ta c坦 th畛
t b t k畛 v tr鱈 no sau 坦 c u h狸nh cho th m c o theo v tr鱈畉 畛 畉 畛 畉 動 畛 畉 畛
坦).
khi 坦 ta s b t u lm vi c v i Moodle th担ng qua a ch :畉 畉 畉 畛 畛 畛 畛
http://yourwebserver/moodle
T o m t th m c m i l u tr file c t i l棚n v t t棚n l畉 畛 動 畛 畛 畛 動 畛 動畛 畉 畉
"moodledata". ( vd C:AppServwwwmoodledata)
Th m c ny s ch a c叩c d li u nh :動 畛 畉 畛 畛 畛 動
C叩c ti li u kh坦a h c畛 畛
nh c a ng i d湛ng畉 畛 動畛
...
N u b n kh担ng t o th m c ny c坦 th Moodle s t o cho b n. Nh ng 畉 畉 畉 動 畛 畛 畉 畉 畉 動 畛
ch c ch n b n h達y t o th m c ny.畉 畉 畉 畉 動 畛
3.5. Ci t Moodle s d ng tr狸nh ch web Apache畉 畛 畛 畛
C u h狸nh tr狸nh ch Web (trang ch m c nh l index.php, index.htm..).畉 畛 畛 畉 畛
Trong file c u h狸nh畉 httpd.conf c a Apache tham s畛 畛 DirectoryIndex quy nh畛
trang ch m c nh畛 畉 畛
vd: DirectoryIndex index.html index.htm index.php index.php3
6. Figure 26. Thi t l p l tr狸nh th i gian cho Cron畉 畉 畛 畛
Ch ra c叩c a ch cho畛 畛 畛 cron.php
Figure 27. V tr鱈 cron.php畛
Ho t ng c a MoodleCron畉 畛 畛
7. Figure 28. Ho t ng c a Moodle Cron畉 畛 畛
4. C u h狸nh h th ng畉 畛 畛
C叩c c担ng vi c ny nh m m b o h th ng h at ng ph湛 h p v i ng d ng.畛 畉 畉 畉 畛 畛 畛 畛 畛 畛 畛 畛
T o m t b n sao c a th vi n li棚n k t ng畉 畛 畉 畛 動 畛 畉 畛 php_gd2.dll trong th m c動 畛
extensions c a PHP vo畛 Windows/system32
C u h狸nh file畉 php.ini trong th m c動 畛 Windows: B d u ; tr c d嘆ng khai畛 畉 動畛
b叩o th vi n動 畛 php_gd2.dll.
Thay i tham s trong畛 畛 php.ini
Thi t l p k鱈ch th c file:畉 畉 動畛
T i l棚n qua HTTP:畉 upload_max_filesize =max_ size (MB)
File d li u t i l棚n :畛 畛 畉 post_max_size = max_ size (MB)
5. Ti li u tham kh o畛 畉
Th担ng tin chi ti t xin tham kh o t i a ch :畉 畉 畉 畛 畛
Trang ch c a Moodle:畛 畛 http://moodle.com
C ng ng Moodle Vi t Nam:畛 畛 畛 http://moodle.org/course/view.php?id=45
Ti li u tr gi炭p v Moodle:畛 畛 畛 http://moodle.org/help
Trung t但m tin h c b gi叩o d c v o t o:畛 畛 畛 畉 http://el.edu.net.vn
C叩c ti nguy棚n c a Moodle:畛 http://moodle.org/mod/resource/view.php?
id=3856