Crontab Not Working with mails

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wmoghes
    Member
    • Aug 2017
    • 30

    Crontab Not Working with mails

    Hi,

    I hope if anyone can help me with this issue. I faced a several issues when trying to run Crontab for emails on Linux server All I do it is add the below line into the Crontab in (/etc/crontab)
    */1 * * * * /usr/bin/php -f /var/www/espocrm/cron.php > /dev/null 2>&1
    and then I opened "Scheduled Jobs" from Administration Menu and then I changed the status for "Send Email Notifications" into Active. That's it

    Is there any thing i have missed?
    Thanks in Advanced
  • tarasm
    Super Moderator
    • Mar 2014
    • 573

    #2
    Did you set a cron job under web-server user? For ubuntu is "www-data".

    Check, if you can run a cron script in a terminal via SSH:
    Code:
    sudo -u www-data /usr/bin/php -f /var/www/espocrm/cron.php
    Job Offers and Requests

    Comment

    • VigneshChinnaiyan
      Member
      • Jan 2018
      • 61

      #3
      For lampp server on ubuntu, SSH code is : sudo -u www-data /opt/lampp/bin/php -f /opt/lampp/htdocs/espocrm/cron.php

      Comment

      Working...