• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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