Help with remote access ??
Hello everybody !!I need to let my clients make accounts in my webserver through a script that I'm going to do using php.
And I'm facing a ugly problem since friday with WHM and cpanel !!
I've in a webserver a reseller account with a user name and password !
user = "user";
pass = "pass";
I'm trying to connect using the script bellow, but nothing happens, never works, some times says ACCESS DENIED, and most of the time I get a white page, I'm trying all those combinations like this:
<?php
require '/usr/local/cpanel/Cpanel/Accounting.php.inc';
//$host = "https://www.hosting.com:2087/";
$host = "localhost";
$user = "billing";
//$user = "root";
//$accesshash = 'my reseller password';
$accesshash = 'remote access key(hash, huge number)';
//$accts = listaccts($host,$user,$accesshash,1);
$accts = listaccts($host,$user,$accesshash,0);
print_r($accts);
//$pkgs = listpkgs($host,$user,$accesshash,1);
$pkgs = listpkgs($host,$user,$accesshash,0);
print_r($pkgs);
?>
But it doesn't work at all !!!!!! =/
So since my configuration is like this, how should I do ?
//pass to my reseller account
user = "user";
pass = "pass";
//domain
https://www.hosting.com:2087/
The versions are:
WHM 7.4.2 cPanel 7.4.2-S117
RedHat - WHM X v2.1
We do have curl + ssh installed for sure, and the administrator guaranteed that it's all up to date, there are 2 accounts in my reseller account plus 15 packages, so it was suposed to be showing something.
How is the correct way to do this ? Please, I really appreciate any help, tks a lot to everybody !!
Demian Escobar Fagunde