Tuesday, July 2, 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

Authentica Solutions Raises $6.2M in New Funding to Expand Its Operations

Authentica Solutions, a leader in data integration and intelligence management solutions for the education sector, has recently announced the successful completion of a $6.2...

Moodle Admins – Create custom reports in Moodle using Configurable reports plugin

Moodle LMS is the most popular open source learning management system with more than 420+ million users in the world. Wherever elearning is used...

Moodle Teachers – How to use the Ordering Question type in Moodle

Moodle 4.4 - the latest major version of the Moodle LMS is packed with a lot of exciting new features. One of such is...