List Installations from CLI

From Softaculous Wiki
Jump to: navigation, search

This guide will help you to get all installations list

System Admin and User both can list the installations from command line

For System Admin

  • Admin needs to execute this utility as root and pass the parameter --user=USER to get the list of installations of that particular user.

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).


For cPanel, SSH to your server as root and enter the following command :

Root> /usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/cli.php --list_ins --user=USER 


For Direct Admin, SSH to your server as root and enter the following command :

Root> /usr/local/bin/php -d open_basedir="" -d safe_mode=0 -d disable_functions="" /usr/local/directadmin/plugins/softaculous/cli.php --list_ins --user=USER


For Plesk and ISPManager, SSH to your server as root and enter the following command :

Root> php /usr/local/softaculous/cli.php --list_ins --user=USER


For InterWorx, SSH to your server as root and enter the following command :

Root> /home/interworx/bin/php /usr/local/softaculous/cli.php --list_ins --user=USER


List in Tabular format

  • By default the installations will be listed in tabular format.

List in JSON/Serialize/XML format

  • If you would like to fetch the list in JSON/PHP Serialize/XML format you need to pass the --resp parameter :
    • For JSON : --resp=json
    • For PHP Serialize : --resp=serialize
    • For XML : --resp=xml

Example :

Root> /usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/cli.php --list_ins --user=USER --resp=json 

List by Script

  • If you would like to filter the list by script you need to pass the --sid parameter :
    • For WordPress : --sid=26
    • For Joomla : --sid=413
    • Similarly pass the script id for any script you want to list the installations for.

Example :

Root> /usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/cli.php --list_ins --user=USER --sid=26 

List by Installation id

  • If you would like to list the details of a particular installation you need to pass the --insid parameter :
    • List installations for insid 26_55678 : --insid=26_55678

Example :

Root> /usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/cli.php --list_ins --user=USER --insid=26_55678 


For Endusers

  • This utility will list the installations for the user currently logged in as.


For cPanel, SSH to your server and enter the following command :

/usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/cli.php --list_ins


For Direct Admin, SSH to your server and enter the following command :

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


For Plesk and ISPManager, SSH to your server and enter the following command :

php /usr/local/softaculous/cli.php --list_ins 


For InterWorx, SSH to your server and enter the following command :

php /usr/local/softaculous/cli.php --list_ins 


List in Tabular format

  • By default the installations will be listed in tabular format.

List in JSON/Serialize/XML format

  • If you would like to fetch the list in JSON/PHP Serialize/XML format you need to pass the --resp parameter :
    • For JSON : --resp=json
    • For PHP Serialize : --resp=serialize
    • For XML : --resp=xml

Example :

/usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/cli.php --list_ins --resp=json 

List by Script

  • If you would like to filter the list by script you need to pass the --sid parameter :
    • For WordPress : --sid=26
    • For Joomla : --sid=413
    • Similarly pass the script id for any script you want to list the installations for.

Example :

/usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/cli.php --list_ins --sid=26 

List by Installation id

  • If you would like to list the details of a particular installation you need to pass the --insid parameter :
    • List installations for insid 26_55678 : --insid=26_55678

Example :

/usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/cli.php --list_ins --insid=26_55678