I am trying to setup cron to run job.execute that I have setup in CiviCRM scheduled jobs. Drupal


Cron setup¶ In order for the scheduled jobs configured within the CiviCRM UI to run automatically, you'll need to configure a cron job which executes the Job.execute API call.

I have seen other examples but... http://mydomain.com/sites/all/modules/civicrm/bin/cron.php as shown in other examples does not exist on my site.

The only cron.php I have found is in the following location: /home/user/vendor/civicrm/civicrm-core/bin/cron.php

My site is in this location /home/user/public_html/

CiviCRM settings are in this location /home/user/public_html/sites/default/civicrm.settings.php

using the crontab method what would the be to execute my scheduled job?

*/5 * * * * <job.execute> */5 * * * * job.execute */5 * * * * <something_something_job.execute>

I know these are not correct, what is the correct command? These instructions were not specific on how to get this working unless I am missing something right in front of my face...

Any help would be appreciated, thank you for your time!

2 Answers 2


You can use for this drush or cv.phar. Detailed instructions for either can be found here:




/usr/local/bin/php /home/user/public_html/sites/all/modules/civicrm/bin/cli.php -u <cpanel admin username> -p <cpanel admin password> -e Job -a execute
  • Iowa boys solution will not work as the cron file in no longer on that path in Drupal 9. Commented Dec 7, 2021 at 16:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.