DevelopmentWeb Development

Cron Job Command in Moodle

Moodle is a popular learning management system (LMS) with which you will be able to create e-learning courses. You can add courses, interact with students, provide them with assignments and quizzes and perform whole lot of thing.

In order to install Moodle, you require access to a Linux server with CPanel control panel. You also need to setup Cron Job Command so that messages generated from within the Moodle dashboard will be delivered promptly. Moreover, Cron Job Command is required to perform other tasks related to courses.

You will be able to install Moodle using Softaculous option inside CPanel control pane. By default, CPanel generates a Cron Job Command which may not be compatible with the installed version of Moodle. Hence, you need to modify the Cron Job Command manually after the completion of installation.

(1) Log into CPanel using the username, password and control panel URL provided by your hosting provider

(2) Scroll down and click Cron Jobs from Advanced section

(3) You will be able to view a screenshot as shown below

Cron Job Command in Moodle

The default Cron command will look like as given below:

php -q /home/CPANEL USER NAME/public_html/admin/cli/cron.php

You need to edit the Cron Job Command in Moodle as displayed below

/opt/ntphp/php54/bin/php -q /home/CPANEL USER NAME/public_html/admin/cli/cron.php

Please note that if the default Cron Job Command is as shown above beginning with /opt/, you need not have to do anything. The updation is only required depending upon the hosting provider.

Please substitute CPANEL USER NAME with your real CPanel user name.

I provide free Moodle, WordPress, Drupal, Joomla installation services. Please feel free to contact me at anandn26@gmail.com

One Response

  1. Niladri Chatterjee

Leave a Comment