LiteSpeed & LiteMage for Magento 1 (Firstserv Guide)
All Firstserv shared and business hosting servers run LiteSpeed Web Server. On Business hosting plans that support Magento, LiteMage is also available—allowing Magento to take full advantage of LiteSpeed’s powerful caching system.
If you’re running Magento 1, we strongly recommend installing and enabling LiteMage to significantly improve your site’s performance.
What Does LiteSpeed / LiteMage Do?
In simple terms, caching makes your website much faster.
Without caching
When a visitor loads your site:
- The server processes every component (HTML, images, scripts, database queries)
- Builds the page dynamically
- Sends it to the browser
This takes time—and delays can result in a poor user experience and lost visitors.
With caching
- A ready-made version of the page is stored
- Future visitors are served this version instantly
✅ Benefits:
- Faster page load times
- Reduced server load
- Better user experience
- Improved conversions
Handling Dynamic Content (ESI)
Magento often uses personalised data (e.g. user accounts, carts). LiteMage supports this with Edge Side Includes (ESI):
- Static parts of the page are cached
- Dynamic sections are inserted separately
✅ This approach maintains both speed and personalisation.
Why Use LiteMage?
- Dramatically improves Magento site speed
- Reduces server resource usage
- Supports both static and dynamic content
- Minimal setup required for noticeable gains
Prerequisites
Before installing LiteMage:
- Magento 1 must be installed
- You need Admin access to Magento
- SSH access is required
- Basic command-line knowledge is recommended
- The PHP
execfunction must be temporarily enabled (and disabled afterwards)
Step 1: Enable LiteMage in .htaccess
Add the following to your .htaccess file (in /public_html):
Step 2: Adjust Magento Settings
Disable Session ID in URLs
- Log in to your Magento Admin
- Go to: System → Configuration → Web
- Expand Session Validation Settings
- Set Use SID on Frontend to No
- Save changes
Disable Compilation (if enabled)
- Go to: System → Tools → Compilation
- Click Disable
Step 3: Install LiteMage Plugin
- Download the LiteMage plugin for Magento 1.x
- Go to:
System → Magento Connect → Magento Connect Manager - Log in when prompted
- Under Direct Package File Upload:
- Upload the downloaded package
- Click Install
✅ Wait for confirmation that installation is complete.
Return to Admin Panel
- Click Return to Admin
Re-enable Compilation (Optional)
- Go to: System → Tools → Compilation
- Click:
- Run Compilation Process
- Then Enable
Step 4: Enable LiteMage in Magento
- Go to:
System → Configuration - In the left menu, select:
LiteMage Cache → LiteMage Configuration
⚠️ If you get a 404 error:
- Log out and log back into the admin panel, then retry
Enable Cache
- Expand General Settings
- Set:
- Enable LiteMage Cache: Yes
- Click Save Config
Optional: Restrict Cache to Test IPs
For testing:
- Expand Developer Testing
- Add your IP address
- Save changes
✅ Remove IP restrictions to enable caching for all users.
Step 5: Refresh Magento Cache
- Go to:
System → Cache Management - Select Configuration
- Click Submit
Verifying LiteMage is Working
You can check if LiteMage is active using your browser’s developer tools:
Steps:
- Open Developer Tools → Network tab
- Load your Magento site
- Click the first request
- View response headers
Look for These Headers:
- ✅
x-litespeed-cache: hit,litemage→ Cache working - ⚠️
x-litespeed-cache: miss,litemage→ Refresh page (cache not yet built)
Best Practices
- Allow time for cache to build after setup
- Clear cache after changes to your site
- Regularly test performance improvements
- Keep Magento and extensions updated
Summary
LiteMage enables Magento 1 sites to:
- Serve pages faster using LiteSpeed caching
- Reduce server workload
- Support dynamic content efficiently
- Deliver a smoother user experience
If you need help installing or configuring LiteMage on your Firstserv hosting, the Firstserv support team is always happy to assist.
