• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Issue Problem running a scheduled scheduler.

missever

New Pleskian
Server operating system version
Ubuntu 20.04.6 LTS
Plesk version and microupdate number
Plesk Obsidian Web Pro Edition Version 18.0.53 Update #2
Hi there,

The software I am using requires the following command to be executed every 5 minutes;


I did it like this, but I got the following error;

Task "/opt/plesk/php/8.0/bin/php" completed with error in 0 seconds.


Task "/opt/plesk/php/8.0/bin/php" completed with error in 0 seconds, output:
PHP Parse error: syntax error, unexpected character 0x00 in /opt/plesk/php/8.0/bin/php on line 13613

I ask for your help.

2023-10-17_17-42-24 (2).png
 
You cannot run a PHP binary with "Run a PHP script". If you want to execute the PHP binary yourself, use "Run a command". But normally it is much better to choose "Run a PHP script", but then put the script path and script name into the "Script path" field. Completely omit the PHP binary, that is automatically run by cron, your script and the parameters are passed to it.
 
Back
Top