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:cache:litemage2:installation [2017/12/26 16:20]
Jackson Zhang [Updating LiteMage 2]
litespeed_wiki:cache:litemage2:installation [2020/04/06 16:00]
Jackson Zhang
Line 19: Line 19:
 Server level cache storage needs to be configured properly for your environment. Select your server setup from the **Web Server Configuration** section of our **[[litespeed_wiki:​cache:​common_installation#​web_server_configuration|LiteSpeed Cache Installation Guide]]** and follow the instructions in the **Set Server Level Cache Root** section of your respective guide. Server level cache storage needs to be configured properly for your environment. Select your server setup from the **Web Server Configuration** section of our **[[litespeed_wiki:​cache:​common_installation#​web_server_configuration|LiteSpeed Cache Installation Guide]]** and follow the instructions in the **Set Server Level Cache Root** section of your respective guide.
  
-==== Prerequisites ====+==== PHP Prerequisites ====
  
-LiteSpeed Enterprise with a working Magento 2 installation.+LiteSpeed Enterprise with a working Magento 2 installation. Magento 2 works only with PHP 7 and hence requires PHP version 7.0.2+
  
-Magento 2 requires ​PHP version ​7.0.2+5.6.x, or 5.5.x. In the command line, type ''​php -v''​ to get the PHP version used by the command line interface. This version may be different than the one used by LiteSpeed. If the version number does not match the version used by LiteSpeed, you run the risk of compatibility issues.+=== On Control panel === 
 +On control panel, you just need to select to the right PHP version. ​ 
 + 
 +=== LSWS Native Mode=== 
 +On LSWS native modeyou can run the following to check your PHP version. 
 + 
 +In the command line, type ''​php -v''​ to get the PHP version used by the command line interface. This version may be different than the one used by LiteSpeed. If the version number does not match the version used by LiteSpeed, you run the risk of compatibility issues.
  
 In the command line, run command ''​which php''​ to get the location of the command line PHP binary, for example ''/​usr/​local/​bin/​php'',​ and enter into that directory with command ''​cd /​usr/​local/​bin''​. If the ''​which''​ command doesn'​t return anything, we recommend using ''/​usr/​local/​bin/''​ or ''/​usr/​bin/''​. Next, change the current PHP binary name to something different as a backup using the ''​mv''​ command and create a symbolic link to the LiteSpeed PHP binary (or copy the binary itself into the current directory). In the command line, run command ''​which php''​ to get the location of the command line PHP binary, for example ''/​usr/​local/​bin/​php'',​ and enter into that directory with command ''​cd /​usr/​local/​bin''​. If the ''​which''​ command doesn'​t return anything, we recommend using ''/​usr/​local/​bin/''​ or ''/​usr/​bin/''​. Next, change the current PHP binary name to something different as a backup using the ''​mv''​ command and create a symbolic link to the LiteSpeed PHP binary (or copy the binary itself into the current directory).
Line 71: Line 77:
   - Log in to the Magento admin page.   - Log in to the Magento admin page.
   - In **Store > Configuration > Advanced > System**, make sure LiteMage is enabled and selected under the "Full Page Cache" setting.   - In **Store > Configuration > Advanced > System**, make sure LiteMage is enabled and selected under the "Full Page Cache" setting.
-  - In **System > Cache Management**,​ refresh the "​Configuration"​ and "Page Cache" cache types.+  - In **System > Cache Management**,​ refresh the **"​Configuration"​** and **"Page Cache"** cache types. **"​Page Cache"​** should be enabled, if not, then LiteMage can not work and LiteMage Cache Management stats won't show up.
   - To ensure that LiteMage is working correctly, visit a page that should be cache enabled and open your browser'​s inspector by right clicking the page and selecting "​inspect"​. Then select the "​Network"​ tab and refresh the page. Now select the item from the list corresponding to your current HTML page (usually the first item ending in ''​.html''​). Under "​Headers",​ check the response header for the following LiteMage related info.<​code>​   - To ensure that LiteMage is working correctly, visit a page that should be cache enabled and open your browser'​s inspector by right clicking the page and selecting "​inspect"​. Then select the "​Network"​ tab and refresh the page. Now select the item from the list corresponding to your current HTML page (usually the first item ending in ''​.html''​). Under "​Headers",​ check the response header for the following LiteMage related info.<​code>​
 X-LiteSpeed-Cache:​ hit,​litemage X-LiteSpeed-Cache:​ hit,​litemage
  • Admin
  • Last modified: 2020/07/08 19:32
  • by Lisa Clarke