CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • Cron Job can't resolve site key error
Pages: [1]

Author Topic: Cron Job can't resolve site key error  (Read 1184 times)

ratnesh

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 7
  • MySQL version: 5.1.52
  • PHP version: PHP 5.2.x
Cron Job can't resolve site key error
May 11, 2012, 08:45:16 am
I am runnning civicrm inside drupal 7
When i run the cron job from URL - using
http://[MYSITE]/sites/all/modules/civicrm/bin/cron.php?name=username&pass=password&key=site-key
in my browser - the cron job runs perfectly - which means my site key is FINE!
But when i run from cpanel using
wget -O - -q -t 1 http://[MYSITE]/sites/all/modules/civicrm/bin/cron.php?name=username&pass=password&key=site-key
i get this error
ERROR: You need to send a valid key to execute this file. More info at:http://wiki.civicrm.org/confluence/display/CRMDOC/Command-line+Script+Configuration

While according to me all settings are fine.
Pl guide to me how i can get CRON to run from cpanel.
thanks

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Cron Job can't resolve site key error
May 11, 2012, 08:48:06 am
Try

wget -O - -q -t 1 'http://[MYSITE]/sites/all/modules/civicrm/bin/cron.php?name=username&pass=password&key=site-key'

 
with single quotes around the URL.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

ratnesh

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 7
  • MySQL version: 5.1.52
  • PHP version: PHP 5.2.x
Re: Cron Job can't resolve site key error
May 11, 2012, 06:26:47 pm
wow this did it - its working now.
such a simple solution and took me hours of head breaking to no avail.
thanks a million hershel for such a quick help :D

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • Cron Job can't resolve site key error

This forum was archived on 2017-11-26.