Welcome Guest. Please Login or Register  


You are here: Index > Softaculous Auto Installer > General Support > Topic : WHMC Auto Install and Softaculous defaults



Threaded Mode | Print  

 WHMC Auto Install and Softaculous defaults, The defaults I have set for Softaculous are not applied when using Auto Installer (7 Replies, Read 2116 times)
sitedartweb
Group: Member
Post Group: Newbie
Posts: 11
Status:
I am getting ready to do a complete solution of auto install for WP, but when I did my install, my Softac defaults did NOT work.

These are the specific variables. Are these usable in the Auto Installer context?

$globals['auto_backup'] = 'daily';
$globals['auto_backup_rotation'] = 1;
$globals['upgrade_backup_on'] = 1;
$globals['auto_backup_limit'] = 2;
$globals['enable_auto_upgrade'] = 1;
$globals['force_auto_upgrade'] = 1;
IP: --   

WHMC Auto Install and Softaculous defaults
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5644
Status:
Hi,

Are you using these settings in Softaculous admin panel or in the auto install module ?

For configuring default settings in auto install module use the following guide :
http://www.softaculous.com/docs/WHMCS_Auto_Install_Module#Specify_default_values_for_Custom_Fields

Here is the code that you need to add in softaculous_extra.php for the settings you need :
PHP Code

 $GLOBALS['softaculous_conf']['defaults']['auto_backup'] = 'daily';
$GLOBALS['softaculous_conf']['defaults']['auto_backup_rotation'] = 1;
$GLOBALS['softaculous_conf']['defaults']['eu_auto_upgrade'] = 1



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

WHMC Auto Install and Softaculous defaults
sitedartweb
Group: Member
Post Group: Newbie
Posts: 11
Status:
Auto installer. And this is exactly what I needed. I did not add them yet, as I suspected they needed to be added a different way.

Also, I do not understand why you have...

$GLOBALS['softaculous_conf']['defaults']['eu_auto_upgrade'] = 1;

Instead of

$GLOBALS['softaculous_conf']['defaults']['enable_auto_upgrade'] = 1

So, I just want to verify why this is different, and will any others be unique like this?
IP: --   

WHMC Auto Install and Softaculous defaults
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5644
Status:
Hi,

The settings in softaculous_extra.php is for the enduser panel hence the settings name in enduser panel needs to be used. So this one is correct :
$GLOBALS['softaculous_conf']['defaults']['eu_auto_upgrade'] = 1;

The setting name in enduser panel is "eu_auto_upgrade" and the setting name in admin panel is "enable_auto_upgrade".

Some settings do have different name based on its usage.

If you have any doubt for the settings you can contact us anytime.

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

WHMC Auto Install and Softaculous defaults
sitedartweb
Group: Member
Post Group: Newbie
Posts: 11
Status:
Ok. Is this documented anywhere? That is the reason I posted here, as I really could not find the information I required in the wiki.

Here is what I have added to my auto-installer

$GLOBALS['softaculous_conf']['defaults']['auto_backup'] = 'daily';
$GLOBALS['softaculous_conf']['defaults']['auto_backup_rotation'] = 1;
$GLOBALS['softaculous_conf']['defaults']['upgrade_backup_on'] = 1;
$GLOBALS['softaculous_conf']['defaults']['auto_backup_limit'] = 2;
$GLOBALS['softaculous_conf']['defaults']['eu_auto_upgrade'] = 1;
$GLOBALS['softaculous_conf']['defaults']['force_auto_upgrade'] = 1;

Any of these not correct?

Thanks for your help
IP: --   

WHMC Auto Install and Softaculous defaults
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5644
Status:
Basically the WHMCS hook makes an API call. The API parameters are documented here :
http://www.softaculous.com/docs/API#Install_a_Script

These settings are not required :
$GLOBALS['softaculous_conf']['defaults']['upgrade_backup_on'] = 1;
$GLOBALS['softaculous_conf']['defaults']['auto_backup_limit'] = 2;
$GLOBALS['softaculous_conf']['defaults']['force_auto_upgrade'] = 1;

These are admin panel settings and when you set these in admin panel they are saved and you do not need to post when making calls to enduser panel.

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

WHMC Auto Install and Softaculous defaults
sitedartweb
Group: Member
Post Group: Newbie
Posts: 11
Status:
Perfect...

Issue resolved. Thank you very much.

BTW: anywhere I could get a better list of options we can use for the Auto Installer?
IP: --   

WHMC Auto Install and Softaculous defaults
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5644
Status:
Hi,

The below guide lists almost all options you can pass while installing a script :
http://www.softaculous.com/docs/API#Install_a_Script

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

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 16, 2024, 10:12 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.027