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
Last revision Both sides next revision
litespeed_wiki:cpanel:whm-plugin-lscwp-management [2018/06/11 18:49]
Michael Alegre Moved CLI section to it's own page.
litespeed_wiki:cpanel:whm-plugin-lscwp-management [2019/04/24 18:03]
Michael Alegre [WordPress Dash Notifier] Added equivalent CLI commands info.
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|}} 
  
-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.+{{ :​litespeed_wiki:​cpanel:​whm-plugin-main.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 v5.1.x at the minimum.
  
 You must have a license with LSCache enabled to use these features. **[[litespeed_wiki:​licenses:​add-lscache|How To Get LSCache]]** You must have a license with LSCache enabled to use these features. **[[litespeed_wiki:​licenses:​add-lscache|How To Get LSCache]]**
  
 ===== Cache Root Setup ===== ===== Cache Root Setup =====
 +
 +Equivalent CLI commands: ''​setcacheroot''​
 +
 +Example: ''​./​lscmctl setcacheroot''​ <​nowiki>​[</​nowiki>​[[litespeed_wiki:​cpanel:​cli-lscwp-management|Go to CLI page]]<​nowiki>​]</​nowiki>​
 +
 +<​html><​br /></​html>​
 +
 Click **WHM Plugin > LiteSpeed Configuration > Cache Root Setup** Click **WHM Plugin > LiteSpeed Configuration > Cache Root Setup**
-{{:​litespeed_wiki:​cpanel:​whm-33.png?800|}}+{{ :​litespeed_wiki:​cpanel:​whm-plugin-main-config_cacheroot.png?nolink ​|}}
  
 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?800|}}+{{ :​litespeed_wiki:​cpanel:​whm-plugin-main-config-cacheroot_set.png?nolink ​|}}
  
 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 42:
 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?800|}}+{{ :​litespeed_wiki:​cpanel:​whm-plugin-main-config-cacheroot_setmissing.png?nolink ​|}}
  
 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.
  
-//**Note:** The Set Missing Cache Roots button will only appear if at least one of the two cache roots (Sever level and VHost level) is detected as not set.//+//**Note:** The Set Missing Cache Roots button will only appear if at least one of the two cache roots (Sever level or VHost level) is detected as not set.//
  
  
Line 42: Line 52:
  
  
-From the initial plugin screen you should be presented with different options under the **LiteSpeed Cache For WordPress Management** section.+From the initial plugin screen you should be presented with different options under the **LiteSpeed Cache For WordPress Management** section.
  
-{{:​litespeed_wiki:​cpanel:​whm-32.png?800|}}+{{ :​litespeed_wiki:​cpanel:​whm-plugin-main_lscwpmanage.png?nolink ​|}}
  
   * **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.
   * **Mass Enable Cache** & **Mass Disable Cache** can be used to enable/​disable LiteSpeed Cache for WordPress on all discovered WordPress installations which are not flagged (more on flags later).   * **Mass Enable Cache** & **Mass Disable Cache** can be used to enable/​disable LiteSpeed Cache for WordPress on all discovered WordPress installations which are not flagged (more on flags later).
   * **Version Manager** displays the currently active LSCache for WordPress version (more on the Active Version later). It also allows you to adjust this active LSCache for WordPress version and to upgrade and downgrade LSCache for WordPress installations based on their current version.   * **Version Manager** displays the currently active LSCache for WordPress version (more on the Active Version later). It also allows you to adjust this active LSCache for WordPress version and to upgrade and downgrade LSCache for WordPress installations based on their current version.
 +  * **WordPress Dash Notifier** is used to recommend a plugin or broadcast a message to all discovered WordPress installations using the Dash Notifier plugin for WordPress.
 ===== Manage Cache Installations ===== ===== Manage Cache Installations =====
 +Equivalent CLI commands: ''​scan'',​ ''​enable'',​ ''​disable'',​ ''​flag'',​ ''​unflag'',​ ''​status''​
 +
 +Example: ''​./​lscmctl scan''​ <​nowiki>​[</​nowiki>​[[litespeed_wiki:​cpanel:​cli-lscwp-management|Go to CLI page]]<​nowiki>​]</​nowiki>​
 +
 +<​html><​br /></​html>​
 +
 The manage view is where most of the magic happens. ​ Here you can manage LiteSpeed Cache for WordPress for your WordPress installations individually or in small groups. (There is nothing wrong with big groups, but that is what **Mass Enable Cache** and **Mass Disable Cache** are for) The manage view is where most of the magic happens. ​ Here you can manage LiteSpeed Cache for WordPress for your WordPress installations individually or in small groups. (There is nothing wrong with big groups, but that is what **Mass Enable Cache** and **Mass Disable Cache** are for)
  
 The first time, a user may see only a **Scan** button available \\ The first time, a user may see only a **Scan** button available \\
