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
Previous revision
litespeed_wiki:cpanel:cli-lscwp-management [2019/07/01 18:07]
Michael Alegre
litespeed_wiki:cpanel:cli-lscwp-management [2020/01/03 19:33] (current)
Michael Alegre [Command-Line Interface - LiteSpeed Cache For WordPress Management] Updated help page content to that in v1.9 of the lcsmctl script.
Line 11: Line 11:
  
 <​code>​ <​code>​
-LiteSpeed Cache Manager CLI Tool v1.4+LiteSpeed Cache Manager CLI Tool v1.9
  
  
Line 59: Line 59:
 during mass operations. during mass operations.
  
-unflag <wp path> +unflag ​{-m | <wp path>} 
-    Unflag a single WordPress installation. Flagged installations will be  +    Unflag ​all discovered WordPress installations with the -m parameter or  
-skipped during mass operations.+single ​installation by providing the path to the WordPress installation ​ 
 +directory. Flagged installations will be skipped during mass operations.
  
 status <wp path> status <wp path>
Line 73: Line 74:
 installation directory. A plugin slug can be included to have an  installation directory. A plugin slug can be included to have an 
 install/​activate button for that plugin added to the message as well.  install/​activate button for that plugin added to the message as well. 
-Installations containing a '​.dash_notifier_bypass'​ file will not be notfiied.+Installations containing a '​.dash_notifier_bypass'​ file will not be notified.
  
 dashnotifyremove {-m | <wp path>} dashnotifyremove {-m | <wp path>}
Line 80: Line 81:
 providing the path to the WordPress installation directory. providing the path to the WordPress installation directory.
  
-cpanelplugin {--install | --uninstall}+cpanelplugin {--install | --uninstall ​| -autoinstall [{0 | 1}]}
     [cPanel/WHM Environment Only] Install or uninstall the LiteSpeed user-end ​     [cPanel/WHM Environment Only] Install or uninstall the LiteSpeed user-end ​
-plugin for cPanel for all cPanel accounts. The plugin will appear as "​LiteSpeed ​ +plugin for cPanel for all cPanel accounts ​using the '​--install'​ and  
-Web Cache Manager"​ under '​Advanced'​ in the user's cPanel dashboard.+'​--uninstall'​ input flags. The plugin will appear as "​LiteSpeed Web Cache  
 +Manager"​ under '​Advanced'​ in the user's cPanel dashboard. The '​-autoinstall'​  
 +input param can be used to check the current auto install status. When turned  
 +on, the cPanel plugin will be automatically installed when installing/​updating  
 +the WHM plugin. Use '​-autoinstall {0 | 1}' to manually turn this off and on  
 +respectively. 
 + 
 +addinstalls {-wpinstall <wp path> <​docroot>​ <server name> <site url>} | -wpinstallsfile <​installs file path>} 
 +    Add a WordPress installation to existing scan data. This "​custom"​ data will  
 +be stored in it's own lscm.data.cust data file under the "​lsws/​admin/​lscdata"​  
 +directory. A single installation can be added using the -wpinstall parameter  
 +with space separated list of installation info in the required order (<wp path>  
 +<​docroot>​ <server name> <site url>). Multiple installations can be added at  
 +once using the -wpinstallsfile parameter to provide the path to an installs  
 +file containing a newline separated list of installation info in the expected  
 +format. 
 + 
 +--update-lib  
 +    Update the lscmctl script and the required shared library to their latest  
 +versions.
  
  
Line 109: Line 129:
   ./lscmctl scan   ./lscmctl scan
  
-  Discover new installations only, passing in path to php binary:+  Discover new installations only, passing in path to PHP binary:
   ./lscmctl -php /​path/​to/​php/​ scan -n   ./lscmctl -php /​path/​to/​php/​ scan -n
  
Line 132: Line 152:
   [cPanel/WHM Environment Only] Install the LiteSpeed user-end plugin for cPanel for all cPanel accounts:   [cPanel/WHM Environment Only] Install the LiteSpeed user-end plugin for cPanel for all cPanel accounts:
   ./lscmctl cpanelplugin --install   ./lscmctl cpanelplugin --install
 +
 +  [cPanel/WHM Environment Only] Turn off auto install for the LiteSpeed user-end plugin for cPanel:
 +  ./lscmctl cpanelplugin -autoinstall 0
 +
 +  Add a single WordPress Installations to custom data file.:
 +  ./lscmctl addinstalls -wpinstall /​home/​user/​public_html/​wp /​home/​user/​public_html user.com user.com/wp
 +
 +  Add multiple WordPress Installations to custom data file using an installs file.:
 +  ./lscmctl addinstalls -wpinstallsfile /​path/​to/​installs/​file
 </​code>​ </​code>​
 ===== Scan And Enable Using A CronJob ===== ===== Scan And Enable Using A CronJob =====
  • Admin
  • Last modified: 2019/07/01 18:07
  • by Michael Alegre