Jump to content
  • 0

What Is The Cron Job Url


snake

Question

23 answers to this question

Recommended Posts

  • 0

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"

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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 :] )
Link to comment
Share on other sites

  • 0

 

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.

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

.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 :P

 

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?

Link to comment
Share on other sites

  • 0

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".

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...