Cannot run scheduled PHP tasks with arguments

Created:

2016-11-16 13:08:55 UTC

Modified:

2017-08-16 17:39:41 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Cannot run scheduled PHP tasks with arguments

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

There is a difference in behaviour depending on in which way Scheduled Task was ran:

  • If click Run now from the list of Scheduled Tasks under Domains > example.com > Scheduled Tasks , it will run from the chosen environment.

  • If click Run now from task editing page, the task will run from /bin/sh .

Cause

This is Plesk internal issue with ID #PPPM-4887 which is planned to be fixed in future Plesk updates.

Workaround

.As workaround please perform the following actions:

  1. Download the hotfix to the server

  2. Extract the Crontab.php from the downloaded archive.

  3. Replace Crontab.php with /usr/local/psa/admin/plib/Scheduler/Crontab.php

  4. In order to apply changes re-save existed Scheduled Task .

Attachments:

Have more questions? Submit a request
Please sign in to leave a comment.