Moodle Installation

From LemonWiki共筆
Jump to navigation Jump to search

39grid12.txt;10;15

install AppServ

download AppServ 2.4.x from AppServ Open Project

  • select custom to check some options of installation
    • (Apache) Server Name: domain name or IP or localhost
    • (MySQL) change the password

install Moodle

download appserv AddOns for Moodle from AppServ Open Project


upgrade Moodle

  • Subscribe the latest announcement of Moodle Security Procedures forum
  • backup data
    • backup the (MySQL) data file
    • backup the {moodle data} files
    • backup the moodle php files if you modified any
  • download the latest version of moodle
  • (optional) Restart the server to refresh the cache and load the lang pack normally.
  • run the {moodle}/install.php
    • note: the path of data should be file:\\aaa\\data at MS Windows
  • move the {moodle}/theme/{cstomized theme files}

secure the phpMyadmin

  • password or move to another verbose-named directory

系統設定 » Variables

  • lang: en -> zhtw_utf-8 (Recommend: Download the lang pack from official website by yourself not your moodle.)
  • langlist: en, zh_tw_utf8
  • (optional) slasharguments: file.php?file=/pic.jpg
  • smtphosts: ISP?
  • enablerssfeeds: 是


  • {moodle}/config.php
$CFG->dirroot   = 'C:\AppServ\www\moodle';
-> $CFG->dirroot = "c:\appserv\www\moodle";

cron.php maintenance script

method1 (require the admin permission)

more on Moodle docs: Cron

method2 (not require the admin permission)

REM -- run Moodle cron job
FOR /F "tokens=1-8 delims=/:. " %%J IN ("%date% %time%") DO SET timestamp=%%M-%%L-%%K_at_%%N.%%O.%%P 
wget http://path.to/cron.php -q -O Moodle_cron_%timestamp%.txt 
  • add to the scheduled tasks (程式集 -> 附屬應用程式 -> 系統工具 -> 排定的工作)
    • (optional) If you do not want to see the pop-up prompt window, you may need to install hstart. And add the following path to your scheduled tasks
path/to/hstart.exe /NOCONSOLE /IDLE path/to/cron.bat 

reference: Remember The Milk - Forums / Tips & Tricks / Automatic backup (Windows script)

modify the translation file

optional

move the data to another HD

  • C:\AppServ\apache\conf\httpd.conf

move the webpages to another hard disk

DocumentRoot "C:/AppServ/www"
-> DocumentRoot "D:/www"
  • restart apache service
  • modify {moodle}/config.php


insert the tracking script

  • modify the {moodle}/theme/{default_theme_name}/footer.html
  • insert the tracking script ex: Google analytics codes


other notes

Moodle Assign roles for 1.7.x

Moodle wiki syntax (markup)

  • CamelWord
  • Free link
    • [Free_link]
    • or
      [Description | Free_link]