Jump to content

renew invoice auto generate issue - cron job issue


Recommended Posts

i  want make sure it will  auto send the renew invoice to my client.

i saw a messge  inside "setups" >>"Automation settnigs"  :

" The cron command below is provided for convenience. You should configure a cron task to run every 5 minutes using the command provided below within your server cron utility or web hosting control panel."

Cron Command */5 * * * *
/usr/bin/php -q /home/linkforecom/whmcsdata5685/crons/cron.php

 

I didn't  amend my cron job setting on server (everything is default setting) ,

my question is
1) the defaut setting currently set on the server is how many mins to cron ?
2) if i did not set it into 5 mins, what happen, will the renew invoice will not be auto sent?
3) i open the document of cron.php, i don't know put the "Cron Command */5 * * * *" to which line, can you assist.

thanks all 

 

 

Link to comment
Share on other sites

On 05/06/2020 at 09:59, ilovechinahk said:

1) the default setting currently set on the server is how many mins to cron ?

I wouldn't consider there to be a default setting for a cron job - when you setup a cron, you can define how often it runs.

On 05/06/2020 at 09:59, ilovechinahk said:

2) if i did not set it into 5 mins, what happen, will the renew invoice will not be auto sent?

renewals invoices are only sent once per day anyway, so they should be sent when the cron next runs after the "time of Day" setting in the Automation Settings.

https://docs.whmcs.com/Automation_Settings#Time_of_Day

you don't really need to set it to 5 mins if you don't want to - very few features need to be checked that often, and especially if you aren't using them.

On 05/06/2020 at 09:59, ilovechinahk said:

3) i open the document of cron.php, i don't know put the "Cron Command */5 * * * *" to which line, can you assist.

the docs page, and the video below, should help you with setting up a cron job - for some reason, the video on the docs page has been marked private.

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
Reply to this topic...

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated