Hassan Waqar
Hassan Waqar

Reputation: 11

Cron Jobs Not working- Sugar CRM

I have set up cron jobs for my SugarCRM as requested by Sugar:

Sugar CRM Scheduler Screenshot

Cpanel Screenshot

But when we look at last runs it does not seem to work or show anything.

I am using this for email reminders, mail check and also scheduled campaign run.

Upvotes: 1

Views: 686

Answers (1)

Jay
Jay

Reputation: 3950

  • Is command-line php on your system installed and the executable in whatever PATH that cronjob is using?
    If not make sure to specify the full path, e.g. /usr/bin/php or /usr/local/bin/php are common. Also based on your operating system/distribution the php command line executable may have a different name, e.g. php5.
  • Make sure to use the web-process user's crontab or execute php with sudo -u webprocessusername, so that the cronjob will be executed with the correct permissions.
    Running the cronjob as different user or even root is usually not a good idea.
  • To see potential error messages replace > /dev/null e.g. with > /tmp/sugarcron.log or > /path/to/webfolder/sugarcron.txt and check the file after a minute.

Further info on the SugarCRM Knowledge Base:

Upvotes: 2

Related Questions