Answers.Body: <p>I appear to have resolved the issue with the help of the thread at <a href="https://civicrm.stackexchange.com/questions/9130/cron-job-with-shared-hosting-cpanel?rq=1">Cron job with shared hosting CPanel</a></p>
  
  <p>The issue was related to missing backslashes after the username and the password.</p>
  
  <p>/usr/bin/wget <a href="https://domain/sites/all/modules/civicrm/bin/cron.php?name=username" rel="nofollow noreferrer">https://domain/sites/all/modules/civicrm/bin/cron.php?name=username</a>\&amp;pass=password\&amp;key=key</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-23T15:14:11.240Z
Answers.LastActivityDate: 2018-07-23T15:14:11.240Z
Answers.UserDisplayName: Mo-ster
Body: <p>I am trying to configure the CiviCRM file "sites/all/modules/civicrm/bin/cron.php" to be run as a cron job.  If I paste the url:</p>
  
  <p>https:// domain.com/sites/all/modules/civicrm/bin/cron.php?name=<strong>username</strong>&amp;pass=<strong>password</strong>&amp;key=<strong>key</strong></p>
  
  <p>in to the web browser, with the username, password and key specified then the cron.php is triggered.  </p>
  
  <p>But if I create a cron entry via the CPanel and define the command as:</p>
  
  <p><strong>/usr/local/bin/php</strong> /home/username/domain/sites/all/modules/civicrm/bin/cron.php?name=<strong>username</strong>&amp;pass=<strong>password</strong>&amp;key=<strong>key</strong></p>
  
  <p>then the cron job is not triggered.</p>
  
  <p>If i try:</p>
  
  <p><strong>/usr/bin/wget</strong> <a href="https://domain/sites/all/modules/civicrm/bin/cron.php?name=" rel="nofollow noreferrer">https://domain/sites/all/modules/civicrm/bin/cron.php?name=</a><strong>username</strong>&amp;pass=<strong>password</strong>&amp;key=<strong>key</strong></p>
  
  <p>then the cron job is equally not triggered.</p>
  
  <p>Any ideas what the issue might be?  Or what else i could try to get it to run?</p>
  
  <p>At the moment I do not have access to server logs so can't see what is causing the issue.</p>
  
Tags: <cron-job>
Title: Running cron job CiviCRM on Drupal in the CPanel
ThreadText: # Running cron job CiviCRM on Drupal in the CPanel
  
  (Asked by: username_0 on 2018-07-23)
  
  I am trying to configure the CiviCRM file "sites/all/modules/civicrm/bin/cron.php" to be run as a cron job. If I paste the url:
  
  https:// domain.com/sites/all/modules/civicrm/bin/cron.php?name=**username**&pass=**password**&key=**key**
  
  in to the web browser, with the username, password and key specified then the cron.php is triggered.
  
  But if I create a cron entry via the CPanel and define the command as:
  
  **/usr/local/bin/php** /home/username/domain/sites/all/modules/civicrm/bin/cron.php?name=**username**&pass=**password**&key=**key**
  
  then the cron job is not triggered.
  
  If i try:
  
  **/usr/bin/wget** <https://domain/sites/all/modules/civicrm/bin/cron.php?name=>**username**&pass=**password**&key=**key**
  
  then the cron job is equally not triggered.
  
  Any ideas what the issue might be? Or what else i could try to get it to run?
  
  At the moment I do not have access to server logs so can't see what is causing the issue.
  
  **Tags:** cron-job
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2018-07-23. Score: 1
  
  I appear to have resolved the issue with the help of the thread at [Cron job with shared hosting CPanel](https://civicrm.stackexchange.com/questions/9130/cron-job-with-shared-hosting-cpanel?rq=1)
  
  The issue was related to missing backslashes after the username and the password.
  
  /usr/bin/wget <https://domain/sites/all/modules/civicrm/bin/cron.php?name=username>\&pass=password\&key=key
  
  
  ---
  
  