Announcement

Collapse
No announcement yet.

CRON Shared Hosting

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CRON Shared Hosting

    I'm setting up EspoCRM in a client's shared host IDCSoft. For the most part, things are working.

    On CRON IDCSoft said it can't be run directly, and they put it in a wrapper

    So from this

    * * * * * cd /home/lookahead/www/www; /usr/local/php74/bin/php -f cron.php > /dev/null 2>&1

    to this

    #!/bin/bash
    cd /home/lookahead/www/www; /usr/local/php74/bin/php -f cron.php > /dev/null 2>&1

    In the CLI, if I go to www/www and run
    /usr/local/php74/bin/php -f cron.php
    the prompt is returned in about 1 second

    Looking at the jobs screen, it appears to have run. But emails are not being retrieved. (Pending)

    I can send emails, and on the private email box, Test Connection reports Connection OK.

    Using webmail, I can see messages in the box.

    No log or errors for today in /data/logs

    Thoughts as to what to try next?

    Thanks,
    Russ











  • #2
    All scheduled jobs are adding to a queue every time when cron runs. When your cron runs not often (e.g. every 15th minutes) all the jobs cannot be executed.
    Try to configure your cron to run every minute.
    Job Offers and Requests

    Comment


    • #3
      Tarasm.

      I think you are on the right track with this. I removed what I hope were unnecessary jobs and ran cron manually and the emails came in.

      Because this is shared hosting, I'm limited to once every 15 minutes on cron.

      I nice feature on the email screen would be a send/receive button to overcome hosts where cron is limited.

      Thanks!
      Russ

      Comment

      Working...
      X