![]() ![]() You can test that your scheduled task can run successfully by clicking it with the right button and chosing "Run". NOTE: If you use the wget version, be sure to check Cron settings to make sure that the 'web based' cron service is permitted. Mark the "Repeat task" checkbox and set "Every:" to 3 minutes, and set "Until:" to "Duration" and type "23" hours and "59" minutes. Click on the "Schedule" tab and there in the "Advanced." button. In the new dialog box, type the following in the "Run:" text box: c:\windows\wget.exe -q -O NUL or c:\php\php-win.exe -f c:\moodle\admin\cli\cron.php Replace "c:\moodle" with the path to your moodle directory or "my.moode.site" with the name of your site. Mark the checkbox titled "Open advanced properties for this task when I click Finish" and click "Finish". Make sure you type the password correctly. Enter the username and password of the user the task will run under (it doesn't have to be a priviledged account at all). Select "12:00 AM" as the start time, perform the task "Every Day" and choose today's date as the starting date. Click "Next" to start the wizard: - Click in the "Browse." button and browse to c:\php\php.exe or c:\windows\wget.exe and click "Open" - Type "Moodle Cron" as the name of the task and select "Daily" as the schedule. Go to Start > Control Panel > Scheduled Tasks > Add Scheduled Task. Copy the wget.exe file to c:\windows (this makes sure wget is always in the search path). DLL files to your C:\Windows\system32 directory. If you use Heiko Herold's package, copy all of the. If you want to use wget, download a compiled version of wget for windows from the native GNU Win32 ports ( ), from Heiko Herold's wget for windows page ( ) or Bart Puype's wget for windows page ( ). c:\php) will give you better performance when running the cron script. The php.exe or php-win.exe binary (for PHP version 5 or later) is installed in your php folder (e.g. Choose either the php.exe/php-win.exe (command line binary) or wget.If you prefer to use the built-in Windows Scheduler or are having trouble with moodle-cron-for-windows package, you can use wget for windows or php from the command line and setup a scheduled task. You need to disable Cron execution via command line only (under Site administration → Security → Site security settings) to use this. The simplest way is to use this little package MoodleCron-Setup.exe, which makes this whole thing very easy by installing a small Windows service. ![]() There are two different ways for creating a Moodle Cron process trigger on Windows operating systems. ![]()
0 Comments
Leave a Reply. |