Tuesday, April 30, 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

Invite students to your Moodle course easily using the Invitation Moodle plugin

Moodle is one of the world's most popular open source learning management system with more than 415 million users around the world. It allows...

Rice University’s OpenStax Receives $90M to Lead NSF Research Hub

OpenStax, an educational nonprofit initiative of Rice University, has received $90 million to create and lead a research and development hub for inclusive learning...

HyperionDev Raises $5M in New Funding to Expand Its Operations

HyperionDev, the South African tech education firm, has secured a significant investment of R95 million (approximately $5 million) in a new funding round. This...