-{{:​litespeed_wiki:​cpanel:​whm-37.png?800|}} \\ +{{ :​litespeed_wiki:​cpanel:​whm-plugin-main-managelscwp_prescan.png?nolink ​|}} \\ 
-After a scan and cache is enabled, it will look like this \\ +After a scan and cache is enabled, it will look like this \\ \\ 
-{{:​litespeed_wiki:​cpanel:​whm-36.png?800|}} \\+{{ :​litespeed_wiki:​cpanel:​whm-plugin-main-managelscwp_postscan.png?nolink ​|}} \\
  
 Starting from the actual table we have the following fields: Starting from the actual table we have the following fields:
Line 85: Line 101:
  
 ===== Mass Enable Cache & Mass Disable Cache =====  ===== Mass Enable Cache & Mass Disable Cache ===== 
-{{:​litespeed_wiki:​cpanel:​whm-38.png?700|}}+Equivalent CLI commands: ''​scan'',​ ''​enable'',​ ''​disable''​ 
 + 
 +Example: ''​./​lscmctl enable -m''​ <​nowiki>​[</​nowiki>​[[litespeed_wiki:​cpanel:​cli-lscwp-management|Go to CLI page]]<​nowiki>​]</​nowiki>​ 
 + 
 +<​html><​br /></​html>​ 
 + 
 +{{ :​litespeed_wiki:​cpanel:​whm-plugin-main-massenabledisable.png?nolink ​|}}
  
 Both of these selections behave in a very similar way by allowing you to enable/​disable LiteSpeed Cache for WordPress en masse. Both of these selections behave in a very similar way by allowing you to enable/​disable LiteSpeed Cache for WordPress en masse.
Line 91: Line 113:
 When Mass Enabling/​Disabling LiteSpeed Cache for WordPress, all WordPress installations that are not currently flagged in the Manage screen will have LiteSpeed Cache for WordPress installed/​removed. If a WordPress installation is detected as manually disabled, the WHM plugin will flag it and skip it. During this operation, you should see the following output screen. When Mass Enabling/​Disabling LiteSpeed Cache for WordPress, all WordPress installations that are not currently flagged in the Manage screen will have LiteSpeed Cache for WordPress installed/​removed. If a WordPress installation is detected as manually disabled, the WHM plugin will flag it and skip it. During this operation, you should see the following output screen.
  
-{{:​litespeed_wiki:​cpanel:​whm-39.png?700|}}+{{ :​litespeed_wiki:​cpanel:​whm-plugin-main-massenabledisable-massenable_complete.png?nolink ​|}}
  
 After this operation is complete you will get a short summary message letting you know how many installations had LiteSpeed Cache for WordPress enabled/​disabled successfully and how many failed, as well as how many flagged installations were detected and skipped over. You will also be provided with both an error log and a success log shown under these results listing the installations that were enabled and those that failed along with the related error messages. After this operation is complete you will get a short summary message letting you know how many installations had LiteSpeed Cache for WordPress enabled/​disabled successfully and how many failed, as well as how many flagged installations were detected and skipped over. You will also be provided with both an error log and a success log shown under these results listing the installations that were enabled and those that failed along with the related error messages.
Line 98: Line 120:
  
 ===== Version Manager ===== ===== Version Manager =====
-{{:​litespeed_wiki:​cpanel:​whm-40.png?800|}}+Equivalent CLI commands: ''​setversion'',​ ''​upgrade''​ 
 + 
 +Example: ''​./​lscmctl setversion --latest''​ <​nowiki>​[</​nowiki>​[[litespeed_wiki:​cpanel:​cli-lscwp-management|Go to CLI page]]<​nowiki>​]</​nowiki>​ 
 + 
 +<​html><​br /></​html>​ 
 + 
 +{{ :​litespeed_wiki:​cpanel:​whm-plugin-main-lscwpvermgr.png?nolink ​|}}
  
   * **Set Active Version -** Allows you to change the Active Version of the LiteSpeed Cache for WordPress plugin. The Active Version is the LSCache for WordPress version that is used when the WHM plugin enables or mass enables caching for WordPress installations.   * **Set Active Version -** Allows you to change the Active Version of the LiteSpeed Cache for WordPress plugin. The Active Version is the LSCache for WordPress version that is used when the WHM plugin enables or mass enables caching for WordPress installations.
Line 104: Line 132:
   * **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.
  
