Answers.Body: <p>What you have said you have done is not super clear, but I will assume you meant this to be two lines in a crontab file. I cannot speak to how you set that in cpanel, but I will address the crontab part.</p>
  <p>You are setting the execution shell deliberately by setting SHELL to bash. This is probably fine, but you should omit the quotes. It's also probably not relevant as you are immediately calling php instead.</p>
  <p>The second line (starting */5) has too many values in it. There should only be 5 before the command you want to execute.
  Try this:</p>
  <pre><code>SHELL=/bin/bash 
  */5 * * * *  /usr/local/bin/php /home/myname/public_html/wp-content/plugins/civicrm/civicrm/bin/cron.php
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-05-06T22:30:03.420Z
Answers.LastActivityDate: 2024-05-06T22:30:03.420Z
Answers.UserDisplayName: kapn
Body: <p>I can't get crontab to work. I entered these parameters from cpanel, where do I go wrong?</p>
  <p>SHELL=&quot;/bin/bash&quot;
  */5 * * * * * /usr/local/bin/php /home/myname/public_html/wp-content/plugins/civicrm/civicrm/bin/cron.php</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-05-02T08:53:01.990Z
Comments.Text: Does this method work for you? https://docs.civicrm.org/sysadmin/en/latest/setup/jobs/#wp-cli
Comments.UserDisplayName: Christian Wach
Tags: <wordpress><error><cron><cron-job><dashboard>
Title: help me with cron configuration
ThreadText: # help me with cron configuration
  
  (Asked by: username_0 on 2024-04-30)
  
  I can't get crontab to work. I entered these parameters from cpanel, where do I go wrong?
  
  SHELL="/bin/bash"
  \*/5 \* \* \* \* \* /usr/local/bin/php /home/myname/public\_html/wp-content/plugins/civicrm/civicrm/bin/cron.php
  
  **Tags:** wordpress, error, cron, cron-job, dashboard
  
  > **Comments:**
  > **username_1**: Does this method work for you? https://docs.civicrm.org/sysadmin/en/latest/setup/jobs/#wp-cli  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2024-05-06. Score: 1
  
  What you have said you have done is not super clear, but I will assume you meant this to be two lines in a crontab file. I cannot speak to how you set that in cpanel, but I will address the crontab part.
  
  You are setting the execution shell deliberately by setting SHELL to bash. This is probably fine, but you should omit the quotes. It's also probably not relevant as you are immediately calling php instead.
  
  The second line (starting \*/5) has too many values in it. There should only be 5 before the command you want to execute.
  Try this:
  
  ```
  SHELL=/bin/bash 
  */5 * * * *  /usr/local/bin/php /home/myname/public_html/wp-content/plugins/civicrm/civicrm/bin/cron.php
  
  ```
  
  
  ---
  
  