{"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":"2026-05-18T07:55:31","modified_gmt":"2026-05-18T07:55:31","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 class=\"wp-block-paragraph\">Softaculous allows you to Enable or Disable Softaculous Scripts from command line.&nbsp;<br><\/p>\n\n\n\n<p class=\"alert alert-info wp-block-paragraph\"><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\">\n<li>Use the following command to\u00a0<strong>Enable<\/strong>\u00a0scripts:<\/li>\n<\/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 class=\"wp-block-paragraph\">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\">\n<li>That&#8217;s it. Scripts will now be enabled.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Parameters<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<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>\n\n\n\n<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>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Enable All Scripts<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use the following command to\u00a0<strong>Enable<\/strong> <strong>All<\/strong>\u00a0scripts:<\/li>\n<\/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 class=\"wp-block-paragraph\">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\">\n<li>That\u2019s it. Scripts will now be enabled.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"parameters\">Parameters<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<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>\n\n\n\n<li><strong>\u2013all<\/strong>\u00a0\u2013 This parameter will enable all the scripts<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Disable Scripts<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use the following command to\u00a0<strong>Disable<\/strong>\u00a0scripts:<\/li>\n<\/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 class=\"wp-block-paragraph\">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\">\n<li>That&#8217;s it. Scripts will now be disabled.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Parameters<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In the above command the first parameter should be\u00a0<strong>&#8211;disable_script<\/strong>\u00a0as this parameter will initiate the disable script function.<\/li>\n\n\n\n<li><strong>&#8211;sid=26,67<\/strong>\u00a0&#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>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Disable Outdated Scripts<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use the following command to\u00a0<strong>Disable Outdated<\/strong>\u00a0scripts :<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">php <a href=\"https:\/\/www.softaculous.com\/docs\/admin\/softaculous-path\/\">\/path\/to\/softaculous<\/a>\/cli.php --disable_outdated_script<br><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">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_outdated_script<br><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>That&#8217;s it. Outdated Scripts will now be disabled.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Parameters<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In the above command there is only one parameter and that is <strong>&#8211;disable_outdated_script<\/strong><\/li>\n<\/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":10,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2185\/revisions"}],"predecessor-version":[{"id":6363,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2185\/revisions\/6363"}],"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}]}}