Skip to content
This repository has been archived by the owner on Sep 6, 2020. It is now read-only.

Error access. #34

Open
Askeshine opened this issue Feb 21, 2020 · 0 comments
Open

Error access. #34

Askeshine opened this issue Feb 21, 2020 · 0 comments

Comments

@Askeshine
Copy link

Askeshine commented Feb 21, 2020

hello , i use this code.

   <?php
   require_once("vendor/autoload.php");
   $cpanel = new \Gufy\CpanelPhp\Cpanel([
       'host'        =>  'https://server01.nubewww.tech:2087', // ip or domain complete with its protocol and port
       'username'    =>  'xxxxxxxxx', // username of your server, it usually root.
       'auth_type'   =>  'xxxxxxxxxxx', // set 'hash' or 'password'
     'password'    =>  'xxxxxxxxxxxxxxxx', // long hash or your user's password
  ]);

  $accounts = $cpanel->listaccts(); // it will returned as array
  print_r($accounts);

and when i call from browser i recive this error.

Client error:POST https://server01.nubewww.tech:2087/json-api/listaccts` resulted in a 403 Forbidden Access denied response: {"cpanelresult":{"apiversion":"2","error":"Access denied","data":{"reason":"Access denied","result":"0"},"type":"text"}} (truncated...) `

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant