{"id":3810,"date":"2020-06-24T08:12:55","date_gmt":"2020-06-24T08:12:55","guid":{"rendered":"https:\/\/www.softaculous.com\/blog\/docs\/cli\/update-installation-version-in-softaculous-records-cli\/"},"modified":"2025-01-31T12:10:19","modified_gmt":"2025-01-31T12:10:19","slug":"update-installation-version-in-softaculous-records-cli","status":"publish","type":"docs","link":"https:\/\/www.softaculous.com\/blog\/docs\/cli\/update-installation-version-in-softaculous-records-cli\/","title":{"rendered":"Update Installation Version in Softaculous Records CLI"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\" id=\"overview\">Overview<\/h3>\n\n\n\n<p>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.<\/p>\n\n\n\n<p class=\"alert alert-info\"><strong>Note\u00a0<\/strong>: This utility has been added in Softaculous 5.5.3<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"disable-all-outdated-scripts\">List Installations with Incorrect Version<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Use the following command to <strong>list installations which does not have the correct version in Softaculous records<\/strong> :<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">php \/path\/to\/softaculous\/cli.php --show_real_version<\/pre>\n\n\n\n<p>E.g. for cPanel&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">\/usr\/local\/cpanel\/3rdparty\/bin\/php \/usr\/local\/cpanel\/whostmgr\/docroot\/cgi\/softaculous\/cli.php --show_real_version<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>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.<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"parameters\">Parameters<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>In the above command the first parameter should be <strong>&#8211;show_real_version<\/strong> as this parameter will initiate the real version detection function.<\/li><li>You can use the <strong>&#8211;output<\/strong> parameter to get the output in JSON or Serialize format. E.g.<strong> &#8211;output=json<\/strong> or <strong>&#8211;output=serialize<\/strong><\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"disable-all-outdated-scripts\">Update Installations with Correct Version<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Use the following command to <strong>update installations with the correct version in Softaculous records<\/strong> :<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">php \/path\/to\/softaculous\/cli.php --update_real_version<\/pre>\n\n\n\n<p>E.g. for cPanel&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">\/usr\/local\/cpanel\/3rdparty\/bin\/php \/usr\/local\/cpanel\/whostmgr\/docroot\/cgi\/softaculous\/cli.php --update_real_version<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>This will update the installations with the correct version in Softaculous records for all the installations on the server.<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"parameters\">Parameters<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>In the above command the first parameter should be <strong>&#8211;update_real_version<\/strong> as this parameter will initiate the real version updating function.<\/li><li>You can use the <strong>&#8211;output<\/strong> parameter to get the output in JSON or Serialize format. E.g.<strong> &#8211;output=json<\/strong> or <strong>&#8211;output=serialize<\/strong><\/li><\/ul>\n","protected":false},"featured_media":0,"parent":1686,"menu_order":16,"comment_status":"closed","ping_status":"closed","template":"","docs_category":[],"class_list":["post-3810","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/3810","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/comments?post=3810"}],"version-history":[{"count":4,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/3810\/revisions"}],"predecessor-version":[{"id":3815,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/3810\/revisions\/3815"}],"up":[{"embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/1686"}],"wp:attachment":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/media?parent=3810"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs_category?post=3810"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}