By spiderduo on
My host has an interface for Cron Jobs where I can browse to the file and set the time in a pull down window. There is a note that says:
"In case you use a PHP cron script, please set its first line to: #!/usr/local/bin/php.cli"
I've searched through the drupal to find the spot that calls this information - but can't find it. Where do I put this info? Am I over simplifying by choosing "cron.php" and trying to add this line somewhere?
note: if I just choose cron.php, I get a fatal exec format error.
TIA!
Comments
The line should go at the
The line should go at the start of cron.php in your drupal base directory; it tells the server’s OS which program to use when executing the file cron.php .
___________________
It’s in the detaιls…
Warnings Oh-Rama
Thank you for that info. When I put the line in and run cron, I get these warnings. Are they a problem? Can I suppress them?
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/dragonfly/www/www/cron.php:3) in /home/dragonfly/www/www/includes/bootstrap.inc on line 976
Warning: Cannot modify header information - headers already sent by (output started at /home/dragonfly/www/www/cron.php:3) in /home/dragonfly/www/www/includes/bootstrap.inc on line 577
Warning: Cannot modify header information - headers already sent by (output started at /home/dragonfly/www/www/cron.php:3) in /home/dragonfly/www/www/includes/bootstrap.inc on line 578
Warning: Cannot modify header information - headers already sent by (output started at /home/dragonfly/www/www/cron.php:3) in /home/dragonfly/www/www/includes/bootstrap.inc on line 579
Warning: Cannot modify header information - headers already sent by (output started at /home/dragonfly/www/www/cron.php:3) in /home/dragonfly/www/www/includes/bootstrap.inc on line 580
Three steps…
______________________________________________________________________
Search is your friend – and it’s quicker than waiting for a reply :-)
Marvelous!
Thank you :-)