I'm not the big expert on running crons, but when I run the cron at my website by putting the domain url into the browser:
http://www.domain.com/cron.php
It doesn't seem to actually work. So I logged directly into the server (it's my server) as root and tried to run it in a terminal. Whether I ran it as root or changed permissions or whatever it returned these results (this is from running it in a terminal):
/var/www/web6/web/cron.php: line 1: ?php: No such file or directory
/var/www/web6/web/cron.php: line 2: //: is a directory
/var/www/web6/web/cron.php: line 4: /bin: is a directory
/var/www/web6/web/cron.php: line 5: bin: command not found
/var/www/web6/web/cron.php: line 6: syntax error near unexpected token `('
/var/www/web6/web/cron.php: line 6: ` * Handles incoming requests to fire off regularly-scheduled tasks (cron jobs).'
It doesn't appear to be doing anything or finding stuff that it's expecting. What am I doing wrong?
Here's what the body of the cron.php looks like (if the site let's me post it):
// $Id: cron.php,v 1.28 2005-01-09 09:22:38 dries Exp $
/**
* @file
* Handles incoming requests to fire off regularly-scheduled tasks (cron jobs).
*/
include_once 'includes/bootstrap.inc';
include_once 'includes/common.inc' ;
// If not in 'safe mode', increase the maximum execution time:
if (!ini_get('safe_mode')) {
set_time_limit(240);