Update Softaculous settings from CLI

Overview

Softaculous allows you to update the settings in the universal.php from command line.

Note : This utility has been added in Softaculous 5.6.4

  • Use the following command to update the settings in universal.php :
php /path/to/softaculous/cli.php --update_universal --setting_name=1

E.g. for cPanel :

/usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/cli.php --update_universal --off_backup_au=1 --no_prefill=1

Parameters

  • In the above command the first parameter should be –update_universal as this parameter will update the universal.php
  • –setting_name=Name of the setting, In the above example, –off_backup_au is the Backup created during Auto upgrade and –no_prefill is not to prefill the directory name with the scripts name by default and 1 is the value to disable the setting, you can pass the value accordingly which you want to save.

Similarly you can enable or disable any settings by passing the setting name in the command, you can find the settings name in the universal.php file.

Was this helpful to you?