• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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