Announcement

Collapse
No announcement yet.

CRON in Cpanel

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

  • CRON in Cpanel

    Im having a issue with setting cron up. It shows in scheduled jobs to set this url:


    * * * * * cd /home/ebscompa/public_html/[[MYDOMAIN]].com/agent; /opt/cpanel/ea-php72/root/usr/bin/php -f cron.php > /dev/null 2>&1

    Since I setup cron via cpanel I set it up like this:


    cronurl '[[MYDOMAIN]].com/agent/cron.php'

    However its not running. Any that can assist with what worked for them in cpane?

  • #2
    We resolved this. For anyone else looking for a resolution this is what worked for us:

    php -f /home/ebscompa/public_html/[[MYDOMAIN]].com/agent/cron.php > /dev/null 2>&1

    and for schedule

    "*****"

    Comment


    • #3
      I've been trying everything and I came across your suggestion - unfortunately it didn't work for me. Who are you hosting with?

      Comment


      • #4
        Try this. Comment this line out like this https://prnt.sc/r3ppcp. Then go to manually run this cron job by going to https://[[YOUR URL]]/cron.php. Does this work for you when ran manually?

        Comment


      • #5
        Just to add, before commenting that out... if I would go into SSH, cd to the correct director and do php cron.php, it would work without issue.

        Comment


        • #6
          Right, dead topic. I had turned parallel processes on per the Espo guide & it was giving me this error "Espo.ERROR: Uncaught Exception Spatie\Async\Output\ParallelError:" over and over in the log. So I dived deep into the code and error handling and found it was related to the Parallel processes... (should have figured from the file name to be fair) but that said, turned it off and the cron started working fine.... really strange. Posting so this helps someone else... Parallel processes are not your friend sometimes I guess haha

          Comment

          Working...
          X