【问题标题】:Cpanel API Access deniedCpanel API 访问被拒绝
【发布时间】:2014-09-19 15:02:13
【问题描述】:

我正在使用 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" );

但它给出了这个错误。

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

如何解决此错误。

【问题讨论】:

    标签: php api cpanel


    【解决方案1】:

    检查您的端口设置 -

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-10-02
      • 2017-03-16
      • 2019-07-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多