{"id":2137,"date":"2019-01-02T07:37:09","date_gmt":"2019-01-02T07:37:09","guid":{"rendered":"http:\/\/www.softaculous.com\/blog\/docs\/cli\/upgrade-script-from-cli\/"},"modified":"2025-01-31T12:10:19","modified_gmt":"2025-01-31T12:10:19","slug":"upgrade-script-from-cli","status":"publish","type":"docs","link":"https:\/\/www.softaculous.com\/blog\/docs\/cli\/upgrade-script-from-cli\/","title":{"rendered":"Upgrade Script from CLI"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">This guide will help for how to upgrade scripts from command line<\/h3>\n\n\n\n<p>System Admin and User both can upgrade the scripts from command line<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">For System Admin<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>System Admin can Upgrade the installation easily from Softaculous Admin Panel. Click Here to refer&nbsp;<a href=\"https:\/\/softaculous.com\/docs\/Auto_Upgrade_Scripts\">Auto_Upgrade_Scripts<\/a><\/li><li>But if Admin wants to do it from command line he can do it.<\/li><li>To upgrade users installations Admin can List the installation of Users which are available for Auto Upgrade.<\/li><li>To list the users installations execute the following command&nbsp;:<\/li><\/ul>\n\n\n\n<p>For&nbsp;<strong>cPanel<\/strong>&nbsp;SSH to your server as root and enter following commands&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 -u --user=USER --list=1<\/pre>\n\n\n\n<p><br>For&nbsp;<strong>Direct Admin<\/strong>&nbsp;SSH to your server as root and enter following commands&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">\/usr\/local\/bin\/php -d open_basedir=\"\" -d safe_mode=0 -d disable_functions=\"\" \/usr\/local\/directadmin\/plugins\/softaculous\/cli.php -u --user=USER --list=1<\/pre>\n\n\n\n<p><br>For\u00a0<strong>Plesk <\/strong>SSH to your server as root and enter following commands\u00a0:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">\/usr\/local\/softaculous\/bin\/php \/usr\/local\/softaculous\/cli.php -u --user=USER --list=1<\/pre>\n\n\n\n<p><br>For\u00a0<strong>ISPManager<\/strong>\u00a0SSH to your server as root and enter following commands\u00a0:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">php \/usr\/local\/softaculous\/cli.php -u --user=USER --list=1<\/pre>\n\n\n\n<p><br>For&nbsp;<strong>InterWorx<\/strong>&nbsp;SSH to your server as root and enter following commands&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">\/home\/interworx\/bin\/php \/usr\/local\/softaculous\/cli.php -u --user=USER --list=1<\/pre>\n\n\n\n<p><br>For&nbsp;<strong>H-Sphere<\/strong>&nbsp;SSH to your server as root and enter following commands&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">\/hsphere\/shared\/php5\/bin\/php-cli -d open_basedir=\"\" -d safe_mode=0 -d disable_functions=\"\" \/usr\/local\/softaculous\/cli.php -u --user=USER --list=1<\/pre>\n\n\n\n<p>In above commands&nbsp;<strong>USER<\/strong>&nbsp;is the username for which you want to list the Installations.<\/p>\n\n\n\n<p class=\"alert alert-info\"><strong>Note<\/strong>&nbsp;: For Plesk please enter USER as DOMAIN NAME (i.e &#8211;user=example.com).<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Above command will give you the output as list of installations which can be auto upgraded.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">root@cpanel [~]# \/usr\/local\/cpanel\/3rdparty\/bin\/php \/usr\/local\/cpanel\/whostmgr\/docroot\/cgi\/softaculous\/cli.php -u --user=soft --list=1\nInstallations for Script&nbsp;: PmWiki\n| Installation ID | Script Name | Version | Installation URL |\n| 43_16546       | PmWiki | 2.2.42 | http:\/\/domain.com\/pmwiki12 |\n| 43_20914       | PmWiki | 2.2.42 | http:\/\/domain.com\/pmwiki13 |\n| 43_96782       | PmWiki | 2.2.42 | http:\/\/domain.com\/pmwiki14 |\n| 43_54831       | PmWiki | 2.2.42 | http:\/\/domain.com\/pmwiki16 |\n| 43_61730       | PmWiki | 2.2.42 | http:\/\/domain.com\/pmwiki17 |\n| 43_28349       | PmWiki | 2.2.42 | http:\/\/domain.com\/pmwiki18 |\n\nroot@cpanel [~]#\n<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Now the first column of output shows an Installation ID(i.e INS_ID). This is required to perform an Upgrade Process.<\/li><li>Execute the following command to perform Upgrade&nbsp;:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">root@cpanel [~]# \/usr\/local\/cpanel\/3rdparty\/bin\/php \/usr\/local\/cpanel\/whostmgr\/docroot\/cgi\/softaculous\/cli.php -u --user=soft --insid=INS_ID\n<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Thats it. Admin and User will be notified for Success\/Failure process by Email.<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">For User<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>To list the users installations execute the following command&nbsp;:<\/li><\/ul>\n\n\n\n<p>For&nbsp;<strong>cPanel<\/strong>&nbsp;SSH to your server as root and enter following commands&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 -u --list=1<\/pre>\n\n\n\n<p><br>For&nbsp;<strong>Direct Admin<\/strong>&nbsp;SSH to your server as root and enter following commands&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">\/usr\/local\/bin\/php -d open_basedir=\"\" -d safe_mode=0 -d disable_functions=\"\" \/usr\/local\/directadmin\/plugins\/softaculous\/cli.php -u --list=1<\/pre>\n\n\n\n<p><br>For\u00a0<strong>Plesk <\/strong>SSH to your server as root and enter following commands\u00a0:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">\/usr\/local\/softaculous\/bin\/php \/usr\/local\/softaculous\/cli.php -u --list=1<\/pre>\n\n\n\n<p><br>For\u00a0<strong>ISPManager<\/strong>\u00a0SSH to your server as root and enter following commands\u00a0:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">php \/usr\/local\/softaculous\/cli.php -u --list=1<\/pre>\n\n\n\n<p><br>For&nbsp;<strong>InterWorx<\/strong>&nbsp;SSH to your server as root and enter following commands&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">php \/usr\/local\/softaculous\/cli.php -u --list=1<\/pre>\n\n\n\n<p><br>For&nbsp;<strong>H-Sphere<\/strong>&nbsp;SSH to your server as root and enter following commands&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">\/hsphere\/shared\/php5\/bin\/php-cli -d open_basedir=\"\" -d safe_mode=0 -d disable_functions=\"\" \/usr\/local\/softaculous\/cli.php -u --list=1<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Above command will give you the output as list of installations which can be auto upgraded.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">soft@cpanel [~]$ \/usr\/local\/cpanel\/3rdparty\/bin\/php \/usr\/local\/cpanel\/whostmgr\/docroot\/cgi\/softaculous\/cli.php -u --list=1\nInstallations for Script&nbsp;: PmWiki\n| Installation ID | Script Name | Version | Installation URL |\n| 43_16546       | PmWiki | 2.2.42 | http:\/\/domain.com\/pmwiki12 |\n| 43_20914       | PmWiki | 2.2.42 | http:\/\/domain.com\/pmwiki13 |\n| 43_96782       | PmWiki | 2.2.42 | http:\/\/domain.com\/pmwiki14 |\n| 43_54831       | PmWiki | 2.2.42 | http:\/\/domain.com\/pmwiki16 |\n| 43_61730       | PmWiki | 2.2.42 | http:\/\/domain.com\/pmwiki17 |\n| 43_28349       | PmWiki | 2.2.42 | http:\/\/domain.com\/pmwiki18 |\n\nsoft@cpanel [~]$\n<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Now the first column of output shows an Installation ID(i.e INS_ID). This is required to perform an Upgrade Process.<\/li><li>Execute the following command to perform Upgrade&nbsp;:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">soft@cpanel [~]$ \/usr\/local\/cpanel\/3rdparty\/bin\/php \/usr\/local\/cpanel\/whostmgr\/docroot\/cgi\/softaculous\/cli.php -u --insid=INS_ID\n<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Thats it. User will be notified for Success\/Failure process by Email.<\/li><\/ul>\n","protected":false},"featured_media":0,"parent":1686,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","docs_category":[],"class_list":["post-2137","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2137","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=2137"}],"version-history":[{"count":24,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2137\/revisions"}],"predecessor-version":[{"id":4105,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2137\/revisions\/4105"}],"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=2137"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs_category?post=2137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}