[support] Cron Unable to Access Database
Cog Rusty
cog.rusty at gmail.com
Thu Apr 24 04:02:16 UTC 2008
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 at 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/ ]
>
More information about the support
mailing list