Howto create an Cronjob in DirectAdmin?

Here we have an example of job created on a hosted server with DirectAdmin:


Please note;

  1. We want to run the script only once every minute;  */1
  2. We need PHP to run cron.php, so we need to the command to run php and in this case it is; /usr/local/bin/php
  3. We need the whole path to cron.php and in this case; /home/***/domains/***/public_html/websolarlog/utils/cron.php
  4. We do not want to return data to the prompt or a file, so we add; >/dev/null 2>&1

This is just a example and we advice to contact your hosting provider and ask them if the could help you with the Cronjob.

Posted in: Admin, Installation, Programming