Recent content by a_guy

  1. A

    Resolved Run bash script as root from extension

    I assume that on extension installation the sbin symlink should be created, in post-install.php. Is there any sample code of creating a symlink from PHP using Plesk API? Thank.
  2. A

    Question code to list subscriptions

    Is there a way to list the subscriptions of the current client? (pm_Session::getClient()) I haven't found anything related to subscription in the developer documentation. Thanks
  3. A

    Resolved Run bash script as root from extension

    @john0001, it works with symlink to wrapper. Thanks.
  4. A

    Resolved Run bash script as root from extension

    I assume you mean pm_ApiCli::callSbin. The script runs as psaadm, shouldn't it run as root? IndexController.php: <?php class IndexController extends pm_Controller_Action { public function myTestAction() { $result = pm_ApiCli::callSbin("myscript.sh")...
  5. A

    Resolved Run bash script as root from extension

    Hello, What is the recommended way (security wise) to launch a bash script as root from a Plesk extension from customer UI? Thanks
  6. A

    Question Develop custom extension for customer panel

    I've followed this Create Your First Extension and I can see hello-world in Extensions in admin, but not in the end-user panel. How can I get my extension visible in the end-user panel?
  7. A

    Question Develop custom extension for customer panel

    After following Create Your First Extension I can see the hello-world extension in admin Extensions > My Extensions But I can't see it in the end-user panel (on port 8443). It doesn't even have an Extensions section.
  8. A

    Question Develop custom extension for customer panel

    Hello, I under the impression that the extension documentation only refers to the admin panel. I would like to write a custom extension for the customer/end-user panel (the panel that runs on port 8443). Is this possible? What is the appropriate documentation for this? Thanks
Back
Top