Upgrade Script from CLI

This guide will help for how to upgrade scripts from command line

System Admin and User both can upgrade the scripts from command line

For System Admin

  • System Admin can Upgrade the installation easily from Softaculous Admin Panel. Click Here to refer Auto_Upgrade_Scripts
  • But if Admin wants to do it from command line he can do it.
  • To upgrade users installations Admin can List the installation of Users which are available for Auto Upgrade.
  • To list the users installations execute the following command :

For cPanel SSH to your server as root and enter following commands :

/usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/cli.php -u --user=USER --list=1


For Direct Admin SSH to your server as root and enter following commands :

/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


For Plesk SSH to your server as root and enter following commands :

/usr/local/softaculous/bin/php /usr/local/softaculous/cli.php -u --user=USER --list=1


For ISPManager SSH to your server as root and enter following commands :

php /usr/local/softaculous/cli.php -u --user=USER --list=1


For InterWorx SSH to your server as root and enter following commands :

/home/interworx/bin/php /usr/local/softaculous/cli.php -u --user=USER --list=1


For H-Sphere SSH to your server as root and enter following commands :

/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

In above commands USER is the username for which you want to list the Installations.

Note : For Plesk please enter USER as DOMAIN NAME (i.e –user=example.com).

  • Above command will give you the output as list of installations which can be auto upgraded.
root@cpanel [~]# /usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/cli.php -u --user=soft --list=1
Installations for Script : PmWiki
| Installation ID | Script Name | Version | Installation URL |
| 43_16546       | PmWiki | 2.2.42 | http://domain.com/pmwiki12 |
| 43_20914       | PmWiki | 2.2.42 | http://domain.com/pmwiki13 |
| 43_96782       | PmWiki | 2.2.42 | http://domain.com/pmwiki14 |
| 43_54831       | PmWiki | 2.2.42 | http://domain.com/pmwiki16 |
| 43_61730       | PmWiki | 2.2.42 | http://domain.com/pmwiki17 |
| 43_28349       | PmWiki | 2.2.42 | http://domain.com/pmwiki18 |

root@cpanel [~]#
  • Now the first column of output shows an Installation ID(i.e INS_ID). This is required to perform an Upgrade Process.
  • Execute the following command to perform Upgrade :
root@cpanel [~]# /usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/cli.php -u --user=soft --insid=INS_ID
  • Thats it. Admin and User will be notified for Success/Failure process by Email.

For User

  • To list the users installations execute the following command :

For cPanel SSH to your server as root and enter following commands :

/usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/cli.php -u --list=1


For Direct Admin SSH to your server as root and enter following commands :

/usr/local/bin/php -d open_basedir="" -d safe_mode=0 -d disable_functions="" /usr/local/directadmin/plugins/softaculous/cli.php -u --list=1


For Plesk SSH to your server as root and enter following commands :

/usr/local/softaculous/bin/php /usr/local/softaculous/cli.php -u --list=1


For ISPManager SSH to your server as root and enter following commands :

php /usr/local/softaculous/cli.php -u --list=1


For InterWorx SSH to your server as root and enter following commands :

php /usr/local/softaculous/cli.php -u --list=1


For H-Sphere SSH to your server as root and enter following commands :

/hsphere/shared/php5/bin/php-cli -d open_basedir="" -d safe_mode=0 -d disable_functions="" /usr/local/softaculous/cli.php -u --list=1
  • Above command will give you the output as list of installations which can be auto upgraded.
soft@cpanel [~]$ /usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/cli.php -u --list=1
Installations for Script : PmWiki
| Installation ID | Script Name | Version | Installation URL |
| 43_16546       | PmWiki | 2.2.42 | http://domain.com/pmwiki12 |
| 43_20914       | PmWiki | 2.2.42 | http://domain.com/pmwiki13 |
| 43_96782       | PmWiki | 2.2.42 | http://domain.com/pmwiki14 |
| 43_54831       | PmWiki | 2.2.42 | http://domain.com/pmwiki16 |
| 43_61730       | PmWiki | 2.2.42 | http://domain.com/pmwiki17 |
| 43_28349       | PmWiki | 2.2.42 | http://domain.com/pmwiki18 |

soft@cpanel [~]$
  • Now the first column of output shows an Installation ID(i.e INS_ID). This is required to perform an Upgrade Process.
  • Execute the following command to perform Upgrade :
soft@cpanel [~]$ /usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/cli.php -u --insid=INS_ID
  • Thats it. User will be notified for Success/Failure process by Email.
Was this helpful to you?