Answers.Body: <p>The cron job you have there looks like a Drupal cron job.  You should look at the <a href="https://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs">scheduled jobs wiki page</a> for full details, but in the case of a Drupal site using <code>wget</code> (since that is the direction you're seeming to go in), try:</p>
  
  <pre><code>*/6 * * * * wget -O - -q -t 1 http://mydomain.com/sites/all/modules/civicrm/bin/cron.php?name=username&amp;pass=password&amp;key=site-key
  </code></pre>
  
  <p>You'll find the "site-key" in the <code>civicrm.settings.php</code> file, and the "username" and "password" correspond to a Drupal user with Administer CiviCRM permission.</p>
  
  <p>You'll see that I have it going every six minutes rather than every 2 hours: you'll want to set CiviCRM cron to run multiple times per hour; you can set specific scheduled jobs to run less frequently from the management page in CiviCRM.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-08T00:03:22.633Z
Answers.Text: Thank you, Andrew.  I did look at that Wiki and followed the examples with no luck.  I will try your suggestion and hopefully get it working.  Thank you.
Answers.UserDisplayName: Rod W
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-08T01:24:07.983Z
Answers.Text: I set it exactly as you indicated. I verified the user info and password as well.  I don't know if I'm using the right key.  It took some time to find a file called civicrm.settings.php and the site key listed didn't seem as complex as what I had in there before (and now I don't remember where the file is that I found the previous key).  The previous key had many mixed case letters, numbers, and even and underscore.  The key I found in this file had a couple of lower case letters and a bunch of numbers and that's it.
Answers.UserDisplayName: Rod W
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-08T14:35:24.827Z
Answers.Text: I let this go overnight and it seems it is still not working correctly.  At least according the civiCRM System Status Report.  I really don't know where to go from here.  I have ordered "Using CiviCRM" ( http://smile.amazon.com/Using-CiviCRM-Joseph-Murray/dp/1849512264 ) to see if it will give me some insight.  I also just received "Drupal 7 Explained" by Stephen Burge to see if that will help, as well.  If you know of something else I could try, I would be grateful.  TIA. - R
Answers.UserDisplayName: Rod W
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-08T18:32:44.060Z
Answers.Text: The key thing is that the URL should work when you visit it in a browser. If the browser doesn't work, the `wget` won't either. You might also try resetting the password to not include special characters.
Answers.UserDisplayName: Andie Hunt
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-08T18:40:19.253Z
Answers.Text: So I am the biggest moron ever.  My domain ends in .org and not .com and I missed that when I kept copy and pasting.  Working now.  D'oh!!
Answers.UserDisplayName: Rod W
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-09T01:12:10.227Z
Answers.Text: Glad it's working!
Answers.UserDisplayName: Andie Hunt
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-06T23:30:13.053Z
Answers.LastActivityDate: 2016-05-06T23:30:13.053Z
Answers.UserDisplayName: Andie Hunt
Answers.Body: <p>I have had the same issues but thanks to above I sorted it out so thanks for that.
  My confusion was over using CRON in Cpanel and how that interfaced with CRON in Drupal and Scheduled jobs in Civicrm
  So the link available in Drupal does work but does not affect the Civicrm Scheduled Jobs.
  Note the different cron.php locations.</p>
  
  <p>viz: From Drupal to run externally (this works for Drupal but not Civicrm)
  <a href="http://my.org/drupal/cron.php?cron_key=YufnNO9tj4npU4BN6zLJOVsu_pKO7eapX2siu5-yMOU" rel="nofollow">http://my.org/drupal/cron.php?cron_key=YufnNO9tj4npU4BN6zLJOVsu_pKO7eapX2siu5-yMOU</a></p>
  
  <p>Viz: From Cron in CPanel  (this works for Civicrm but not Drupal - which is correct )
  wget -O - -q -t 1 '<a href="http://my.org/drupal/sites/all/modules/civicrm/bin/cron.php?name=username&amp;pass=password&amp;key=site-key" rel="nofollow">http://my.org/drupal/sites/all/modules/civicrm/bin/cron.php?name=username&amp;pass=password&amp;key=site-key</a>'
  Note the single quotes.
  I hope this helps someone.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-12-05T18:20:36.580Z
