• Support
  • Cannot create FTP and Database for hosting when using API

<?php
include_once 'api_aapanel_mitha.php';
$domain = 'an37.infocom.com';
$result = $aapanel->addSite($domain, $domain, $domain, 0, 'php', '73', '80', $ftp, $ftpusername, $ftppassword, $sql, $userdbase, $passdbase, 1, 1);

I use https://github.com/skolastikarhea/api_aapanel library to create hosts, it works well.
The result returned was that the host was created successfully, but ftp and database were not created
Array
(
[siteStatus] => 1
[siteId] => 52
[ftpStatus] =>
[databaseStatus] =>
[ssl] => 1
[redirect] => 1
)

Please help me