{"id":2221,"date":"2019-01-02T09:50:04","date_gmt":"2019-01-02T09:50:04","guid":{"rendered":"http:\/\/www.softaculous.com\/blog\/docs\/cli\/import-settings-from-cli\/"},"modified":"2025-01-31T12:10:19","modified_gmt":"2025-01-31T12:10:19","slug":"import-settings-from-cli","status":"publish","type":"docs","link":"https:\/\/www.softaculous.com\/blog\/docs\/cli\/import-settings-from-cli\/","title":{"rendered":"Import Settings from CLI"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Overview<\/h3>\n\n\n\n<p><strong>This guide will help to import the admin panel settings from CLI<\/strong><\/p>\n\n\n\n<p>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. <br>Go to Softaculous Admin panel -&gt; Settings -&gt;&nbsp;<strong>Import\/Export<\/strong>&nbsp;page and export the settings. <br>Refer to the guide to&nbsp;<a href=\"http:\/\/www.softaculous.com\/docs\/admin\/import-export-settings\/#export-settings\">Export Softaculous Settings.<\/a><\/p>\n\n\n\n<p class=\"alert alert-info\"><strong>Note&nbsp;:<\/strong>&nbsp;This utility was added in Softaculous 4.9.0&nbsp;<\/p>\n\n\n\n<p class=\"alert alert-info\"><strong>Note&nbsp;:<\/strong>&nbsp;This utility must be executed as root user only<br><\/p>\n\n\n\n<p>The Import Settings utility supports the following protocols&nbsp;:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Local File<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>You will need to upload the file on your local server or network and pass the path to Softaculous settings file to the&nbsp;<strong>&#8211;file<\/strong>&nbsp;parameter.<\/li><\/ul>\n\n\n\n<p><strong>Example&nbsp;:<\/strong><\/p>\n\n\n\n<p>For&nbsp;<strong>cPanel<\/strong>, SSH to your server as root and enter the following command&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 --import_settings --file=\/path\/to\/softaculous_settings.zip<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">HTTP\/HTTPS<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>You will need to upload the file to a web accessible location and pass the URL to Softaculous settings file to the&nbsp;<strong>&#8211;file<\/strong>&nbsp;parameter.<\/li><\/ul>\n\n\n\n<p><strong>Example&nbsp;:<\/strong><\/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 --import_settings --file=https:\/\/example.com\/softaculous_setting.zip<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">FTP<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>You will need to upload the file to a FTP server and pass the location to Softaculous settings file to the&nbsp;<strong>&#8211;file<\/strong>&nbsp;parameter.<\/li><\/ul>\n\n\n\n<p><strong>Example&nbsp;:<\/strong><\/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 --import_settings --file=ftp:\/\/user:pass@example.com\/softaculous_settings.zip<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Examples<\/h3>\n\n\n\n<p>For&nbsp;<strong>cPanel<\/strong>, SSH to your server as root and enter the following command&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 --import_settings --file=\/path\/to\/softaculous_settings.zip<\/pre>\n\n\n\n<p><br>For&nbsp;<strong>Direct Admin<\/strong>, SSH to your server as root and enter the following command&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 --import_settings --file=\/path\/to\/softaculous_settings.zip<\/pre>\n\n\n\n<p><br>For\u00a0<strong>Plesk<\/strong>,\u00a0SSH to your server as root and enter the following command\u00a0:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">\/usr\/local\/softaculous\/bin\/php \/usr\/local\/softaculous\/cli.php --import_settings --file=\/path\/to\/softaculous_settings.zip<\/pre>\n\n\n\n<p><br>For\u00a0<strong>ISPManager<\/strong>,\u00a0<strong>ISPConfig<\/strong>, SSH to your server as root and enter the following command\u00a0:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">php \/usr\/local\/softaculous\/cli.php --import_settings --file=\/path\/to\/softaculous_settings.zip<\/pre>\n\n\n\n<p><br>For&nbsp;<strong>InterWorx<\/strong>, SSH to your server as root and enter the following command&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">\/home\/interworx\/bin\/php \/usr\/local\/softaculous\/cli.php --import_settings --file=\/path\/to\/softaculous_settings.zip<\/pre>\n\n\n\n<p>For&nbsp;<strong>CentOS Web Panel<\/strong>&nbsp;SSH to your server as root and enter the following command&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">\/usr\/local\/cwp\/php\/bin\/php \/usr\/local\/softaculous\/cli.php --import_settings --file=\/path\/to\/softaculous_settings.zip<\/pre>\n","protected":false},"featured_media":0,"parent":1686,"menu_order":12,"comment_status":"closed","ping_status":"closed","template":"","docs_category":[],"class_list":["post-2221","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2221","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=2221"}],"version-history":[{"count":13,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2221\/revisions"}],"predecessor-version":[{"id":4108,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2221\/revisions\/4108"}],"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=2221"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs_category?post=2221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}