- Plesk for Linux
A scheduled task set up to run from under a subscription user fails with one of the following error messages:
PLESK_ERROR: Task /opt/plesk/php/5.6/bin/php -q /var/www/vhosts/example.com/wp-cron.php completed with error in 0 seconds, output:
-: /opt/plesk/php/5.6/bin/php: No such file or directory
PLESK_ERROR: user with id=11112 and name=`<user_name>` not found in chrooted passwd file
system error: No such file or directory
PLESK_ERROR: /var/www/vhosts/example.com/httpdocs/app/cake: /usr/bin/env: bad interpreter: No such file or directory
When running a scheduled task from under a system user using system executable files (for example, "curl", "wget", "php"), the command will fail if the system user has no access to the server or is set up to run commands in a limited environment (chrooted).
Recreate the task from under a root user at Tools & Settings > Scheduled Tasks:
PLESK_INFO: Task type: Run a command
Command: /opt/plesk/php/7.2/bin/php -q /var/www/vhosts/example.com/httpdocs/whmcs/crons/cron.php
PLESK_INFO: Task type: Run a PHP script
Script path: /var/www/vhosts/example.com/httpdocs/whmcs/crons/cron.php
Use PHP version: select any required version
System user: root
Provide the system user blueskyhost with an access to the server over SSH (for example, /bin/bash) at Domains > example.com > Web Hosting Access.
Change crontab shell for scheduled tasks to /bin/bash at Tools & Settings > Scheduled Tasks > Settings.
Add a required command to a chrooted environment. For instructions, see the KB article: