- Plesk Onyx for Linux
Execution of the Scheduled Task fails with the error like below in Plesk Interface:
PLESK_ERROR: Could not open input file: /opt/plesk/php/7.2/bin/php -q /var/www/vhosts/example.com/httpdocs/client/crons/cron.php
In Tools & Settings > Scheduled Tasks > <example task> is set as following:
Incorrect task settings: it is not required to add PHP binary file when task is set to Run as PHP script.
In Tools & Settings > Scheduled Tasks > <example task> add path to the PHP script without specifying PHP binary file:
Set Run a command option specifying PHP binary path in the command section :
Note: Path to the PHP script to run should be changed according to the environment.