title: How can i add a cron job run every minute to my elearning site on moodle?
body: <p>I try to add a cron job on an elearning.mysite.gr(Moodle). Although my host gives this message every hour.
  Oct  2 1:10:01 linux CROND[123456]: (admin) CMD (touch /tmp/test.txt  &gt; /dev/null)</p>
  <p>On my site administration -&gt; notifications get this message:
  The admin/cli/cron.php script has not been run for 3 days 2 hours and should run every 1 min.</p>
  <p>At moodle documentation<br />
  /path/to/moodle/admin/cli/cron.php, can i use it ? in which way ?</p>
  <p>I tried this :
  /usr/bin/php /path/to/moodle/admin/cli/cron.php</p>
  <p>but gives me that the process completed with error at one minute
  only this touch /tmp/test.txt  &gt; /dev/null
  completed with success.</p>
  <p>Moodle Documentation:
  The CLI (command line interpreter) script. This will be at the path <em><strong>/path/to/moodle/admin/cli/cron.php</strong></em>
  If in doubt, this is the correct script to use. This needs to be run by a 'PHP CLI' program on your computer. So the final command may look something like /usr/bin/php /path/to/moodle/admin/cli/cron.php You can (and should) try this on your command line to see if it works. <strong>WARNING: Check your command-line PHP version is compatible with your chosen version of Moodle</strong>.-How to check it?
  The command-line PHP program is different to the one running your web site and is not always the same version.</p>
  <p>I don't know what to do...I will appreciate any help!!!</p>
  <p>I tried by my host panel interface :</p>
  <p><strong>Type of progress:</strong></p>
  <ol>
  <li>Command line</li>
  <li>URL</li>
  <li>PHP
  i should choose one from 3.</li>
  </ol>
  <p><strong>Command</strong>*:
  placeholder to add my command to be excecuted</p>
  <p><strong>Excecute</strong>:
  Dropdown
  1.Cron style
  2.Daily at  00:00</p>
  <p><strong>I use command line.</strong>
  touch /tmp/test.txt
  When i add
  <strong>cron style</strong> and 1 * * * * * , get message for syntax.
  and for
  <strong>daily</strong> at 00:00 success message  but on my notification of my site has
  The admin/cli/cron.php script has not been run for 17 days 22 hours and should run every 1 min.</p>
  <p><a href="https://i.stack.imgur.com/jgM5e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jgM5e.png" alt="enter image description here" /></a></p>
  <p>That's the icon of my Plesk Login. To change the path/to/moodle/admin/cli/cron.php xould i check the file manager in order to find cron.php file ??</p>
  <p><a href="https://i.stack.imgur.com/VArMP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VArMP.png" alt="enter image description here" /></a></p>