Answers.Body: <p><strong>FIRST</strong>: Make sure you have the most updated version of WordPress, its entire suite of plugins and ditto for CiviCRM. Second, and perhaps before you execute the aforementioned, make sure you have a backup or your host does daily as it sounds like you are not running bare blades.</p>
  <p>If you have cPanel, simply set the cron up as follows:</p>
  <p>wget -O - -q -t 1 'https://www.NAME OF WEBSITE/wp-content/plugins/civicrm/civicrm/bin/cron.php?name=USERNAME&amp;pass=PASSWORD&amp;key=SITEKEY''</p>
  <p>I want to belabor a couple of things, my site is set up WITHOUT a WP directory, so thus, direct. Second, at the end there are TWO ' meaning '' not &quot;. I have mine run every 15 minutes, but you can set the time to whatever I suppose. Next, set up a user in the User section of WordPress as SUBSCRIBER. That way if it gets <em>hijacked</em> --- the UN/PW --- it is only a subscriber. Spin up the user in CiviCRM and voila! Remember, the username may be an email or a user name depending upon how you create it in <strong>WORDPRESS</strong>. Cook up a HUGE password. Usually, WordPress will recommend and if you run Chrome it will as well. I generally make a note of it and save it accordingly. Finally, if you are using MFA --- sends you a text or code or whatever --- a few other steps.</p>
  <p>Finally, protect everything with WordFence. It is free (do not pay for the paid version) and the best darn (would use a different word but don't want to get banned) security plugin I have found based on almost two decades. Clear cache if running a CDN, etc.</p>
  <p>I'm not in here a lot, but if you are within the US (because calls are free on Google Voice) I'll walk you through it. Took me 4 years to figure it out and is one of the <strong>BIGGEST DRAWBACKS OF CIVICRM</strong> I have found as the novice is left without clear and concise spelling out. I'll probably write an article about it next week on my site because it was literally like the Red Sea parting for me!</p>
  <p>Edit - you can add dev/null if you don't want the emails sent to you. If you want help let me know. And to check to make sure you have the path correct copy the https through the last character of the site key and simply toss it up in your browser and hit enter. If it only returns white, confirm that your Scheduled Jobs ticked off and grab a beer - or coffee depending upon persuasion!</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-13T00:18:27.923Z
Answers.LastActivityDate: 2023-03-13T00:26:40.060Z
Answers.LastEditDate: 2023-03-13T00:26:40.060Z
Answers.UserDisplayName: Paul Williams
Answers.Body: <p>If you are using crontab, check that the CRON jobs are running as the correct user.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-02T15:53:22.000Z
Answers.LastActivityDate: 2023-03-02T15:53:22.000Z
Answers.UserDisplayName: Hank
Body: <p>I use WordPress and CiviCRM.  Although the CRON jobs work when I manually run them, they aren't running automatically.
  As I am new to the system, I need some help to set this up, and I don't know where else to go.</p>
  <p>At the moment, I have to run them manually, and this isn't practical at all.</p>
  <p>I don't know how to set them up automatically and I use instahost which uses stackcp as a hosting provider.</p>
  <p>I don't get any error from Wordpress running automated tasks, just civi</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-03-02T09:04:53.320Z
Comments.Text: This can be awkward to get working, partly because there are so many ways to set it up.  You'll need to add more info about your setup for us to be able to help much. See https://docs.civicrm.org/sysadmin/en/latest/setup/jobs/  There are lots of similar questions on here which may help.
Comments.UserDisplayName: Aidan
Tags: <wordpress><cron>
Title: CRON not working on Civi wordpress
ThreadText: # CRON not working on Civi wordpress
  
  (Asked by: username_0 on 2023-03-01)
  
  I use WordPress and CiviCRM. Although the CRON jobs work when I manually run them, they aren't running automatically.
  As I am new to the system, I need some help to set this up, and I don't know where else to go.
  
  At the moment, I have to run them manually, and this isn't practical at all.
  
  I don't know how to set them up automatically and I use instahost which uses stackcp as a hosting provider.
  
  I don't get any error from Wordpress running automated tasks, just civi
  
  **Tags:** wordpress, cron
  
  > **Comments:**
  > **username_1**: This can be awkward to get working, partly because there are so many ways to set it up.  You'll need to add more info about your setup for us to be able to help much. See https://docs.civicrm.org/sysadmin/en/latest/setup/jobs/  There are lots of similar questions on here which may help.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2023-03-13. Score: 2 | Accepted answer
  
  **FIRST**: Make sure you have the most updated version of WordPress, its entire suite of plugins and ditto for CiviCRM. Second, and perhaps before you execute the aforementioned, make sure you have a backup or your host does daily as it sounds like you are not running bare blades.
  
  If you have cPanel, simply set the cron up as follows:
  
  wget -O - -q -t 1 'https://www.NAME OF WEBSITE/wp-content/plugins/civicrm/civicrm/bin/cron.php?name=USERNAME&pass=PASSWORD&key=SITEKEY''
  
  I want to belabor a couple of things, my site is set up WITHOUT a WP directory, so thus, direct. Second, at the end there are TWO ' meaning '' not ". I have mine run every 15 minutes, but you can set the time to whatever I suppose. Next, set up a user in the User section of WordPress as SUBSCRIBER. That way if it gets *hijacked* --- the UN/PW --- it is only a subscriber. Spin up the user in CiviCRM and voila! Remember, the username may be an email or a user name depending upon how you create it in **WORDPRESS**. Cook up a HUGE password. Usually, WordPress will recommend and if you run Chrome it will as well. I generally make a note of it and save it accordingly. Finally, if you are using MFA --- sends you a text or code or whatever --- a few other steps.
  
  Finally, protect everything with WordFence. It is free (do not pay for the paid version) and the best darn (would use a different word but don't want to get banned) security plugin I have found based on almost two decades. Clear cache if running a CDN, etc.
  
  I'm not in here a lot, but if you are within the US (because calls are free on Google Voice) I'll walk you through it. Took me 4 years to figure it out and is one of the **BIGGEST DRAWBACKS OF CIVICRM** I have found as the novice is left without clear and concise spelling out. I'll probably write an article about it next week on my site because it was literally like the Red Sea parting for me!
  
  Edit - you can add dev/null if you don't want the emails sent to you. If you want help let me know. And to check to make sure you have the path correct copy the https through the last character of the site key and simply toss it up in your browser and hit enter. If it only returns white, confirm that your Scheduled Jobs ticked off and grab a beer - or coffee depending upon persuasion!
  
  
  ---
  
  ### Answer by username_3 on 2023-03-02. Score: 1
  
  If you are using crontab, check that the CRON jobs are running as the correct user.
  
  
  ---
  
  