Softaculous


Topic : API - Admin Functions


Posted By: yapjinkun on May 22, 2015, 10:00 am
Hello,

Is there a admin api to add/edit plans? Can't find info about this in wiki pages.

Posted By: Brijesh on May 27, 2015, 9:18 am | Post: 1
Hi,

The API is available but we have not documented it yet.

You can also copy the following files across servers if you would like to replicate the plans on another server :
Code
/path/to/softaculous/conf/*.acl
/path/to/softaculous/conf/*.plan


-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool

Posted By: yapjinkun on May 27, 2015, 9:21 am | Post: 2
Hi,

Thank you for the reply, can you provide a brief for the api access? Like the access url & parameters, we're using cPanel server.

Posted By: Brijesh on May 29, 2015, 2:12 pm | Post: 3
Hi,

You need to post the values to the following URL :
Code
https://example.com:2087/cgi/softaculous/index.php?act=addplans


You need to post the following values :
PHP Code

 $post = array();
$post['addplan'] = 1;
$post['planname'] = 'PLAN_NAME';
$post['cpplan_PLAN1'] = '1'// Choose the cPanel plan you want to apply this plan to
$post['cpplan_PLAN2'] = '1'// Choose the cPanel plan you want to apply this plan to
$post['users_USER1'] = '1'// Choose the cPanel user you want to apply this plan to
$post['users_USER2'] = '1'// Choose the cPanel user you want to apply this plan to
$post['scripts_SID'] = '1'// Select the scripts you want to enable, SID refers to script ids. Eg: SID for WordPress is 26 $post['scripts_26'] = '1';
$post['saveplan'] = '1'


You can get the list of script ids from :
http://www.softaculous.com/scripts.php


-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool

Posted By: yapjinkun on June 1, 2015, 8:06 am | Post: 4
hi,

thanks of the info, will looking into this :D

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.