Monday, December 23, 2024
HomeForAdministratorsUsing Moodle on XAMPP - What's the Path to PHP CLI

Using Moodle on XAMPP – What’s the Path to PHP CLI

-

While trying to use the H5P activity in new Moodle environment for the first time, I came across the problem that there were no content types were installed. By default Moodle core includes a schedule task to Download available H5P content types from h5p.org. However, since I was running the Moodle in a local environment based on XAMPP, so it was not working.

Looking around Moodle documentation, I understood that to install the H5P content types, first the Moodle cron job has to be setup and running. After doing that, I was still not able to run individual tasks in Scheduled Tasks list.

Deep diving further, I understood  that to be able to run individual scheduled tasks via ‘Run now’ links on the scheduled tasks page, there are two conditions which needs to be met:

  • Condition 1: ‘Allow ‘Run now’ for scheduled tasks’ (tool_task | enablerunnow) in Site administration / Security / Site security settings should be enabled
  • Condition 2: ‘Path to PHP CLI’ (pathtophp) in Site administration / Server / System paths should be set.

After enabling the first one, I was stuck up with the PHP CLI Path for XAMPP. So for the help of all Moodle users who are using Moodle with XAMPP, here is the path to PHP CLI which needs to be entered:

C:\xampp\php\php.exe

You can save this as system path and then you can run the scheduled task individually in Moodle. Pl share in the comments below if this post was helpful for you.

How to use Moodle Book

 
Jaswinder Singh
Jaswinder Singhhttps://lmsdaily.com
I am an experienced Moodle Professional with experience in Moodle Course Creation, Moodle Setup, Moodle Integration, Moodle Training, Moodle Support & troubleshooting. YI am the author of popular books - "How to use Moodle 4.1" and "how to use Moodle 2.7". I work with one goal in mind “CUSTOMER SATISFACTION” – whether this means working to achieve results within a specific deadline (or beating the deadline), or with a focus on solid quality, if my client requires the job to be done I will go out of my way to achieving whatever it is that is necessary to do so. Basically, I can take care of your all Moodle requirements so that you can focus on your core job and I will manage your Moodle LMS.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -spot_img

Popular Posts

Join MoodleMoot Australia 2024 on 26-27 November 2024 in Melbourne

MoodleMoot Australia 2024 will take place on 26-27 November 2024 in Melbourne. This year the edtech conference will be organized by the Moodle Premier...

Participate in Moodle 4.5 QA Testing to contribute for a future LMS

Moodle 4.5 is the next LTS (Long Term Support) version of the Moodle LMS which is scheduled to be released soon. It is currently...

CLAMP Project Updates – New LAE releases for August 2024 available!

CLAMP Project which is a group of colleges and universities who collaborate to develop and support Moodle, with an eye toward the issues unique...