Jump to content
  • 0

Cron Job Not Working Any More


mlsto

Question

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

  • 0

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.

Link to comment
Share on other sites

  • 0

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

  • 0

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

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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

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