{"id":2185,"date":"2019-01-02T08:06:32","date_gmt":"2019-01-02T08:06:32","guid":{"rendered":"http:\/\/www.softaculous.com\/blog\/docs\/cli\/enable-disable-scripts-cli\/"},"modified":"2025-01-31T12:10:19","modified_gmt":"2025-01-31T12:10:19","slug":"enable-disable-scripts-cli","status":"publish","type":"docs","link":"https:\/\/www.softaculous.com\/blog\/docs\/cli\/enable-disable-scripts-cli\/","title":{"rendered":"Enable\/Disable Scripts CLI"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Overview<\/h3>\n\n\n\n<p>Softaculous allows you to Enable or Disable Softaculous Scripts from command line.&nbsp;<br><\/p>\n\n\n\n<p class=\"alert alert-info\"><strong>Note&nbsp;<\/strong>: This has been added in Softaculous 4.7.9<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Enable Scripts<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Use the following command to&nbsp;<strong>Enable<\/strong>&nbsp;scripts:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">php \/path\/to\/softaculous\/cli.php --enable_script --sid=26,67\n<\/pre>\n\n\n\n<p>E.g. for cPanel&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 --enable_script --sid=26,67\n<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>That&#8217;s it. Scripts will now be enabled.<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Parameters<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>In the above command the first parameter should be\u00a0<strong>&#8211;enable_script<\/strong>\u00a0as this parameter will initiate the enable script function.<\/li><li><strong>&#8211;sid=26,67<\/strong>\u00a0&#8211; This is the script id. You can enable a script or a number of scripts using comma separated list of script ids. 26 is for WordPress, 67 for Magento, etc. You can find the script id in \/path\/to\/softaculous\/enduser\/scripts.ser<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Enable All Scripts<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Use the following command to\u00a0<strong>Enable<\/strong> <strong>All<\/strong>\u00a0scripts:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">php \/path\/to\/softaculous\/cli.php --enable_script --all\n<\/pre>\n\n\n\n<p>E.g. for cPanel&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted php hljs\">\/usr\/local\/cpanel\/3rdparty\/bin\/php \/usr\/local\/cpanel\/whostmgr\/docroot\/cgi\/softaculous\/cli.php --enable_script --all\n<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>That\u2019s it. Scripts will now be enabled.<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"parameters\">Parameters<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>In the above command the first parameter should be\u00a0<strong>\u2013enable_script<\/strong>\u00a0as this parameter will initiate the enable script function.<\/li><li><strong>\u2013all<\/strong>\u00a0\u2013 This parameter will enable all the scripts<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Disable Scripts<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Use the following command to&nbsp;<strong>Disable<\/strong>&nbsp;scripts:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">php \/path\/to\/softaculous\/cli.php --disable_script --sid=26,67\n<\/pre>\n\n\n\n<p>E.g. for cPanel&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 --disable_script --sid=26,67\n<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>That&#8217;s it. Scripts will now be disabled.<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Parameters<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>In the above command the first parameter should be&nbsp;<strong>&#8211;disable_script<\/strong>&nbsp;as this parameter will initiate the disable script function.<\/li><li><strong>&#8211;sid=26,67<\/strong>&nbsp;&#8211; This is the script id. You can disable a script or a number of scripts using comma separated list of script id. 26 is for WordPress, 67 for Magento, etc. You can find the script id in \/path\/to\/softaculous\/enduser\/scripts.ser<\/li><\/ul>\n","protected":false},"featured_media":0,"parent":1686,"menu_order":10,"comment_status":"closed","ping_status":"closed","template":"","docs_category":[],"class_list":["post-2185","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2185","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=2185"}],"version-history":[{"count":8,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2185\/revisions"}],"predecessor-version":[{"id":3885,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2185\/revisions\/3885"}],"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=2185"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs_category?post=2185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}