• 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

Resolved Plesk Command not found when running over sheduled task

WhizzHacks

New 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