Jump to content

WHMCS cron job not running (or completed running?)


pdstein

Recommended Posts

I have another problem with WHMCS 6.

 

WHMCS' cron.php does not run via CPanel's Cron Job!

 

I have correctly updated the config/configuration files for the crons for the WHMCS 6. Also - If I accessed the cron.php via the browser - the WHMCS cron is able to successfully execute. (I know, cron.php should not be placed in a "public" directory, but just doing this for testing).

 

However, cron.php does not run (or maybe was not able to completely run) when configured from CPanel's cron. Cron job command is this:

php -q /home/myocc/public_html/crons/cron.php

 

I set an email address so an email will be sent when the cron runs - but strangely, I did NOT receive any emails. So I suspected that the cron did run - but just did not finish so email was not sent.

 

Note also that I created a TEST PHP script that will send a test email within the same directory as cron.php and the script ran successfully and email was sent.

 

Any ideas guys why?

 

Thanks again guys in advance!

Link to comment
Share on other sites

you can set your email inside cron job page in cPanel

you may check activity log to see if the cron run and complete or it has any errors: Admin Area -> Utilities -> Logs -> Activity Log

 

hi sentq - yeah, i have set my email address in the cron job page in cPanel. however - it is NOT sending, so just wondering if the cron.php did NOT trigger in the first place. or probably was triggered, but did NOT complete.

 

checked WHMCS' activity log too - but no anomalies there. :-(

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