Saturday, April 26, 2014

WHMCS Cronjob Not Running On Ubuntu

My issue was the user with the cronjob did not have access to run the cronjob php file. So, I needed to make the new cronjob for the correct user.

Solution:

  1. Find out the owner of your apache process (usually www-data).
  2. Look at the top of the "Automation Settings" page in your WHMCS admin area. It should say something like: php -q /var/www/whmcs/admin/cron.php (keep this handy for step 4)
  3. In terminal run: crontab -e -u www-data
  4. Ensure you have a line that says:
    0   6   *   *   *    php -q /var/www/whmcs/admin/cron.php (note: this should be the same file path you got for your own install in step 2)



No comments:

Post a Comment