mlsto Posted July 28, 2014 Report Share Posted July 28, 2014 Hello I notice since upgrading that my cron jobs stop working. I used to run throught GET as the other way never worked but now GET is not working but when I click manually it works. This is what I have setup: GET -t 15m 'http://www.domain.com/clients/cron?cron_key=123456' Also seeing this after manually running Cron "Invoices have not been automatically created via cron in the past 24 hours." Any help on this would be greatly appreciated. Thank you in advance Quote Link to comment Share on other sites More sharing options...
0 Michael Posted July 28, 2014 Report Share Posted July 28, 2014 It worked perfectly, thank you so much, seems all I needed to add was local. Wow this was a headache for so long. Thank you again, much appreciation. You're welcome . Quote Link to comment Share on other sites More sharing options...
0 Michael Posted July 28, 2014 Report Share Posted July 28, 2014 What control panel are you using as we recommend using the PHP Cron and it's recommended to run the cron every 5 minutes. Quote Link to comment Share on other sites More sharing options...
0 mlsto Posted July 28, 2014 Author Report Share Posted July 28, 2014 Thank you for getting back. When you say control panel do you mean my hosting panel? If hosting it is cpanel. I have tried the URL in the automation settings and it does not work, I have tried the normal settings still not working, GET was the only one working, what is PHP Cron, cPanel has a cron job in it. Thank you. Quote Link to comment Share on other sites More sharing options...
0 Michael Posted July 28, 2014 Report Share Posted July 28, 2014 Thank you for getting back. When you say control panel do you mean my hosting panel? If hosting it is cpanel. I have tried the URL in the automation settings and it does not work, I have tried the normal settings still not working, GET was the only one working, what is PHP Cron, cPanel has a cron job in it. Thank you. on cPanel please use the following: Try: /usr/local/bin/php /home/username/public_html/billing/index.php cron Instead of /usr/bin/php /home/username/public_html/billing/index.php cron mlsto 1 Quote Link to comment Share on other sites More sharing options...
0 mlsto Posted July 28, 2014 Author Report Share Posted July 28, 2014 It worked perfectly, thank you so much, seems all I needed to add was local. Wow this was a headache for so long. Thank you again, much appreciation. Michael 1 Quote Link to comment Share on other sites More sharing options...
0 wfitg Posted August 22, 2014 Report Share Posted August 22, 2014 Where in the URL does the key go? < http://www.domain.com/blesta-folder/cron?cron_key=123456']http://www.domain.com/blesta-folder/cron? cron_key=123456' the back end suggests: /usr/bin/php /home/wfitg/public_html/backend/index.php cron > using cpanel x3 Quote Link to comment Share on other sites More sharing options...
0 Michael Posted August 22, 2014 Report Share Posted August 22, 2014 Where in the URL does the key go? < http://www.domain.com/blesta-folder/cron?cron_key=123456']http://www.domain.com/blesta-folder/cron? cron_key=123456' the back end suggests: /usr/bin/php /home/wfitg/public_html/backend/index.php cron > using cpanel x3 You said it there. domain.com/path/to/blesta/cron/?cron_key=YOURCRONKEY If your doing it manually you need the cron key this ensures no-one else can run the cron (Can be exploitable if they could) The cPanel cron command you need that if you have suPHP. Some require this cron command: /usr/local/bin/php /home/wfitg/public_html/backend/index.php cron Quote Link to comment Share on other sites More sharing options...
0 wfitg Posted August 22, 2014 Report Share Posted August 22, 2014 Can I enter this in the cpanel cron? Or does Blesta run cron? So far blesta has not run cron automatically, so I assume I have to add a cron in cpanel. So in my case all I should need to add to cpanel cron is: < /usr/bin/php /home/wfitg/public_html/backend/index.php cron (with no key?) > Is that correct? Thanks for the reminder about the key. I will change it. Quote Link to comment Share on other sites More sharing options...
0 Michael Posted August 22, 2014 Report Share Posted August 22, 2014 Can I enter this in the cpanel cron? Or does Blesta run cron? So far blesta has not run cron automatically, so I assume I have to add a cron in cpanel. So in my case all I should need to add to cpanel cron is: < /usr/bin/php /home/wfitg/public_html/backend/index.php cron (with no key?) > Is that correct? Thanks for the reminder about the key. I will change it. Yes and if it doesn't work edit it and change it to /usr/local/bin/php wfitg 1 Quote Link to comment Share on other sites More sharing options...
0 wfitg Posted August 22, 2014 Report Share Posted August 22, 2014 Yes and if it doesn't work edit it and change it to /usr/local/bin/php ok, i get it. The key is used only when the cron is run manually in a web browser. thanks! Michael 1 Quote Link to comment Share on other sites More sharing options...
0 wfitg Posted August 23, 2014 Report Share Posted August 23, 2014 cron works fine. Thanks mate. Quote Link to comment Share on other sites More sharing options...
0 Michael Posted August 23, 2014 Report Share Posted August 23, 2014 cron works fine. Thanks mate. You're welcome mate Quote Link to comment Share on other sites More sharing options...
Question
mlsto
Hello
I notice since upgrading that my cron jobs stop working. I used to run throught GET as the other way never worked but now GET is not working but when I click manually it works.
This is what I have setup: GET -t 15m 'http://www.domain.com/clients/cron?cron_key=123456'
Also seeing this after manually running Cron "Invoices have not been automatically created via cron in the past 24 hours."
Any help on this would be greatly appreciated.
Thank you in advance
Link to comment
Share on other sites
12 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.