Posted By: lunny on March 13, 2012, 2:56 pm |
Hi,
Do you have any sample codes for using the Auto Install API on DirectAdmin? I found an example for cpanel here http://www.softaculous.com/docs/Auto_Install_API Do you have a DirectAdmin version with the correct file paths? thanks. |
Posted By: Brijesh on March 14, 2012, 6:22 am | Post: 1 |
Hi,
Just change the following code: Code $new->login = 'http://user:password@domain.com:2082/frontend/x3/softaculous/index.live.php'; to Code $new->login = 'http://user:pass@your.server.com:2222/CMD_PLUGINS/softaculous/index.raw'; ----------------------- Webuzo - Multi User Hosting Control Panel AMPPS - Best WordPress/PHP/MySQL development tool |
Posted By: lunny on May 10, 2012, 10:59 am | Post: 2 |
I couldn't get any response using the following url. Tried pasting it in browser but got redirected to the login page instead.
http://user:pass@your.server.com:2222/CMD_PLUGINS/softaculous/index.raw Is this the right way to login to DirectAdmin from URL (http://user:pass@your.server.com:2222/) ? |
Posted By: Brijesh on May 10, 2012, 12:42 pm | Post: 3 |
Hi,
Sir this will not work in the browser. You will have to write a code in PHP or any other language to get it working. Edited by Brijesh : May 10, 2012, 12:42 pm ----------------------- Webuzo - Multi User Hosting Control Panel AMPPS - Best WordPress/PHP/MySQL development tool |
Posted By: Brijesh on May 11, 2012, 5:21 am | Post: 6 |
Hi,
The required fields are : Code $new->data['softdomain'] = 'domain.com';
$new->data['softdirectory'] = 'folder'; $new->data['admin_username'] = 'admin'; $new->data['admin_pass'] = 'qwerty'; The remaining fields are optional and the default values that are suggested on the install form are taken by Softaculous for installation. ----------------------- Webuzo - Multi User Hosting Control Panel AMPPS - Best WordPress/PHP/MySQL development tool |
Posted By: Brijesh on May 11, 2012, 5:50 am | Post: 8 |
Hi,
You can use your code to determine the fields. For eg: if you want to fill your value in sitename you can use the following code: Code $sitename = 'YOUR VALUE'; $new->data['site_name'] = $sitename; The variable for Sitename is site_name. You can find the variables in the install.xml of the script. ----------------------- Webuzo - Multi User Hosting Control Panel AMPPS - Best WordPress/PHP/MySQL development tool |
Posted By: Brijesh on December 4, 2012, 12:57 pm | Post: 10 |
Hi,
Sir we are waiting for your reply on ticket with the login details. We will resolve it asap. ----------------------- Webuzo - Multi User Hosting Control Panel AMPPS - Best WordPress/PHP/MySQL development tool |