• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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