• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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