Jump to content
  • 0

Scheduled Task (Cron) In Plesk


ajeffcoat

Question

4 answers to this question

Recommended Posts

  • 0

Cody,

 

I'm using the syntax directly copied from Blesta in Settings -> Automation. If I click on the Run Cron button, it works perfectly.

 

The issue you're experiencing has nothing to do with the way the cron executes, but rather the code that it executes. Not all cron tasks run all the time, so manually running the cron does not guarantee every task will be executed. In fact, if you've scheduled a task to execute the cron at every 5 minutes, running it manually will generally do nothing.

Check your PHP error logs for the rest of the error. Generally you'll see something like:

 

PHP Parse error:  syntax error, unexpected '{' in /usr/bin/php on line 2047 in /path/to/file/file.php

 

The file that's causing the error is the most important piece of the puzzle. Without it, the best advice I could give would be to re-upload all Blesta installation files (backing up your existing files first, of course).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...