Scheduled Tasks - 'Run now' on Windows

Scheduled Tasks - 'Run now' on Windows

Leo Pacuan -
回帖数:1

Good evening guys, first time Moodle user here. I'm running Moodle on a Windows 2019 and it works great until I researched about forcing commands such as LDAP sync. Please note that I have enabled /cron.php?password=hardtoguess and was able to run it successfully. 

My Moodle is in c:\MOODLE\server

What should I put on my CLI path? There's a bunch of directory under Moodle\server\

apache, cgi-bin, including php

I tried putting on CLI path for PHP /server/php and just /php, but "Run Now" is still not there. Do I need to restart Moodle for changes to take effect? Please advise as I have been trying to figure this out for 3 nights now. 

回复Leo Pacuan

Re: Scheduled Tasks - 'Run now' on Windows

Leon Stringer -
Core developers的头像 Particularly helpful Moodlers的头像

This is for the Path to PHP CLI setting? This should be the full path to the php.exe file including the filename.

On my Windows server PHP is in C:\Program Files\PHP\7.3.6 so in Path to PHP CLI I have "C:\Program Files\PHP\7.3.6\php.exe" and I get the Run Now links.

You don't need to restart anything, when the path is correct the links will appear.