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

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