• 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.

pm_ApiCli::callSbin() and pm_ApiCli::call() not working in Windows 12.x version

R. Sreenath Menon

New Pleskian
Hello,

I am creating a plugin for plesk (windows) but pm_ApiCli::callSbin("myutility") and pm_ApiCli::call("myutility") are not working.

The responses are like below:
  • pm_ApiCli::callSbin("myutility")
    • The operation you were performing failed. You can retry the operation with or without changing its parameters. You may also want to report this problem to our support so that we could help you as soon as possible.
    • In "Additional Information" window - Not supported on Windows platform
  • pm_ApiCli::call("myutility")
    • The operation you were performing failed. You can retry the operation with or without changing its parameters. You may also want to report this problem to our support so that we could help you as soon as possible.
    • In "Additional Information" window - Public CLI utilities can be used only in CLI mode.
Please let me know how to solve this issue or provide a alternative way to run the commands in "myutility" which needs Administrative privileges.

Thanks in advance

Sreenathwindows_plesk_issue.png
 
Hi @R. Sreenath Menon!


In "Additional Information" window - Not supported on Windows platform
This error means that pm_ApiCli::callSbin is supported in Linux only because on Windows there are no sbin utilities.


In "Additional Information" window - Public CLI utilities can be used only in CLI mode.
This error means that pm_ApiCli::call can be called only from scripts. It's not supported when you make some actions in UI. It's because of security reasons and privileges for CLI and UI.
 
Back
Top