Unable to setup CRON using Plesk

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lesliefoster
    Junior Member
    • Jan 2021
    • 4

    Unable to setup CRON using Plesk

    Hi

    Newbie here. I have installed EspoCRM and it is working fine, but I have not been able to get the cron working in Plesk. Has anyone out there setup EspoCRM on a domain managed by Plesk that could share a screenshot of how they setup the cron?

    Thanks.....

    Les
  • item
    Active Community Member
    • Mar 2017
    • 1476

    #2
    Hello,
    i don't use Plesk
    https://support.plesk.com/hc/en-us/a...s/115003121073

    * * * * *
    /usr/bin/php -f /var/www/html/espocrm/cron.php > /dev/null 2>&1

    verify path (in bold above) for this :
    go in espocrm -> admin -> sheduledJobs : you see path there
    If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

    Comment

    • shalmaxb
      Senior Member
      • Mar 2015
      • 1602

      #3
      Hi, see my screenshot. Maybe your GUI might look a bit different, but I think it is understandable.

      Comment

      • lesliefoster
        Junior Member
        • Jan 2021
        • 4

        #4
        ok....I ran the cron with the settings below...many thanks. Do I need to add the arguments: -f cron.php > /dev/null 2>&1 ??

        Comment


        • item
          item commented
          Editing a comment
          Hello,
          no, there are 2 way to do ..
          i give command line type
          shalmaxb other type (curl)
      • item
        Active Community Member
        • Mar 2017
        • 1476

        #5
        for more understand :

        "The most important difference is that WGET and CURL go through the HTTP protocol, so Apache configurations / restrictions are added. For example, Apache's Timeout. Whereas when you run a php CRON job, you don't have this type limit. (It's like going through an SSH connection)

        So the most robust way to start a sizable CRON job is to do it through PHP. Unlike CURL or WGET, you will not be impacted by the web server timeout if your script is to run for a while."
        If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

        Comment

        Working...