I created a quick CGI script to test the cpanel::account module and it always returns the error Access Denied
Not a standard Apache 403 or 401 either, its generated by the script
Does the script have to run as root to access cpanel::account?
Here is a copy of my code that I made
[i:82aab9c7ac]
#!/usr/bin/perl
BEGIN {
push (@INC,&/usr/local/cpanel&
;
}
use Cpanel::Accounting;
my($whm) = Cpanel::Accounting-&new;
$whm-&{host} = &localhost&;
$whm-&{user} = &USERID HERE&;
$whm-&{accesshash} = &HASH HERE&;
$whm-&{usessl} = 0;
print &Content-type: text/html\n\n&;
$response = $whm-&createacct(&testdomain.com&,&testdom&,&password&,&Basic&
;
print $response;
[/i:82aab9c7ac]
Not a standard Apache 403 or 401 either, its generated by the script
Does the script have to run as root to access cpanel::account?
Here is a copy of my code that I made
[i:82aab9c7ac]
#!/usr/bin/perl
BEGIN {
push (@INC,&/usr/local/cpanel&
}
use Cpanel::Accounting;
my($whm) = Cpanel::Accounting-&new;
$whm-&{host} = &localhost&;
$whm-&{user} = &USERID HERE&;
$whm-&{accesshash} = &HASH HERE&;
$whm-&{usessl} = 0;
print &Content-type: text/html\n\n&;
$response = $whm-&createacct(&testdomain.com&,&testdom&,&password&,&Basic&
print $response;
[/i:82aab9c7ac]