-===== Testing =====+===== WordPress Dash Notifier ===== 
 +Equivalent CLI commands: ''​dashnotify'',​ ''​dashnotifyremove''​ 
 + 
 +Example: ''​./​lscmctl dashnotify -m -plugin litespeed-cache -msgfile /​path/​to/​msg/​file''​ <​nowiki>​[</​nowiki>​[[litespeed_wiki:​cpanel:​cli-lscwp-management|Go to CLI page]]<​nowiki>​]</​nowiki>​ 
 + 
 +<​html><​br /></​html>​ 
 + 
 +The WordPress Dash Notifier feature is used to recommend a WordPress plugin or broadcast an informational message to all discovered WordPress installations. These messages will appear in the WordPress Dashboard of each site.  
 + 
 +This tool is especially useful for hosting providers who wish to suggest LiteSpeed Cache for WordPress to their clients, rather than installing it directly for them via Mass Enable. 
 +==== Recommend A Plugin ==== 
 +{{ :​litespeed_wiki:​cpanel:​whm-plugin-main-dashnotifier_rap.png?​nolink |}} 
 + 
 +**Plugin Slug -** The unique slug of a valid WordPress plugin. A download/​activate button for this plugin will be included in the displayed notification message. 
 + 
 +A plugin'​s slug can be found by going to the plugin'​s page on [[https://​wordpress.org/​plugins/​]] and taking the last part of the URL. An entered slug can be verified by clicking the '​Verify'​ button. 
 + 
 +**WordPress Dashboard Message -** A message displayed when recommending a plugin. Simple text and HTML are supported. 
 + 
 +**Stored Messages -** Saved messages (including **Plugin Slug**) that can be loaded or deleted. "​default"​ message cannot be deleted. 
 + 
 +**Save As -** Save the current **WordPress Dashboard Message** and **Plugin Slug** using a unique ID (a-zA-Z0-9_-). 
 + 
 +**Testing ​/ Preview -** This option allows you to "​Deploy / Notify"​ a plugin recommendation or "​Remove"​ a notification from a single WordPress installation by providing it's path. As the name implies, this is useful for testing how messages will be displayed before notifying en mass. 
 + 
 +**Mass Deploy / Notify -** Recommend a plugin to all discovered WordPress installations. This will install the Dash Notifier plugin for WordPress on all discovered installations and display the recommendation message in their WordPress Dashboard. 
 + 
 +**Mass Remove -** Remove plugin recommendation message (and Dash Notifier plugin) from all discovered WordPress installations. 
 + 
 +<​html><​br /></​html>​ 
 + 
 +=== End Result === 
 +  - User does not have the plugin ('​litespeed-cache'​) installed: \\ {{ :​litespeed_wiki:​cpanel:​whm-plugin-main-dashnotifier_rap_install.png?​nolink |}} \\ 
 +  - User has plugin ('​litespeed-cache'​) installed, but deactivated:​ \\ {{ :​litespeed_wiki:​cpanel:​whm-plugin-main-dashnotifier_rap_activate.png?​nolink |}} \\ 
 +  - User has '​litespeed-cache'​ plugin installed and active: \\ * No message will be displayed 
 + 
 +==== Broadcast A Message ====  
 +{{ :​litespeed_wiki:​cpanel:​whm-plugin-main-dashnotifier_bam.png?​nolink |}} 
 + 
 +**WordPress Dashboard Message -** A message displayed when recommending a plugin. Simple text and HTML are supported. 
 + 
 +**Stored Messages -** Saved messages that can be loaded or deleted. 
 + 
 +**Save As -** Save the current **WordPress Dashboard Message** using a unique ID (a-zA-Z0-9_-). 
 + 
 +**Testing / Preview -** This option allows you to "​Deploy / Notify"​ a notification message or "​Remove"​ a notification from a single WordPress installation by providing it's path. As the name implies, this is useful for testing how messages will be displayed before notifying en mass. 
 + 
 +**Mass Deploy / Notify -** Broadcast a notification message to all discovered WordPress installations. This will install the Dash Notifier plugin for WordPress on all discovered installations and display the notification message in their WordPress Dashboard. 
 + 
 +**Mass Remove -** Remove notification message (and Dash Notifier plugin) from all discovered WordPress installations. 
 + 
 +<​html><​br /></​html>​ 
 + 
 +=== End Result === 
 +{{ :​litespeed_wiki:​cpanel:​whm-plugin-main-dashnotifier_bam_simple.png?​nolink |}} 
 + 
 +==== Other Info ==== 
 +  * WordPress users who click the "​Dismiss"​ button will not be re-notified if the provided dashboard message (and plugin slug when recommending a plugin) match those of the dismissed message. 
 +  * WordPress users who click the "Never Notify Me Again" button will have the Dash Notifier plugin uninstalled and a '​.dash_notifier_bypass'​ file created in their installation'​s root directory. These users will not be notified of any further messages while this file exists. 
 + 
 +===== Testing Caching ​=====
 To test your domains, you should see ''​X-LiteSpeed-Cache:​ hit''​ in the response header. Check [[litespeed_wiki:​cache:​lscwp:​installation#​testing|here]] for detailed verification steps. ​ To test your domains, you should see ''​X-LiteSpeed-Cache:​ hit''​ in the response header. Check [[litespeed_wiki:​cache:​lscwp:​installation#​testing|here]] for detailed verification steps. ​
  
 If ''​X-LiteSpeed-Cache:​ hit''​ cannot be seen, you may need to do more troubleshooting. For example: check if the LScache feature has been enabled in your license, if other cache plugins have been disabled, or if cache root and cache policy have been set, etc.  ​ If ''​X-LiteSpeed-Cache:​ hit''​ cannot be seen, you may need to do more troubleshooting. For example: check if the LScache feature has been enabled in your license, if other cache plugins have been disabled, or if cache root and cache policy have been set, etc.  ​
  • Admin
  • Last modified: 2019/04/24 18:04
  • by Michael Alegre