Update Installation Version in Softaculous Records CLI

Overview

When a user upgrades their installation manually (without using Softaculous), the version in Softaculous record still shows the old version. This CLI utility allows you to find the list of such installations and update the Softaculous records with the correct version of installation.

Note : This utility has been added in Softaculous 5.5.3

List Installations with Incorrect Version

  • Use the following command to list installations which does not have the correct version in Softaculous records :
php /path/to/softaculous/cli.php --show_real_version

E.g. for cPanel :

/usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/cli.php --show_real_version
  • This will provide with the list of installations that do not have the correct version in Softaculous records and will show the incorrect version and the correct updated version as well.

Parameters

  • In the above command the first parameter should be –show_real_version as this parameter will initiate the real version detection function.
  • You can use the –output parameter to get the output in JSON or Serialize format. E.g. –output=json or –output=serialize

Update Installations with Correct Version

  • Use the following command to update installations with the correct version in Softaculous records :
php /path/to/softaculous/cli.php --update_real_version

E.g. for cPanel :

/usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/cli.php --update_real_version
  • This will update the installations with the correct version in Softaculous records for all the installations on the server.

Parameters

  • In the above command the first parameter should be –update_real_version as this parameter will initiate the real version updating function.
  • You can use the –output parameter to get the output in JSON or Serialize format. E.g. –output=json or –output=serialize
Was this helpful to you?