Answers.Text: Are the single quotes required for this to work? That wasn't clear in your note. I'm not clear if you are saying to note them to remove them when we add it to our cron config or if we need to have them in our cron config.
Answers.UserDisplayName: Rod W
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-12-06T22:16:47.103Z
Answers.Text: I definitely used the single quotes in the script for CRON from CPANEL, I have copied and pasted, changed the domain, user, password and the key.
  
  wget -O - -q -t 1 'http://mydomain.com.au/drupal/sites/all/modules/civicrm/bin/cron.php?name=hock1234&pass=HvwMsdfffa&key=6e11e22d3454xcv720a91d824044'
Answers.UserDisplayName: Hock
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-29T01:55:40.193Z
Answers.LastActivityDate: 2016-08-29T01:55:40.193Z
Answers.UserDisplayName: Hock
Body: <p>Greetings and salutations.  I know some of you must be growing impatient with all of these cron questions from the noobs.  I am at a loss.  I have consulted all of the documentation links posted in the cron question threads and tried every example given. I have even changed hosting providers and installed a fresh copy of Drupal 7 and CiviCRM separately (the bundle caused all kinds of errors that I didn't know how to fix). I have everything working now except cron.  Still.  I have scoured every resource I can find trying to understand cron and c/p'ed every example of cron settings relevant to CiviCRM and Drupal. I still cannot get cron to fire automatically and the error on the status page will not go away.  I can click the button and run it manually, so it doesn't seem to be a permissions issue. I really don't know what else to do at this point.  My current cron setting is </p>
  
  <pre><code>22 */2 * * * wget -O - -q -t 1 http://mydomain.com/cron.php?cron_key=mykey &gt; /dev/null
  </code></pre>
  
  <p>Can anyone please explain to me WHY this is wrong so that hopefully I can get this running? Please and thank you.</p>
  
  <p>Solution: Single quote (') before http and after the end of site key in addition the wget etc.</p>
  
  <p>This is how it should look:</p>
  
  <p>*/6 * * * * wget -O - -q -t 1 '<a href="http://mydomain.com/sites/all/modules/civicrm/bin/cron.php?name=username&amp;pass=password&amp;key=site-key" rel="nofollow noreferrer">http://mydomain.com/sites/all/modules/civicrm/bin/cron.php?name=username&amp;pass=password&amp;key=site-key</a>'</p>
  
  <p>Thank you everyone for the help and to Hock for providing the info about single quotes around the http attribute.</p>
  
Tags: <cron>
Title: SOLVED - Cron setting for CiviCRM 4.x.x on Drupal 7.x via cPanel Cron admin panel
ThreadText: # SOLVED - Cron setting for CiviCRM 4.x.x on Drupal 7.x via cPanel Cron admin panel
  
  (Asked by: username_0 on 2016-05-06)
  
  Greetings and salutations.  I know some of you must be growing impatient with all of these cron questions from the noobs.  I am at a loss.  I have consulted all of the documentation links posted in the cron question threads and tried every example given. I have even changed hosting providers and installed a fresh copy of Drupal 7 and CiviCRM separately (the bundle caused all kinds of errors that I didn't know how to fix). I have everything working now except cron.  Still.  I have scoured every resource I can find trying to understand cron and c/p'ed every example of cron settings relevant to CiviCRM and Drupal. I still cannot get cron to fire automatically and the error on the status page will not go away.  I can click the button and run it manually, so it doesn't seem to be a permissions issue. I really don't know what else to do at this point.  My current cron setting is 
  22 */2 * * * wget -O - -q -t 1 http://mydomain.com/cron.php?cron_key=mykey > /dev/null
  
  Can anyone please explain to me WHY this is wrong so that hopefully I can get this running? Please and thank you.
  Solution: Single quote (') before http and after the end of site key in addition the wget etc.
  This is how it should look:
  */6 * * * * wget -O - -q -t 1 'http://mydomain.com/sites/all/modules/civicrm/bin/cron.php?name=username&pass=password&key=site-key'
  Thank you everyone for the help and to username_2 for providing the info about single quotes around the http attribute.
  
  **Tags:** cron
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2016-05-06. Score: 7
  
  The cron job you have there looks like a Drupal cron job.  You should look at the scheduled jobs wiki page for full details, but in the case of a Drupal site using wget (since that is the direction you're seeming to go in), try:
  */6 * * * * wget -O - -q -t 1 http://mydomain.com/sites/all/modules/civicrm/bin/cron.php?name=username&pass=password&key=site-key
  
  You'll find the "site-key" in the civicrm.settings.php file, and the "username" and "password" correspond to a Drupal user with Administer CiviCRM permission.
  You'll see that I have it going every six minutes rather than every 2 hours: you'll want to set CiviCRM cron to run multiple times per hour; you can set specific scheduled jobs to run less frequently from the management page in CiviCRM.
  
  > **Comments:**
  > **username_0**: Thank you, Andrew.  I did look at that Wiki and followed the examples with no luck.  I will try your suggestion and hopefully get it working.  Thank you.  
  > **username_0**: I set it exactly as you indicated. I verified the user info and password as well.  I don't know if I'm using the right key.  It took some time to find a file called civicrm.settings.php and the site key listed didn't seem as complex as what I had in there before (and now I don't remember where the file is that I found the previous key).  The previous key had many mixed case letters, numbers, and even and underscore.  The key I found in this file had a couple of lower case letters and a bunch of numbers and that's it.  
  > **username_0**: I let this go overnight and it seems it is still not working correctly.  At least according the civiCRM System Status Report.  I really don't know where to go from here.  I have ordered "Using CiviCRM" ( http://smile.amazon.com/Using-CiviCRM-Joseph-Murray/dp/1849512264 ) to see if it will give me some insight.  I also just received "Drupal 7 Explained" by Stephen Burge to see if that will help, as well.  If you know of something else I could try, I would be grateful.  TIA. - R  
  > **username_1**: The key thing is that the URL should work when you visit it in a browser. If the browser doesn't work, the `wget` won't either. You might also try resetting the password to not include special characters.  
  > **username_0**: So I am the biggest moron ever.  My domain ends in .org and not .com and I missed that when I kept copy and pasting.  Working now.  D'oh!!  
  > **username_1**: Glad it's working!  
  
  ---
  
  ### Answer by username_2 on 2016-08-29. Score: 0
  
  I have had the same issues but thanks to above I sorted it out so thanks for that.
  My confusion was over using CRON in Cpanel and how that interfaced with CRON in Drupal and Scheduled jobs in Civicrm
  So the link available in Drupal does work but does not affect the Civicrm Scheduled Jobs.
  Note the different cron.php locations.
  
  viz: From Drupal to run externally (this works for Drupal but not Civicrm)
  <http://my.org/drupal/cron.php?cron_key=YufnNO9tj4npU4BN6zLJOVsu_pKO7eapX2siu5-yMOU>
  
  Viz: From Cron in CPanel (this works for Civicrm but not Drupal - which is correct )
  wget -O - -q -t 1 '<http://my.org/drupal/sites/all/modules/civicrm/bin/cron.php?name=username&pass=password&key=site-key>'
  Note the single quotes.
  I hope this helps someone.
  
  > **Comments:**
  > **username_0**: Are the single quotes required for this to work? That wasn't clear in your note. I'm not clear if you are saying to note them to remove them when we add it to our cron config or if we need to have them in our cron config.  
  > **username_2**: I definitely used the single quotes in the script for CRON from CPANEL, I have copied and pasted, changed the domain, user, password and the key.  wget -O - -q -t 1 'http://mydomain.com.au/drupal/sites/all/modules/civicrm/bin/cron.php?name=hock1234&pass=HvwMsdfffa&key=6e11e22d3454xcv720a91d824044'  
  
  ---
  
  