• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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