Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By tophboogie on
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
Of course, for small sites
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
Duhh
Ah ha! Yes Drush... so obvious yet I couldn't think to do it. Thanks!