• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Problems trying to create FTP account via PHP

C

CTCCoco

Guest
I am trying to creata an FTP account via PHP, with exec() and system(), by the command line thing. There is the code:

<?php
$out = array();
system("cd C:\Program Files (x86)\Parallels\Plesk\admin\bin&ftpsubaccount.exe --create JohnDoe9 -passwd userpass -domain niczerus.com", $out);
print_r($out);
?>

But I get this error:

Acceso denegado. (Error code 5) at Unable to connect to pipe \\.\pipe\psapipe at (Con::ClientOverlappedPipe::create line 502) at get shared instance of PleskSrvClient(PleskSrvClient::getInstance line 257) at Unable to execute CU(wmain line 123)1

I think this is a permissions issue with the FTP thing, but I don't know how to give permissions for use it by PHP. However, I can execute another programs which are not from Plesk.

Somebody can help me, please?
 
Last edited by a moderator:
Back
Top