Moodle Installation: Difference between revisions

Jump to navigation Jump to search
Line 54: Line 54:


=== cron.php maintenance script ===
=== cron.php maintenance script ===
==== method1 ====
* download from http://moodle.org/download/modules/moodle-cron-for-windows.zip
* download from http://moodle.org/download/modules/moodle-cron-for-windows.zip
* add the URL of {moodle}/admin/cron.php to HKEY_LOCAL_MACHINE\SOFTWARE\MoodleCron\Sites
* add the URL of {moodle}/admin/cron.php to HKEY_LOCAL_MACHINE\SOFTWARE\MoodleCron\Sites
: more on [http://docs.moodle.org/en/Cron Moodle docs: Cron]
: more on [http://docs.moodle.org/en/Cron Moodle docs: Cron]
==== method2 ====
* download the [http://gnuwin32.sourceforge.net/packages/wget.htm wget for windows]
* create the cron.bat as follows
<pre>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
</pre>
* add to the scheduled tasks (程式集 -> 附屬應用程式 -> 系統工具 -> 排定的工作)
** (optional) If you do not want to see the pop-up prompt window, you may need to install [http://www.ntwind.com/software/utilities/hstart.html hstart]. And add the following path to your scheduled tasks
<pre>path/to/hstart.exe /NOCONSOLE /IDLE path/to/cron.bat </pre>
reference: [http://www.rememberthemilk.com/forums/tips/4662/?hl=zh-TW Remember The Milk - Forums / Tips & Tricks / Automatic backup (Windows script)]


== modify the translation file ==
== modify the translation file ==

Navigation menu