Page 1 of 2 | 1 | 2 | > | >> | All |
Posted By: Brijesh on July 17, 2012, 3:51 pm | Post: 1 |
Hi,
We are working on the documentation and it should be available soon. We will let you know once it is done. ----------------------- Webuzo - Multi User Hosting Control Panel AMPPS - Best WordPress/PHP/MySQL development tool |
Posted By: Brijesh on July 30, 2012, 5:44 am | Post: 3 |
Hi,
We are sorry for the delay. I have asked the development team about this and they have confirmed that it should be available within a day or two. ----------------------- Webuzo - Multi User Hosting Control Panel AMPPS - Best WordPress/PHP/MySQL development tool |
Posted By: Brijesh on July 31, 2012, 1:57 pm | Post: 4 |
Hi,
Sir the API documentation is now ready : http://www.softaculous.com/docs/API Sorry for the delay. ----------------------- Webuzo - Multi User Hosting Control Panel AMPPS - Best WordPress/PHP/MySQL development tool |
Posted By: VPSGuys on August 1, 2012, 1:19 am | Post: 5 |
Quote From : Brijesh July 31, 2012, 1:57 pm Hi,
Sir the API documentation is now ready : http://www.softaculous.com/docs/API Sorry for the delay. I've tried running this code but updating the correct details for username, password, and domain and adding the include line for the sdk.php but I get the following error PHP Parse error: syntax error, unexpected T_VARIABLE in /home/wpsecuri/public_html/apitest.php on line 3 $new = new Softaculous_API(); $new->login = 'https://username:password@nuftp.com:2083/frontend/x3/softaculous/index.live.php'; // cPanel example Login $data['softdomain'] = 'domain.com'; // OPTIONAL - By Default the primary domain will be used $data['softdirectory'] = 'wp222'; // OPTIONAL - By default it will be installed in the /public_html folder $data['admin_pass'] = 'pass'; $data['admin_email'] = 'admin@domain.com'; $data['softdb'] = 'wp222'; $data['dbusername'] = 'wp222'; $data['dbuserpass'] = 'wp222'; $data['site_name'] = 'Wordpess wp222'; $data['admin_username'] = 'admin'; $data['language'] = 'en'; $data['site_desc'] = 'WordPress API Test'; $res = $new->install(26, $data); // 26 is the SCRIPT ID for Wordpress $res = unserialize($res); if(!empty($res['done'])){ echo 'Installed'; }else{ echo 'Installation Failed<br/>'; if(!empty($res['error'])){ print_r($res['error']); } } |
Posted By: Brijesh on August 1, 2012, 4:17 am | Post: 6 |
Hi,
Sir it seems that you forgot to include the file sdk.php For eg: you place the file here : /path/to/softaculous/enduser/sdk.php then you should use : include('/path/to/softaculous/enduser/sdk.php'); and also you seem to have used the wrong details in the $new->login and $data variables, the details given in the documentation are just an example and you should replace the values with yours. ----------------------- Webuzo - Multi User Hosting Control Panel AMPPS - Best WordPress/PHP/MySQL development tool |
Posted By: jigar on August 1, 2012, 10:29 am | Post: 8 |
Hi,
Can you give us the error details ? Code if(!empty($res['error'])){ print_r($res['error']); } This code should give you the error details. |
Posted By: Brijesh on August 1, 2012, 11:14 am | Post: 10 |
Hi,
After the text "Installation Failed" it should print the array of Errors occured. Can you please open a support ticket with the code you are using or can you email me the file so that we can check it. ----------------------- Webuzo - Multi User Hosting Control Panel AMPPS - Best WordPress/PHP/MySQL development tool |
Posted By: Brijesh on August 1, 2012, 11:46 am | Post: 12 |
Hi,
I am looking through the code that you sent. I will check it and get back to you asap. ----------------------- Webuzo - Multi User Hosting Control Panel AMPPS - Best WordPress/PHP/MySQL development tool |
Posted By: Brijesh on August 1, 2012, 1:18 pm | Post: 13 |
Hi,
Sir we have emailed you with the details and the patch. You can now try to use the API and it will work. Sorry for the Inconvenience. ----------------------- Webuzo - Multi User Hosting Control Panel AMPPS - Best WordPress/PHP/MySQL development tool |