• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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