I am trying to Sync my Office 365 users from Azure AD into Moodle, but unfortunately my scheduled task never runs. Nor do I have the "Run Now" option.
Am I missing something ?
Have you enabled it? In the scheduled task settings?
Hi
I have same issue in my setup. I cannot see 'Run now' button like the demo in some of the videos. Any one can help please ?
Thank you
To get the "Run now" link Path to PHP CLI must be set (under Site administration ▸ Server ▸ System paths).
Is /usr/bin/php the correct path on your system? You should see a green check mark on the right of the field if the path is correct:
If you don't see the green check mark, try running which php at the command line which should show the correct path.
Thanks for the reply. But I use hosting and I can't find Path to PHP CLI
And "Sync users with Azure AD": Never
Please help mee.
What version of Moodle do you have?
Is the cron set up and working? If your screenshot is recent then maybe it's not working, e.g. task Create user groups in Office 365 should run every time the cron is run but your screenshot shows this was last run on Thursday, 22 October 2020, 11:15 AM.
Thanks for reply
/usr/local/php72 is a folder, Path to PHP CLI must be a file.
If you have command line access to the server then the command which php should show this, for example on my server:
On your server it may be /usr/local/php72/php so you could try that.