My cron daemon keeps sending back this error:

line 1: ?php: No such file or directory
line 2: include_once: command not found
line 3: syntax error near unexpected token `DRUPAL_BOOTSTRAP_FULL'
ine 3: `drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);'

and this is what cron.php looks like:

include_once "includes/bootstrap.inc";
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
drupal_cron_run();

permissions are set to 755....

What is going on here???

Comments

ScoutBaker’s picture

The errors look like you've just specified cron.php as the command to run. Check out the Configuring cron jobs handbook page for information on how to properly set this up.

"Nice to meet you Rose...run for your life." - The Doctor

pbarnett’s picture

Your crontab entry should just access http://yoursite.com/cron.php

For example, mine is set to

0 * * * * /usr/bin/wget -O - -q http://mysite.com/cron.php >/dev/null

Pete.

r00tk1ll’s picture

Im using godaddy so they just allow me to use the "cron manager". I will try changing my current */HTML/USER/cron.php (changed respectively) to http://mysite.com/cron.php and will let you know what happens

r00tk1ll’s picture

Here's my latest error:

/bin/sh: line 1: http://www.mysite.com/cron.php: No such file or directory

any ideas?

pbarnett’s picture

What you need to enter is

/usr/bin/wget -O - -q http://mysite.com/cron.php