Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
litespeed_wiki:cpanel:cli-lscwp-management [2018/06/12 21:33]
Michael Alegre [Scan And Enable Using A CronJob]
litespeed_wiki:cpanel:cli-lscwp-management [2018/09/18 13:55]
Michael Alegre [Command-Line Interface - LiteSpeed Cache For WordPress Management] Updated help page content.
Line 7: Line 7:
  
 <​code>​ <​code>​
-LiteSpeed Cache Manager ​Script Help Page+LiteSpeed Cache Manager ​CLI Tool v1.2.2
  
-This script requires that you have cPanel with LiteSpeed Web Server Plugin installed. 
  
 Usage: ./lscmctl [-php path/​to/​php] command [flag/​parameter] Usage: ./lscmctl [-php path/​to/​php] command [flag/​parameter]
  
  
-Possible Commands:+Possible Commands: ​
  
-scan [-n] [-e+setversion ​[--list[--latest] | [$VERSION
-        Scan for all WordPress installations. This command will create an lsc_manager_data file under the '​.../​lsws/​admin/​lscdata'​ directory. ​ +    ​List/​Set active LSCWP version. This command will list the currently active ​ 
-        Add the -n flag to only discover new installations. ​ +version when no additional input it given. Use --list to show available ​ 
-        By adding the -e flag, LSC-WP will be enabled on all installations after scanning is complete.+versions or --latest to switch to the latest available version. A valid version  
 +number can also be provided to switch to that version specifically. This must  
 +be set before performing other lscmctl operations.
  
-setversion ​[--list[$VERSION+scan [-n] [-e
-        ​List/​Set active LSCWP version. This command will list the currently active version when no additional input it given.  +    Scan for all WordPress installations. This command will create an lscm.data  
-        Use --list to show available versionsProvide a valid version number to switch to that version.+file under the "​lsws/​admin/​lscdata"​ directory. Add the -n flag to only discover  
 +new installationsBy adding the -e flag, LSC-WP will be enabled on all  
 +installations after scanning is complete.
  
 enable -m | $WP_PATH enable -m | $WP_PATH
-        ​Enables LSWCP for all discovered WordPress installations with the -m parameter or a single installtion by providing the path to the WordPress  +    ​Enables LSWCP for all discovered WordPress installations with the -m  
-        installation directory.+parameter or a single installtion by providing the path to the WordPress  
 +installation directory.
  
 disable -m | $WP_PATH disable -m | $WP_PATH
-        ​Disables LSWCP for all discovered WordPress installations with the -m parameter or a single installtion by providing the path to the WordPress  +    ​Disables LSWCP for all discovered WordPress installations with the -m  
-        installation directory.+parameter or a single installtion by providing the path to the WordPress  
 +installation directory.
  
 upgrade -m | $WP_PATH upgrade -m | $WP_PATH
-        ​Upgrade LSWCP for all discovered WordPress installations to the current active version with the -m parameter or a single ​installation ​by  +    ​Upgrade LSWCP for all discovered WordPress installations to the current ​ 
-        ​providing the path to the WordPress installation directory.+active version with the -m parameter or a single ​installtion ​by providing the  
 +path to the WordPress installation directory.
  
 flag $WP_PATH flag $WP_PATH
-        ​Flag a single WordPress installation. Flagged installations will be skipped during mass operations.+    ​Flag a single WordPress installation. Flagged installations will be skipped ​ 
 +during mass operations.
  
 unflag $WP_PATH unflag $WP_PATH
-        ​Unflag a single WordPress installation. Flagged installations will be skipped during mass operations.+    ​Unflag a single WordPress installation. Flagged installations will be  
 +skipped during mass operations.
  
 status $WP_PATH status $WP_PATH
-        ​Get the most up to date LSCWP status for the provided WordPress installation.+    ​Get the most up to date LSC-WP ​status for the provided WordPress ​ 
 +installation.
  
  
 Example Usage: Example Usage:
  
-Discover all installations+  Display currently active LSCWP version
-./​lscmctl ​scan+  ./​lscmctl ​setversion 
 + 
 +  Display selectable LSCWP versions: 
 +  ./lscmctl setversion --list 
 + 
 +  Set active LSCWP version to latest available:​ 
 +  ./lscmctl setversion --latest
  
-Discover new installations only, passing in path to php binary+  Set active LSCWP version ​to v1.5
-./​lscmctl ​-php /​path/​to/​php/​ scan -n+  ./​lscmctl ​setversion 1.5
  
-Display currently active LSCWP version+  Discover all installations
-./​lscmctl ​setversion+  ./​lscmctl ​scan
  
-Set new active LSCWP version+  Discover ​new installations only, passing in path to php binary
-./​lscmctl ​setversion 1.5+  ./​lscmctl ​-php /​path/​to/​php/​ scan -n
  
-Enable ​LSCWP on all discovered installations:​ +  ​Enable ​LSC-WP ​on all discovered installations:​ 
-./lscmctl enable -m+  ./lscmctl enable -m
  
-Disable ​LSCWP for a single installation:​ +  ​Disable ​LSC-WP ​for a single installation:​ 
-./lscmctl disable /​home/​user/​public_html/​wp+  ./lscmctl disable /​home/​user/​public_html/​wp
  
-Get LSCWP status for a single installation:​ +  ​Get LSC-WP ​status for a single installation:​ 
-./lscmctl status /​home/​user/​public_html/​wp+  ./lscmctl status /​home/​user/​public_html/​wp
 </​code>​ </​code>​
  
  • Admin
  • Last modified: 2020/01/03 19:33
  • by Michael Alegre