Import Settings from CLI

Overview

This guide will help to import the admin panel settings from CLI

This utility requires the Softaculous settings file in ZIP format. You can export the Settings ZIP package from the Softaculous server where you have configured the settings.
Go to Softaculous Admin panel -> Settings -> Import/Export page and export the settings.
Refer to the guide to Export Softaculous Settings.

Note : This utility was added in Softaculous 4.9.0 

Note : This utility must be executed as root user only

The Import Settings utility supports the following protocols :

Local File

  • You will need to upload the file on your local server or network and pass the path to Softaculous settings file to the –file parameter.

Example :

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

/usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/cli.php --import_settings --file=/path/to/softaculous_settings.zip

HTTP/HTTPS

  • You will need to upload the file to a web accessible location and pass the URL to Softaculous settings file to the –file parameter.

Example :

/usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/cli.php --import_settings --file=https://example.com/softaculous_setting.zip

FTP

  • You will need to upload the file to a FTP server and pass the location to Softaculous settings file to the –file parameter.

Example :

/usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/cli.php --import_settings --file=ftp://user:pass@example.com/softaculous_settings.zip

Examples

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

/usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/cli.php --import_settings --file=/path/to/softaculous_settings.zip


For Direct Admin, SSH to your server as root 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 --import_settings --file=/path/to/softaculous_settings.zip


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

/usr/local/softaculous/bin/php /usr/local/softaculous/cli.php --import_settings --file=/path/to/softaculous_settings.zip


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

php /usr/local/softaculous/cli.php --import_settings --file=/path/to/softaculous_settings.zip


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

/home/interworx/bin/php /usr/local/softaculous/cli.php --import_settings --file=/path/to/softaculous_settings.zip

For CentOS Web Panel SSH to your server as root and enter the following command :

/usr/local/cwp/php/bin/php /usr/local/softaculous/cli.php --import_settings --file=/path/to/softaculous_settings.zip
Was this helpful to you?