Setting up LSCache for WordPress on OpenLiteSpeed
Domain.tld is just a hosts entry. I run a hyper-v image with ubuntu OLS installed and copied a virtual host i have also running in OLS based on existing one. Single wp works, multisite domain works, just not multisite with directory. Caching is important for WordPress, so we paired each server with the best caching solution available for that server: LiteSpeed Cache for OpenLiteSpeed, FastCGI Cache for. GCP Marketplace offers more than 160 popular development stacks, solutions, and services optimized to run on GCP via one click deployment. I am trying to upload (modify, edit, delete ues) files to the directory with Wordpress using Filezilla. I can only use the local directory with my login name, but the Wordpress directory does not have permission to write to. There are a few ways around this. You could upload them to a directory. WordPress has a large online community for support and is a great way to get websites up and running quickly. In this guide, we will focus on how to get a WordPress instance set up and running on CentOS 7 using the OpenLiteSpeed web server.
This guide will take you through the steps to configure OpenLiteSpeed's cache module, install and activate the LSCache for WordPress plugin, and modify a virtual host to use a .htaccess file for your WordPress installation.
Pre-Installation Requirements
- OpenLiteSpeed Web Server 1.4.43+ installed
- WordPress installed
- Virtual Host set up
- Listener set up
We recommend using the ols1clk script whenever possible to quickly and easily install these requirements. If you use the script to install these, you should only have to enable the LiteSpeed Cache for WordPress plugin from within the WordPress Dashboard, and your cache should work.
Cache Module Configuration
In version 1.4.43+, the Cache Module will be automatically installed and enabled by default, so you don't need to change anything.
The following steps apply only when you want to change Cache Module Parameters or you are using an OLS version under 1.4.43:
- Navigate to Server Configuration > Modules in your Web Admin Console.
- Click the Edit button.
- Modify the Module Parameters configuration to match the following:
- Click the Save button.
- Gracefully restart your server.
Rewrite Configuration and Read From .htaccess File
Version 1.4.43+ supports the Auto Load from .htaccess
function.
Navigate to Virtual Hosts in your Web Admin Console.
Click the Rewrite tab, and modify the following settings:
LiteSpeed Cache WordPress Plugin
- Navigate to your WordPress Admin Dashboard (yoursite/wp-admin) and log in.
- Click on Plugins > Add New.
- Search for
LiteSpeed Cache
- Click on the Install button under the LiteSpeed Cache plugin name.
- Next click the 'Activate Plugin' link.
- Navigate to your LiteSpeed Web Admin Console again and gracefully restart your server.
Verify That the Cache Setup is Correct
Openlitespeed Wordpress Vs Wordpress
- Log out of your site and navigate to its homepage.
- Right-click and Inspect.
- Refresh the page.
- After the page loads, click the Network tab from the Inspector.
- Locate and click on the resource that contains your URL.
- Click the Headers sub-tab.
- Scroll down to the Response Headers section. You should see the following Response Headers:
X-LiteSpeed-Cache: hit
Possible Errors and How to Resolve Them
Neither X-LiteSpeed-Cache Header Nor X-LiteSpeed-Cache-Control Header
If you have this issue, things did not get set up properly in both the server and cache. Verify that your OLS configurations are correct and uninstall and reinstall the LiteSpeed Cache for WordPress plugin. If, after both these steps, you still have a problem, uninstall both and try again from the start.
Always X-LiteSpeed-Cache: miss
If you receive an X-LiteSpeed-Cache-Control
header, but never receive an X-LiteSpeed-Cache: hit
header, caching is not working.
The 3 most common causes of this case and their fixes are:
- Something went wrong during installation – Navigate to your WordPress Admin Panel and uninstall and reinstall the LiteSpeed Cache plugin.
- Cache is disabled – Navigate to your WordPress Admin Panel and enable the LiteSpeed Cache plugin.
- You are using multi-site – For multi-site WordPress installations, by default the cache plugin is not active. Navigate to your WordPress Admin Panel and enable the LiteSpeed Cache plugin.
X-LiteSpeed-Cache-Control Header But No X-LiteSpeed-Cache: hit/miss Header
If you receive an X-LiteSpeed-Cache-Control
header but no X-LiteSpeed-Cache: hit
or X-LiteSpeed-Cache: miss
header, your server cache lookup settings may be misconfigured.
Verify that virtual host and context level cache module settings do not overwrite the checkPublicCache 1
cache module setting for this site.
X-LiteSpeed-Cache: no-cache
If you are receiving the X-LiteSpeed-Cache: no-cache
response header, it is likely that you are logged-in. Please log out and try refreshing the page again.
If you have an issue that is not listed above or your issue was not solved by following the corresponding steps, please post your issue with as much detail as you can in our OLS forums: https://forum.openlitespeed.org/
If you believe your problem to be a bug, please send an email to bug (at) litespeedtech (dot) com with as much detail as you can to submit a bug report to our OpenLiteSpeed devs.
OpenLiteSpeed is the Open Source edition of LiteSpeed Web Server Enterprise.
Both servers are actively developed and maintained by the same team, and are held to the same high-quality coding standard.
OpenLiteSpeed contains all of the essential features found in LiteSpeed Enterprise, and represents our commitment to support the Open Source community.
OpenLiteSpeed combines speed, security, scalability, optimization and simplicity in one friendly open-source package.
Download OpenLiteSpeed today, and see what it can do for your sites!
Event-Driven ArchitectureEvent driven processes, less overhead, and enormous scalability. Keep your existing hardware.
Understands Apache Rewrite RulesOpenLiteSpeed is mod_rewrite compatible, with no new syntax to learn. Continue to use your existing rewrite rules.
Friendly Admin InterfacesOLS comes with a built-in WebAdmin GUI. Control panel support is available with CyberPanel.
Built for Speed and SecurityFeatures Anti-DDoS connection and bandwidth throttling, ModSecurity v3 integration, and more.
Intelligent Cache AccelerationBuilt-in full-page cache module is highly-customizable and efficient for an exceptional user experience.
Automatically implement Google's PageSpeed optimization system with the mod_pagespeed module.
PHP LiteSpeed SAPINative SAPI for PHP allows external applications written in PHP to run up to 50% faster.
One-Click InstallationInstall OpenLiteSpeed, MariaDB and WordPress on various operating systems with just one click.
WordPress AccelerationExperience a measurable performance boost with OpenLiteSpeed and LSCache for WordPress.
The Power of LiteSpeed, the Freedom of Open Source
OpenLiteSpeed is free to download, use, distribute, and modify under GPLv3.
Openlitespeed Wordpress Ubuntu
Want to use OpenLiteSpeed in a proprietary product? Contact us about obtaining an OEM license.
See the maximized performance you can get from your current hardware, just by switching to OpenLiteSpeed!
We compare OpenLiteSpeed against other web servers in a series of benchmarks designed to measure server response time, communication time with PHP, WordPress acceleration, and more.
Your Video Guide to OpenLiteSpeed Installation and Configuration
Whether you use our one-click options, or take advantage of CyberPanel support, installation of OpenLiteSpeed is easy.
Automatically implement Google's PageSpeed optimization system with the mod_pagespeed module.
PHP LiteSpeed SAPINative SAPI for PHP allows external applications written in PHP to run up to 50% faster.
One-Click InstallationInstall OpenLiteSpeed, MariaDB and WordPress on various operating systems with just one click.
WordPress AccelerationExperience a measurable performance boost with OpenLiteSpeed and LSCache for WordPress.
The Power of LiteSpeed, the Freedom of Open Source
OpenLiteSpeed is free to download, use, distribute, and modify under GPLv3.
Openlitespeed Wordpress Ubuntu
Want to use OpenLiteSpeed in a proprietary product? Contact us about obtaining an OEM license.
See the maximized performance you can get from your current hardware, just by switching to OpenLiteSpeed!
We compare OpenLiteSpeed against other web servers in a series of benchmarks designed to measure server response time, communication time with PHP, WordPress acceleration, and more.
Your Video Guide to OpenLiteSpeed Installation and Configuration
Whether you use our one-click options, or take advantage of CyberPanel support, installation of OpenLiteSpeed is easy.
Launch an Existing Cloud Image
We've prebuilt a collection of images for popular cloud platforms, allowing you to easily launch an instance in three minutes or less!
Compatible Control Panels
OpenLiteSpeed is compatible with some of the most popular control panels, check it out!
Knowledge Base
Tips and Tutorials for Using OpenLiteSpeed
CyberPanel Supported
A Complete Sysadmin Package for OpenLiteSpeed