• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

Plesk's command line interface doesn't work with PHP.

T

toeh101

Guest
Hi.

I tried to update a client account using client.exe .
It works if I use command prompt directly.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
cd\
cd progra~1\swsoft\plesk\admin\bin
client.exe -u mydomains -company mycompany01
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

But when I use PHP exec() function to create client account, it doesn't work.
I think there are no problem about permission.
I tried PHP exec("md example_dir") , it works, example_dir folder has created.
But when I use it to execute client.exe, it doesn't work.
I know that the command is correct because I've already tried with command prompt directly.

How to solve the problem?
Thanks.
 
just a note, you seem to get ready kind of integration solution - i'd suggest to use Plesk API rather than calling utilities from PHP scripts.
 
Hi.

I tried to update a client account using client.exe .
It works if I use command prompt directly.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
cd\
cd progra~1\swsoft\plesk\admin\bin
client.exe -u mydomains -company mycompany01
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

But when I use PHP exec() function to create client account, it doesn't work.
I think there are no problem about permission.
I tried PHP exec("md example_dir") , it works, example_dir folder has created.
But when I use it to execute client.exe, it doesn't work.
I know that the command is correct because I've already tried with command prompt directly.

How to solve the problem?
Thanks.

Hello toeh101,

The Plesk command line tools require administrative privileges to be run.
We recommend you to use Plesk API RPC to manage Plesk accounts.

http://download1.parallels.com/Plesk/Plesk8.4/Doc/en-US/plesk-8.4-api-rpc-guide/index.htm
http://download1.parallels.com/Plesk/Plesk8.4/Doc/en-US/plesk-8.4-api-rpc/index.htm
 
Back
Top