Jump to content

Cron WHMCS 6.x


erwin123

Recommended Posts

I upgraded my WHMCS to 6.1 and ever since I receive each morning an email:

 

-------------

This cron file was invoked from a legacy filepath.

WHMCS currently provides backwards compatibility for legacy paths so that your scheduled cron tasks will continue to invoke a valid WHMCS cron file.

It is recommended however that you update the cron task command on your server at your earliest convenience.

For more information, please refer to

http://docs.whmcs.com/Cron_Tasks#Legacy_Cron_File_Locations

------------

 

I've read the documentation but still its not quite clear what it is about and what changed.

Is it about moving my current crons to a new location?

Are old cron files replaced by new cronfiles on a new location?

 

Sorry, must be because I'm not native english or because I'm just slow ;)

 

My current crons:

 

-----------------

Once a day php -q /path/site/cron.php

every five hours php -q /path/site/crons/domainsync.php

every two minutes php -q /path/site/pop.php

----------------

 

The automation settings tell me to add a cron:

php -q /path/site/crons/cron.php

 

Now what do I need to change exactly?

Just add this single cron?

Or remove other crons?

Move crons to a different location?

 

Thanks in advance!

Link to comment
Share on other sites

since WHMCS v6 all cron related files can be find inside the same folder "crons" instead of the "admin" folder, you can move this folder to any path and link it with your WHMCS from configuration.php, and you will need to replace the old cron job commands to use the new path of (cron.php, pop.php, domainsync.php, etc).

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