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
Next revision Both sides next revision
litespeed_wiki:cpanel:whm-plugin-lscwp-management [2018/05/29 18:39]
Eric Leu [WHM Plugin - LiteSpeed Cache For WordPress Management]
litespeed_wiki:cpanel:whm-plugin-lscwp-management [2019/04/19 20:27]
Michael Alegre [WHM Plugin - LiteSpeed Cache For WordPress Management]
Line 1: Line 1:
 ====== WHM Plugin - LiteSpeed Cache For WordPress Management ====== ====== WHM Plugin - LiteSpeed Cache For WordPress Management ======
 +This page covers the various cache management options available through our WHM plugin'​s GUI interface. Most of these options are also available through the command line as the root user using our [[litespeed_wiki:​cpanel:​cli-lscwp-management|lscmctl CLI script]].
 +
 The LiteSpeed WHM plugin contains a section for managing LiteSpeed Cache for WordPress. ​ This wiki entry will guide you through the different operations and management actions you can take when using our plugin. The LiteSpeed WHM plugin contains a section for managing LiteSpeed Cache for WordPress. ​ This wiki entry will guide you through the different operations and management actions you can take when using our plugin.
-{{:​litespeed_wiki:​cpanel:​whm-31.png?​800|}}+ 
 +{{ :​litespeed_wiki:​cpanel:​whm-31.png?​nolink ​|}}
  
 If you do not see the **LiteSpeed Cache For WordPress Management** section on your LiteSpeed WHM plugin screen, please upgrade LiteSpeed Web Server to 5.1.x at the minimum. If you do not see the **LiteSpeed Cache For WordPress Management** section on your LiteSpeed WHM plugin screen, please upgrade LiteSpeed Web Server to 5.1.x at the minimum.
Line 9: Line 12:
 ===== Cache Root Setup ===== ===== Cache Root Setup =====
 Click **WHM Plugin > LiteSpeed Configuration > Cache Root Setup** Click **WHM Plugin > LiteSpeed Configuration > Cache Root Setup**
-{{:​litespeed_wiki:​cpanel:​whm-33.png?​|}}+{{:​litespeed_wiki:​cpanel:​whm-33.png?​800|}}
  
 This screen searches for Server level cache root definitions in either the ''/​usr/​local/​apache/​conf/​includes/​pre_main_global.conf''​ file or in the LiteSpeed Web Server Web Admin under **Server > Cache > Cache Storage Settings > Storage Path** setting. \\ This screen searches for Server level cache root definitions in either the ''/​usr/​local/​apache/​conf/​includes/​pre_main_global.conf''​ file or in the LiteSpeed Web Server Web Admin under **Server > Cache > Cache Storage Settings > Storage Path** setting. \\
-{{:​litespeed_wiki:​cpanel:​whm-34.png?​|}}+{{:​litespeed_wiki:​cpanel:​whm-34.png?​800|}}
  
 If it is defined in ''​pre_main_global.conf''​ it should look something like this: If it is defined in ''​pre_main_global.conf''​ it should look something like this:
Line 32: Line 35:
 Where ''​lscache''​ is the CacheRoot path. In this case, the VHost level cache root will be set to ''/​home/<​user_folder>/​lscache''​ Where ''​lscache''​ is the CacheRoot path. In this case, the VHost level cache root will be set to ''/​home/<​user_folder>/​lscache''​
  
-{{:​litespeed_wiki:​cpanel:​whm-35.png?​|}}+{{:​litespeed_wiki:​cpanel:​whm-35.png?​800|}}
  
 The **Set Missing Cache Roots** button sets Server level and VHost level Cache Root definitions if they are detected as not set. The **Set Missing Cache Roots** button sets Server level and VHost level Cache Root definitions if they are detected as not set.
Line 44: Line 47:
 From the initial plugin screen you should be presented with 3 different options under the **LiteSpeed Cache For WordPress Management** section. From the initial plugin screen you should be presented with 3 different options under the **LiteSpeed Cache For WordPress Management** section.
  
-{{:​litespeed_wiki:​cpanel:​whm-32.png?​|}}+{{:​litespeed_wiki:​cpanel:​whm-32.png?​800|}}
  
   * **Manage Cache Installations** allows you to manage LiteSpeed Cache for WordPress on your individual WordPress installations.   * **Manage Cache Installations** allows you to manage LiteSpeed Cache for WordPress on your individual WordPress installations.
Line 103: Line 106:
  
   * **Force Version Change For All Existing Installations -** Allows you to change the version of existing LiteSpeed Cache for WordPress installations,​ allowing you to select which to change based on current cache version.   * **Force Version Change For All Existing Installations -** Allows you to change the version of existing LiteSpeed Cache for WordPress installations,​ allowing you to select which to change based on current cache version.
- 
-===== Command-Line Interface ===== 
-As of LiteSpeed Enterprise 5.1.14, in addition to the plugin features above, a command-line interface script also exists ​ under ''/​usr/​local/​lsws/​admin/​misc/​lscmctl''​ for executing basic cache management actions through the terminal or in a cron job. The help page for this script is included below. 
- 
-[[https://​blog.litespeedtech.com/​2017/​06/​28/​wpw-autodiscovery-lscache-and-the-command-line/​|Learn more about the CLI script on our blog.]] 
- 
-<​code>​ 
-LiteSpeed Cache Manager Script Help Page 
- 
-This script requires that you have cPanel with LiteSpeed Web Server Plugin installed. 
- 
-Usage: ./lscmctl [-php path/​to/​php] command [flag/​parameter] 
- 
- 
-Possible Commands: 
- 
-scan [-n] [-e] 
-        Scan for all WordPress installations. This command will create an lsc_manager_data file under the '​.../​lsws/​admin/​lscdata'​ directory. Add the -n flag to only discover new installations. By adding the -e flag, LSC-WP will be enabled on all installations after scanning is complete. 
- 
-setversion [--list] | [$VERSION] 
-        List/Set active LSCWP version. This command will list the currently active version when no additional input it given. Use --list to show available versions. Provide a valid version number to switch to that version. 
- 
-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 installation directory. 
- 
-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 installation directory. 
- 
-upgrade -m | $WP_PATH 
-        Upgrade LSWCP for all discovered WordPress installations to the current active version with the -m parameter or a single installtion by providing the path to the WordPress installation directory. 
- 
-flag $WP_PATH 
-        Flag a single WordPress installation. Flagged installations will be skipped during mass operations. 
- 
-unflag $WP_PATH 
-        Unflag a single WordPress installation. Flagged installations will be skipped during mass operations. 
- 
-status $WP_PATH 
-        Get the most up to date LSCWP status for the provided WordPress installation. 
- 
- 
-Example Usage: 
- 
-Discover all installations:​ 
-./lscmctl scan 
- 
-Discover new installations only, passing in path to php binary: 
-./lscmctl -php /​path/​to/​php/​ scan -n 
- 
-Display currently active LSCWP version: 
-./lscmctl setversion 
- 
-Set new active LSCWP version: 
-./lscmctl setversion 1.5 
- 
-Enable LSCWP on all discovered installations:​ 
-./lscmctl enable -m 
- 
-Disable LSCWP for a single installation:​ 
-./lscmctl disable /​home/​user/​public_html/​wp 
- 
-Get LSCWP status for a single installation:​ 
-./lscmctl status /​home/​user/​public_html/​wp 
-</​code>​ 
  
 ===== Testing ===== ===== Testing =====
  • Admin
  • Last modified: 2019/04/24 18:04
  • by Michael Alegre