I cannot use wget, curl, or lynx to invoke cron because of a firewall that blocks the loopback (crontab on same server as apache). On Drupal 7 I could use this in my crontab:

$ /usr/bin/php /var/www/html/cron.php

But Drupal 8 does does not have this file and uses a long hash. How can I do it? Thanks!!

Comments

John_B’s picture

Of course, for small sites none of these are necessary, you just set cron to run at /admin/config/system/cron and rely on that. It works OK, even though you might not consider it best practice.

If you think that calling cron from a crontab on the server is best practice, you should be calling cron by setting up a crontab on the server which calls drush (instructions here). If you are trying to run Drupal on a server which does not support Drush, then you have bigger problems anyway.

Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors

tophboogie’s picture

Ah ha! Yes Drush... so obvious yet I couldn't think to do it. Thanks!