• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Plesk Command not found when running over sheduled task

FloLa

Basic Pleskian
I created a shell script that creates a plesk database and assigns the permissions directly.

Code:

Code:
plesk bin database -c test -domain test_host -type mysql -add_user test_user -passwd test_pw -add-access 'localhost' -remove-access '%' -set-privileges '..','..''

If I now connect via SSH and call the command with: su -c "bash /script.sh" then it works, but I create a root task in the scheduled tasks and run the same command via Plesk, then Plesk always writes following error: "Plesk: Command not found."

This error occurs with Plesk on Debian 10, on Debian 9 I don't have such problems with it and it works fine.
 
'plesk bin' is just a wrapper. Use direct command /usr/local/psa/bin/database
 
Back
Top