Answers.Body: <p>Have you resolved your issue on Hostinger? I'm facing the same challenge.</p>
  <p>After creating my PHP type cron job in Hostinger, I added a simple echo command at the very beginning of CiviCRM's cron.php and saw it in the output results, therefore I can see the file is being called by cron. However, if I move my echo command below the first line <code>require_once '../civicrm.config.php';</code>
  I don't see my echo any longer. That file does exist in the parent folder so not sure where it's failing but I'm still digging.</p>
  <h2>UPDATE (Solved!)</h2>
  <p>TL;DR - If you have WordFence, it may just be as simple as turning off WordFence's reCAPTCHA on <em>the login and user registration pages</em>.</p>
  <p>After what seems like an eternity of troubleshooting and hundreds of attempts using various commands, here's what I found that resolved my issue, skipping the gritty details of my troubleshooting steps...</p>
  <ol>
  <li>I first created a new WordPress subscriber user making sure the password was super long and without any of the reserved characters as outlined on <a href="https://docs.civicrm.org/sysadmin/en/latest/setup/jobs/#choosing-a-cms-user" rel="nofollow noreferrer">CiviCRM's page</a>. To keep things a little more secure, there are other special characters you can use in the password.</li>
  <li>I then replaced my PHP cron command with a wget command, passing in username/password/site_key variables with the command similar to the one in your first screenshot. I grabbed my sitekey from <code>wp-content/uploads/civicrm/civicrm.settings.php</code>.</li>
  </ol>
  <p>Feel free to copy/paste the command below replacing YOURSITE.COM / USERNAME / PASSWORD / SITEKEY with your own values:</p>
  <pre><code>wget -O - -q -t 1 'https://YOURSITE.COM/wp-content/plugins/civicrm/civicrm/bin/cron.php?name=USERNAME&amp;pass=PASSWORD&amp;key=SITEKEY'
  </code></pre>
  <ol start="3">
  <li>I then found what might be the actual problem. Wordfence reCAPTCHA was preventing me from running the command. Once I turned it off, my scheduled civi cron job began running without any issues. So, try unchecking <i>Enable reCAPTCHA on the login and user registration pages</i> found under the Login Security section.</li>
  </ol>
  <p>I'm still going to play with this until I'm 100% satisfied because this solution only has me about 90% satisfied... I'll need to sleep on this some but at this point, it's working.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-10-29T20:15:25.783Z
Answers.Text: unclear to me whether to let this stay as an Answer or convert to a Comment. @bloodstripe - i will leave this as is in case you get some breakthrough that means you can edit it to be an Answer (and understand you may not have the credits currently to comment)
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-10-31T11:56:43.327Z
Answers.Text: That's exactly it, I'm too new and don't have enough rep to comment. I'll be sure to edit my answer once I figure it out. Thanks for the understanding.
Answers.UserDisplayName: Bloodstripe
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-10-31T17:48:05.083Z
Answers.Text: You will add to your reps (I think) if you post your issue as a separate issue and reference this one.
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-10-28T01:46:37.140Z
Answers.LastActivityDate: 2023-11-06T03:48:26.923Z
Answers.LastEditDate: 2023-11-06T03:48:26.923Z
Answers.UserDisplayName: Bloodstripe
Body: <p>I have so far been unsuccessful in setting up a cron in Hostinger. These are the three options I've set up so far. I think the path in the second one is incorrect but I was expecting either the first or third one should work?</p>
  <p><a href="https://i.sstatic.net/uinLa.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/uinLa.png" alt="Screenshot of cron jobs" /></a></p>
  <p>I also tried putting the command in a file that is called by the cron, but it didn't like the cv.phar or drush commands. The only error messages I'm getting now are time zone notices (e.g. like <a href="https://civicrm.stackexchange.com/questions/44766/how-can-i-resolve-what-seems-to-be-a-timezone-related-error">the timezone error reported here</a>)</p>
  <p>Has anyone successfully set up a cron in Hostinger (shared hosting)?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-05-05T09:37:07.883Z
Comments.Text: I've not used Hostinger but I'd try `cv` first
Comments.UserDisplayName: Aidan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-05-05T12:31:57.287Z
Comments.Text: I don't think I've got permission to install cv - I've tried but I keep getting permission denied.
Comments.UserDisplayName: Rose Lanigan
Tags: <cron><hosting>
Title: Setting up the cron on Hostinger
ThreadText: # Setting up the cron on Hostinger
  
  (Asked by: username_0 on 2023-05-04)
  
  I have so far been unsuccessful in setting up a cron in Hostinger. These are the three options I've set up so far. I think the path in the second one is incorrect but I was expecting either the first or third one should work?
  
  [![Screenshot of cron jobs](https://i.sstatic.net/uinLa.png)](https://i.sstatic.net/uinLa.png)
  
  I also tried putting the command in a file that is called by the cron, but it didn't like the cv.phar or drush commands. The only error messages I'm getting now are time zone notices (e.g. like [the timezone error reported here](https://civicrm.stackexchange.com/questions/44766/how-can-i-resolve-what-seems-to-be-a-timezone-related-error))
  
  Has anyone successfully set up a cron in Hostinger (shared hosting)?
  
  **Tags:** cron, hosting
  
  > **Comments:**
  > **username_1**: I've not used Hostinger but I'd try `cv` first  
  > **username_0**: I don't think I've got permission to install cv - I've tried but I keep getting permission denied.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2023-10-28. Score: 1
  
  Have you resolved your issue on Hostinger? I'm facing the same challenge.
  After creating my PHP type cron job in Hostinger, I added a simple echo command at the very beginning of CiviCRM's cron.php and saw it in the output results, therefore I can see the file is being called by cron. However, if I move my echo command below the first line require_once '../civicrm.config.php';
  I don't see my echo any longer. That file does exist in the parent folder so not sure where it's failing but I'm still digging.
  UPDATE (Solved!)
  TL;DR - If you have WordFence, it may just be as simple as turning off WordFence's reCAPTCHA on the login and user registration pages.
  After what seems like an eternity of troubleshooting and hundreds of attempts using various commands, here's what I found that resolved my issue, skipping the gritty details of my troubleshooting steps...
  
  I first created a new WordPress subscriber user making sure the password was super long and without any of the reserved characters as outlined on CiviCRM's page. To keep things a little more secure, there are other special characters you can use in the password.
  I then replaced my PHP cron command with a wget command, passing in username/password/site_key variables with the command similar to the one in your first screenshot. I grabbed my sitekey from wp-content/uploads/civicrm/civicrm.settings.php.
  
  Feel free to copy/paste the command below replacing YOURSITE.COM / USERNAME / PASSWORD / SITEKEY with your own values:
  wget -O - -q -t 1 'https://YOURSITE.COM/wp-content/plugins/civicrm/civicrm/bin/cron.php?name=USERNAME&pass=PASSWORD&key=SITEKEY'
  
  
  I then found what might be the actual problem. Wordfence reCAPTCHA was preventing me from running the command. Once I turned it off, my scheduled civi cron job began running without any issues. So, try unchecking Enable reCAPTCHA on the login and user registration pages found under the Login Security section.
  
  I'm still going to play with this until I'm 100% satisfied because this solution only has me about 90% satisfied... I'll need to sleep on this some but at this point, it's working.
  
  > **Comments:**
  > **username_3**: unclear to me whether to let this stay as an Answer or convert to a Comment. @bloodstripe - i will leave this as is in case you get some breakthrough that means you can edit it to be an Answer (and understand you may not have the credits currently to comment)  
  > **username_2**: That's exactly it, I'm too new and don't have enough rep to comment. I'll be sure to edit my answer once I figure it out. Thanks for the understanding.  
  > **username_3**: You will add to your reps (I think) if you post your issue as a separate issue and reference this one.  
  
  ---
  
  