简体   繁体   English

Cpanel API访问被拒绝

[英]Cpanel API Access denied

I'm using XML api 2 我正在使用XML api 2

$xmlapi = new xmlapi('MY IP Address');
$xmlapi->password_auth("root",'My Cpanel password');
$xmlapi->set_output("json");

$xmlapi->set_debug(1);
print $xmlapi->api2_query($account, "Email", "listpopswithdisk" );

But it's giving this error. 但它给出了这个错误。

{"cpanelresult":{"apiversion":"2","error":"Access denied","data":{"reason":"Access denied","result":"0"},"type":"text"}}

How to resolve this error. 如何解决此错误。

检查您的端口设置 -

$xmlapi->set_port(2083); //2082 if not using secure connection

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM