Enable/Disable Scripts CLI

From Softaculous Wiki
Jump to: navigation, search

Overview

Softaculous allows you to Enable or Disable Softaculous Scripts from command line.

Note : This has been added in Softaculous 4.7.9

Enable Scripts

  • Use the following command to Enable scripts:
 Root> php /path/to/softaculous/cli.php --enable_script --sid=26,67
  • Thats it. Scripts will now be enabled.

Parameters

  • In the above command the first parameter should be --enable_script as this parameter will initiate the enable script function.
  • --sid=26,67 - This is the script id. You can enable a script or a number of scripts using comma separated list of script ids. 26 is for WordPress, 67 for Magento, etc. You can find the script id in /path/to/softaculous/enduser/scripts.ser

Disable Scripts

  • Use the following command to Disable scripts:
 Root> php /path/to/softaculous/cli.php --disable_script --sid=26,67
  • Thats it. Scripts will now be disabled.

Parameters

  • In the above command the first parameter should be --disable_script as this parameter will initiate the disable script function.
  • --sid=26,67 - This is the script id. You can disable a script or a number of scripts using comma separated list of script id. 26 is for WordPress, 67 for Magento, etc. You can find the script id in /path/to/softaculous/enduser/scripts.ser