How do I enable LiteMage?
There are a few steps involved in enabling the LiteMage Caching for your Magento Store. These can be broken down into three steps (which are detailed below).-
Enable the LiteMage module: You will need to enable the LiteMage Module via your .htaccess file located in the root Magento installation directory. You can place the code at the top of the default .htaccess used by Magento or at the bottom; the choice is yours.
<IfModule Litespeed> LiteMage on </IfModule>
Please note: Without this being in your .htaccess, the LiteMage system will not function, so it is important to check the .htaccess on each update to Magento to make sure those lines still exist—if not, then add them back in. -
Install the Magento LiteMage extension: You will need to install the Magento LiteMage extension into your Magento installation.
- Enable SSH for your service (see this guide on how to do this).
- Increase your PHP memory_limit to 512M (see this guide on how to do this).
-
SSH into your shared hosting service and run the following commands: Please note: Depending on the size of your store, this may take several minutes, and whilst recompiling, your store may be inaccessible.
- You can now log out of SSH and disable it if you no longer have a need for it.
-
Configure the Magento LiteMage extension:
- Log in to the Magento Admin Panel using your login credentials.
- Navigate to Stores → Configuration.
- In the left side menu, go to Advanced → System → Full Page Cache.
- Set the Caching Application to LiteMage Cache within LiteSpeed Server.
- Click the Save Config button at the top of the screen.
- Navigate to System → Cache Management and under Cache Storage Management, check all of the boxes.
- Click the Submit button to refresh the cache.
Before continuing
- LiteMage Cache is only available on our new Shared and Reseller hosting. Our legacy Economy, Business, and WHM Multi servers do not support LiteMage Cache.
- You should follow these steps exactly as described, since not following them may make your store not operate properly.
- Make sure you disable all ‘Full Page Cache’ extensions—these will interfere with LiteMage. Examples include ‘Extendware Full Page Cache’.
- If you are using Magento Compilation (System → Tools → Compilation), then you should disable it first before installing any extensions.
- Take a backup before proceeding!
- IonCube Loader is required for the Magento LiteMage Extension, so make sure you have enabled it. If you’re unsure, login to cPanel and navigate to Select PHP Version and confirm this is enabled.