Posted By: Brijesh on June 22, 2021, 7:13 am | Post: 1 |
Hi,
Sorry for the delay in response. From the details you have provided it looks like you are passing the API Key and API Pass of the root user. You have created a user "test" and added the domain under the "test" user. However while installing a script you are using the API Key Pass of the root user hence Softaculous tries to find that domain under root user. The solution for this is to pass the "loginAs" parameter in the URL while performing the install call so you can add the following parameter to the URL : &loginAs=test and Softaculous will then look for the domain under the "test" user and proceed with the installation under the "test" user. Do let us know if you still face the issue. ----------------------- Webuzo - Multi User Hosting Control Panel AMPPS - Best WordPress/PHP/MySQL development tool |
Posted By: Brijesh on June 22, 2021, 8:10 am | Post: 3 |
Hi,
Glad to know the loginAs parameter works. We will update it to the documentation soon. Underscore is allowed in the database name. Maybe you are using any other special character as well. Alphanumeric and underscore are allowed. ----------------------- Webuzo - Multi User Hosting Control Panel AMPPS - Best WordPress/PHP/MySQL development tool |
Posted By: Brijesh on June 22, 2021, 9:36 am | Post: 5 |
Hi,
It looks like you are using Softaculous Enterprise so you need to refer to the following guide : https://www.softaculous.com/docs/api/enterprise-api/ Also note in Softaculous enterprise only pass the database name and Softaculous will add the username_ as the prefix while creating the database. So in your case the database name should be passed db4 The guide you were following remote-api is for Softaculous Remote which works over FTP. Enterprise works over NFS. ----------------------- Webuzo - Multi User Hosting Control Panel AMPPS - Best WordPress/PHP/MySQL development tool |
Posted By: Brijesh on June 22, 2021, 10:31 am | Post: 7 |
Hi,
You want to install the apps over NFS right ? Just to confirm so we can go ahead with the Softaculous Enterprise integration. In order to complete the Softaculous Enterprise integration you need to create the following functions in enterprise.php as explained here : https://www.softaculous.com/docs/developers/softaculous-enterprise-integration/#integrating Here you can use your control panel APIs to create/list/delete databases and cron jobs. ----------------------- Webuzo - Multi User Hosting Control Panel AMPPS - Best WordPress/PHP/MySQL development tool |
Posted By: Brijesh on June 23, 2021, 8:17 am | Post: 12 |
Hi,
Glad to know it works now ----------------------- Webuzo - Multi User Hosting Control Panel AMPPS - Best WordPress/PHP/MySQL development tool |
Posted By: Brijesh on October 28, 2021, 12:25 pm | Post: 14 |
Hi,
Sorry for the delay in response. In directadmin when you use username@password:hostname login method there is a session variable which is not available causing the Directadmin API call which we are using to get the list of domains to fail. Due to which you see the above error. I have attached a working example file for installing a script on Directadmin with Softaculous API. Edited by Brijesh : October 28, 2021, 12:25 pm ----------------------- Webuzo - Multi User Hosting Control Panel AMPPS - Best WordPress/PHP/MySQL development tool |