Fellow Drupallers,
Cron isn't working.
This is the job I have set up:
17 * * * * /usr/bin/php -q /home/<account_name>/public_html/cron.php
(account_name is replaced with the actual account name.)
I'm using cpanel x3 advanced pane set-up.
At 17 minutes after every hour I get the automated e-mail cron report telling me that the script was unable to access the database.
When I go to: /admin/logs/status, not surprisingly, cron has not been run.
When I navigate via a browser to: example.com/cron.php cron runs normally and is reported as such in /admin/logs/status.
Other cron jobs in different accounts (also Drupal installations) on the same server are working fine.
I'm running Drupal 5.7.
Thanks for the help.
Shai content2zero http://content2zero.com
try
17 * * * * /usr/bin/lynx -source http://example.com/cron.php
or
17 * * * * /usr/bin/wget -O - -q http://example.com/cron.php
Shai Gluskin wrote:
Fellow Drupallers,
Cron isn't working.
This is the job I have set up:
17 * * * * /usr/bin/php -q /home/<account_name>/public_html/cron.php
(account_name is replaced with the actual account name.)
I'm using cpanel x3 advanced pane set-up.
At 17 minutes after every hour I get the automated e-mail cron report telling me that the script was unable to access the database.
When I go to: /admin/logs/status, not surprisingly, cron has not been run.
When I navigate via a browser to: example.com/cron.php http://example.com/cron.php cron runs normally and is reported as such in /admin/logs/status.
Other cron jobs in different accounts (also Drupal installations) on the same server are working fine.
I'm running Drupal 5.7.
Thanks for the help.
Shai content2zero http://content2zero.com
Just to add, in case you wonder why lynx or wget or curl but not php, notice what the Handbook says in http://drupal.org/cron, in the paragraph starting with "Note that it is essential to access cron.php using a browser". A domain name and not a file path must be specified, so that Drupal can figure out which site's database to access.
On Wed, Apr 23, 2008 at 9:07 PM, sander-martijn lists@severeddreams.com wrote:
try
17 * * * * /usr/bin/lynx -source http://example.com/cron.php
or
17 * * * * /usr/bin/wget -O - -q http://example.com/cron.php
Shai Gluskin wrote:
Fellow Drupallers,
Cron isn't working.
This is the job I have set up:
17 * * * * /usr/bin/php -q /home/<account_name>/public_html/cron.php
(account_name is replaced with the actual account name.)
I'm using cpanel x3 advanced pane set-up.
At 17 minutes after every hour I get the automated e-mail cron report telling me that the script was unable to access the database.
When I go to: /admin/logs/status, not surprisingly, cron has not been run.
When I navigate via a browser to: example.com/cron.php http://example.com/cron.php cron runs normally and is reported as such
in /admin/logs/status.
Other cron jobs in different accounts (also Drupal installations) on the same server are working fine.
I'm running Drupal 5.7.
Thanks for the help.
Shai content2zero http://content2zero.com
-- [ Drupal support list | http://lists.drupal.org/ ]
In drupal.org, it is suggested to create a script for cron:
#!/bin/sh # $Id: cron-lynx.sh,v 1.3 2006/08/22 07:38:24 dries Exp $
/usr/bin/lynx -source http://example.com/cron.php > /dev/null 2>&1
I'm not sure if this comes by default in the "scripts" directory of the drupal root.