pdstein Posted September 20, 2015 Share Posted September 20, 2015 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! 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted September 21, 2015 Share Posted September 21, 2015 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 0 Quote Link to comment Share on other sites More sharing options...
pdstein Posted September 21, 2015 Author Share Posted September 21, 2015 you can set your email inside cron job page in cPanelyou 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. :-( 0 Quote Link to comment Share on other sites More sharing options...
plusplushosting Posted September 22, 2015 Share Posted September 22, 2015 Do you have any discontinued server in active status? I had this problem before and was thecause the cron wasnt completing due to i had old servers in Active status, simply change it do disabled if this is the case. good luck! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.