snake Posted July 15, 2014 Report Share Posted July 15, 2014 I need to run the cron job from URL as am on windows, but cannot find this info anywhere. Can anyone tell me what the URL is ? Quote Link to comment Share on other sites More sharing options...
0 Michael Posted July 15, 2014 Report Share Posted July 15, 2014 I need to run the cron job from URL as am on windows, but cannot find this info anywhere. Can anyone tell me what the URL is ? Settings > System > Automation > Cron job url. remove the */5 * * * * Quote Link to comment Share on other sites More sharing options...
0 Paul Posted July 15, 2014 Report Share Posted July 15, 2014 Here are the docs on setting up a cron job - http://docs.blesta.com/display/user/Installing+Blesta#InstallingBlesta-4.SetupaCronJob If you plan to run via a GET request, you'll be interested in this: the cron may be run by accessing https://www.yourdomain.com/blesta/install/path/cron/?cron_key=CRONKEY where CRONKEY is your cron key as displayed under "Update Cron Key" Quote Link to comment Share on other sites More sharing options...
0 snake Posted July 15, 2014 Author Report Share Posted July 15, 2014 Settings > System > Automation > Cron job url. remove the */5 * * * * which gives /usr/bin/php D:\HostingSpaces\russmichaels\cfmldeveloper.com\wwwroot\billing\index.php cron which is not a URL, so cannot be run from the browser. I have tried using mydomain.com/billing/index.php?cron this does not work either Quote Link to comment Share on other sites More sharing options...
0 snake Posted July 15, 2014 Author Report Share Posted July 15, 2014 Here are the docs on setting up a cron job - http://docs.blesta.com/display/user/Installing+Blesta#InstallingBlesta-4.SetupaCronJob If you plan to run via a GET request, you'll be interested in this: I have already read and tried this as well Paul before posting, but that uRL is invalid (https://www.yourdomain.com/blesta/install/path/cron/?cron_key=CRONKEY) as there is no cron folder, thus just gives a 404 Quote Link to comment Share on other sites More sharing options...
0 Blesta Addons Posted July 15, 2014 Report Share Posted July 15, 2014 I have already read and tried this as well Paul before posting, but that uRL is invalid (https://www.yourdomain.com/blesta/install/path/cron/?cron_key=CRONKEY) as there is no cron folder, thus just gives a 404 you should change it to your blesta url and your cron key Quote Link to comment Share on other sites More sharing options...
0 snake Posted July 15, 2014 Author Report Share Posted July 15, 2014 you should change it to your blesta url and your cron key the URL given was just an example URL which I re-quoted from Pauls post, I did of course use the url to my own site (DOH) but as there is no cron folder, the url doesn't work. see here: http://screencast.com/t/pVHrpnYo and yes I have also checked the ZIP, there is no cron folder there either. Quote Link to comment Share on other sites More sharing options...
0 Blesta Addons Posted July 16, 2014 Report Share Posted July 16, 2014 there are no cron folder in blesta package Quote Link to comment Share on other sites More sharing options...
0 Joseph H Posted July 16, 2014 Report Share Posted July 16, 2014 Having the same Issue with setting up cron. I have tried editing the path. But never worked for me. I always have to run It manually Quote Link to comment Share on other sites More sharing options...
0 Michael Posted July 16, 2014 Report Share Posted July 16, 2014 Having the same Issue with setting up cron. I have tried editing the path. But never worked for me. I always have to run It manually We fixed this cron issue so I thought I'd update to see if your doing the right http://domain.com/index.php cron (Include the cron at the end) Quote Link to comment Share on other sites More sharing options...
0 snake Posted July 17, 2014 Author Report Share Posted July 17, 2014 there are no cron folder in blesta package I think that much was clear from my screenshot. But if you read the rest of the thread, others think there is a cron folder and so do the docs. Quote Link to comment Share on other sites More sharing options...
0 snake Posted July 17, 2014 Author Report Share Posted July 17, 2014 We fixed this cron issue so I thought I'd update to see if your doing the right http://domain.com/index.php cron (Include the cron at the end) you cannot have spaces in url's so that gets rewritten by the browser as http://www.domain.com/index.php%20cron which results in a 404 as it is an invalid url, as there is no such file as index.php%20cron Quote Link to comment Share on other sites More sharing options...
0 Michael Posted July 17, 2014 Report Share Posted July 17, 2014 you cannot have spaces in url's so that gets rewritten by the browser as http://www.domain.com/index.php%20cron which results in a 404 as it is an invalid url, as there is no such file as index.php%20cron Not for the url but for the cron job task url on most control panels. You want what Paul said above: https://www.yourdomain.com/blesta/install/path/cron/?cron_key=CRONKEY EG for me: https://www.licensecart.com/billing/cron/?cron_key=3iOPp82T (Changed cron key just incase someone tries it :] ) Quote Link to comment Share on other sites More sharing options...
0 snake Posted July 17, 2014 Author Report Share Posted July 17, 2014 Not for the url but for the cron job task url on most control panels. You want what Paul said above: https://www.yourdomain.com/blesta/install/path/cron/?cron_key=CRONKEY EG for me: https://www.licensecart.com/billing/cron/?cron_key=3iOPp82T (Changed cron key just incase someone tries it :] ) as I said above, this URL fails because there is no such file or folder, please see the screenshot I provided, there is no CRON folder in the blesta installation. Quote Link to comment Share on other sites More sharing options...
0 Michael Posted July 17, 2014 Report Share Posted July 17, 2014 as I said above, this URL fails because there is no such file or folder, please see the screenshot I provided, there is no CRON folder in the blesta installation. Not sure what Windows uses but Blesta relies on .htaccess there's no folders at all on Blesta except for the plugins / modules / files for Blesta to work. Routes.php (config/routes.php) controls the admin / client area urls. routes.php controls how the order pages are shown, plugins shown, etc... It's like me looking on Blesta for a burger. Blesta doesn't do burgers do I'd be there all day looking for it. Quote Link to comment Share on other sites More sharing options...
0 snake Posted July 17, 2014 Author Report Share Posted July 17, 2014 If it relies on .htaccess then this means it must be doing some url rewriting then Obviously no-one has mentioned that requirement until now, and I have not seen it mentioned in the docs so far, so of course I had not way to know this. So your burger anaology is actually wrong because it would be more like "blesta doesn't do burgers, but it can pretend to do burgers with its burger simulator", which is essentually what the .htaccess is doing with url rewriting, it is pretending that a cron folder exists by redirecting the request somewhere else. Quote Link to comment Share on other sites More sharing options...
0 Michael Posted July 17, 2014 Report Share Posted July 17, 2014 If it relies on .htaccess then this means it must be doing some url rewriting then Obviously no-one has mentioned that requirement until now, and I have not seen it mentioned in the docs so far, so of course I had not way to know this. So your burger anaology is actually wrong because it would be more like "blesta doesn't do burgers, but it can pretend to do burgers with its burger simulator", which is essentually what the .htaccess is doing with url rewriting, it is pretending that a cron folder exists by redirecting the request somewhere else. Sorry yeah it changes urls like you can remove .php from urls on my site you will be taken to /products that would be /products.php without .htaccess and rewrite code. Well Blesta does work without .htaccess but your urls will be: blesta.com/account/index.php/cron/?cron=CronKey Quote Link to comment Share on other sites More sharing options...
0 Paul Posted July 17, 2014 Report Share Posted July 17, 2014 .htaccess and mod_rewrite are not required. Without it, everything just begins with index.php. It's not a problem. You come up with some mind boggling analogies Mike, lol. Michael 1 Quote Link to comment Share on other sites More sharing options...
0 snake Posted July 17, 2014 Author Report Share Posted July 17, 2014 .htaccess and mod_rewrite are not required. Without it, everything just begins with index.php. It's not a problem. You come up with some mind boggling analogies Mike, lol. so what would the non rewritten URL be then ? I have tried http://www.cfmldeveloper.com/index.php/cron but that doesn't work either Quote Link to comment Share on other sites More sharing options...
0 Michael Posted July 17, 2014 Report Share Posted July 17, 2014 .htaccess and mod_rewrite are not required. Without it, everything just begins with index.php. It's not a problem. You come up with some mind boggling analogies Mike, lol. I do haha I need to think mate so what would the non rewritten URL be then ? I have tried http://www.cfmldeveloper.com/index.php/cron but that doesn't work either some reason that's not a Blesta folder mate. where's Blesta installed? Quote Link to comment Share on other sites More sharing options...
0 snake Posted July 17, 2014 Author Report Share Posted July 17, 2014 sorry that was a typo, the real url ishttp://www.cfmldeveloper.com/billing/index.php/cronI don't get any errors but the cron doesn't run Quote Link to comment Share on other sites More sharing options...
0 Paul Posted July 17, 2014 Report Share Posted July 17, 2014 sorry that was a typo, the real url is http://www.cfmldeveloper.com/billing/index.php/cron I don't get any errors but the cron doesn't run You MUST set a cron key under Settings > System > Automation. Then call it like so.. http://www.cfmldeveloper.com/billing/index.php/cron/?cron_key=CRONKEY WHERE CRONKEY is your cron key as displayed under "Updated Cron Key". Michael 1 Quote Link to comment Share on other sites More sharing options...
0 Michael Posted July 17, 2014 Report Share Posted July 17, 2014 You MUST set a cron key under Settings > System > Automation. Then call it like so.. http://www.cfmldeveloper.com/billing/index.php/cron/?cron_key=CRONKEY WHERE CRONKEY is your cron key as displayed under "Updated Cron Key". Like this video: http://screencast.com/t/1hJ1Q6Ql3 this helps lol. Quote Link to comment Share on other sites More sharing options...
0 snake Posted July 17, 2014 Author Report Share Posted July 17, 2014 Thanks Paul, looks like I finally got it working, I was sure I had already tried that URL yesterday I guess maybe I had made a typo and used cronkey=CRONKEY instead of cron_key=cronkey but it is working now, thanks for your assistance. Michael 1 Quote Link to comment Share on other sites More sharing options...
Question
snake
I need to run the cron job from URL as am on windows, but cannot find this info anywhere.
Can anyone tell me what the URL is ?
Link to comment
Share on other sites
23 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.