Questions tagged [cpanel-uapi]
21 questions
0
votes
1 answer
i am using a Cpanel UAPI but whenever i use this api it returns me an error that unable to find get_lists_total_disk_usage in email category
$cpanel = new CPANEL(); //login details
// Return the total disk usage for the mailing lists of a cPanel account.
$variable = $cpanel->uapi(
'Email', 'get_lists_total_disk_usage'
);
print_r($variable);

Hassan Tanveer
- 1
- 6
0
votes
0 answers
how do I getting data from stdObject
$cpanel = new cPanel('username','pass','domain');
$bandwidth_report = $cpanel->uapi(
'Bandwidth', 'query',
array(
'grouping' => "domain|year",
'interval' => 'daily',
'protocols' …

NoobScorpio
- 23
- 9
0
votes
2 answers
You don't have permission to access this resource.Server unable to read htaccess file, denying access to be safe
I wanted to updated my Wordpress site, before updating I took backup for the entire website folder and so I installed an updated theme but later I decided to remove the update by deleting the whole website folder and put back the backup folder.…

mac
- 23
- 1
- 2
- 6
0
votes
0 answers
export cPanel full backup using API2 and UAPI in GO
i am able to create, restore, list full backup from cPanel using API2 and UAPI but i'm not able to export created backup tar.gz file from cPanel using API2 and UAPI in GO.
func (c CpanelApi) GetFileActions(dir, file string, newedit bool)…

sahil gill
- 1
- 1
0
votes
0 answers
How can I run php script with proper permissions using the cPanel uapi?
I'm creating a php script that will create an email account within cpanel. I am using the uapi Email::add_pop function with the command line using shell_exec(), as I was having other issues with the liveAPI PHP class.
I did some searching and…

Kyle Diablo
- 61
- 1
- 7
0
votes
1 answer
Creating subdomains dynamically in php (cpanel & hosting24)
I'm trying to create a subdomain dynamically with php so that everytime someone creates a user they also create a subdomain.
I seems all the answers I can find is the same and they just don't work.
I.e this is the code most suggest:
function…

Cinta
- 453
- 5
- 22