How to Install and Configure Litespeed Cache on WordPress
Last updated: January 13th 2025
Introduction
OpenLiteSpeed is an open-source version of LiteSpeed Enterprise Web Server. Compared to Apache and Nginx, OpenLiteSpeed is a lightweight, fast, and high-performance web server. It has its own LSPHP (PHP + LSAPI) implementation to load the PHP file, and it performs better than PHP-FPM. It has a web-based interface that allows you to configure and manage the server. It combines speed, security, scalability, and optimization in one package.
This article will show you how to Install and Configure OpenLiteSpeed on Webdock.
Prerequisites
- A Webdock cloud Ubuntu server with OLS installed.
- You have shell (SSH) access to your VPS.
- You have administrator access to your WordPress.
Disclaimer: As mentioned in the prerequisites, this guide assumes you have already installed OLS and WordPress. If you have not done so already please refer to the below guides:
Guide 1: OLS Installation
Guide 2: Wordpress Installation (Using our WP addon)
Install LiteSpeed Cache
Head over to Plugins > Add new plugin
Search for “LiteSpeed Cache” and proceed to install & activate it.
Configure LiteSpeed Cache
Now that you have it installed, there are tons of settings that you can enable to fully utilize this great plugin.
Enable Browser cache
Browser cache can help your visitor load the website faster the next time they load it. The cache will be loaded either from the disk or the memory of their device.
You may go ahead and enable it from your LiteSpeed Settings Cache > Browser.
Enable Object Cache
The object cache is a feature that stores the results of database queries or API calls in the server memory to further improve performance and speed up page load times.
This can be enabled by first installing the Memcached PHP extension by using the steps below.
Switch to root using:
$ sudo su
You can then install the extension by using:
# apt-get install memcached
Once done, make sure the service is running by using:
# systemctl status memcached
Once installed, you may then enable it via Cache > Object and save changes.
Make sure the connection test is Passed. If it's not, you may reach out to Webdock Support for us to make it happen.
By now, all of your Cache can be seen as enabled on the LiteSpeed Cache dashboard.
Enable Crawler
LiteSpeed Cache works by caching all the data in the server when a visitor has visited a page, this will result in the first visitor having a hard time loading the page due to they are not being served by the cached page.
Crawler fixes that by using a bot to visit your website page by page.
To start, enable it via LiteSpeed Cache Crawler > General Settings.
Next, you will need a sitemap of your website for the Crawler to use. You may use any sitemap plugin you like. In this guide, I am going to be using Yoast SEO.
Enter the sitemap URL in Crawler > Sitemap Settings > Custom Sitemap and save changes.
Refresh the map accordingly.
You can now run the crawler manually or wait for the cron job, which runs every 10 minutes by default.
Once the crawler is successfully configured, you’ll see the number of crawled URLs displayed in the green status box.
Congratulations! Your website is now equipped with LiteSpeed Cache along with Crawler to make sure all your content is cached automatically.
You may visit https://check.lscache.io/ to check if all your hard work has paid off.
Conclusion
By following these steps, you’ve successfully installed and configured LiteSpeed Cache on your WordPress site. Your site is now optimized for faster loading times and improved performance.
For further assistance, feel free to reach out to Webdock Support.
This article was written by Webdock Support Specialist Taufiq Zainal. Taufiq is passionate about Cloud Hosting and helping Webdock Customers succeed wherever he can.
Related articles
-
How to install OpenLiteSpeed on Webdock
In this article we show you how you can install the OpenLiteSpeed web server on Ubuntu Jammy.
Last updated: March 29th 2023
-
How to Deploy your First Node.js Application on your Ubuntu Web Server
Deploy a Node.js application on your Ubuntu server and how to issue SSL certificates for your Node application.
Last updated: July 19th 2023
-
How to set up WireGuard on your Webdock Server
This article details how you can quickly and easily install WireGuard on your Webdock Server.
Last updated: July 21st 2024
-
How to set up OpenVPN on your Webdock Server
This article details how you can quickly and easily set up a VPN on your Webdock server.
Last updated: November 10th 2022
-
How to Install and configure aaPanel on Ubuntu
Install aaPanel on Ubuntu as well as building a LEMP stack, pointing your domain to your server and setting SSL certificates with Let's Encrypt.
Last updated: November 10th 2022
-
How to install azuracast on Webdock
This guide shows you how to work around certain issues when installing azuracast on Webdock.
Last updated: November 10th 2022
-
How to set up Runcloud on Webdock
This article details the steps you need to go through in order to install Runcloud on a Webdock server.
Last updated: July 29th 2024
-
How to set up cPanel on Webdock
This article details the steps you need to go through in order to install cPanel on a Webdock server.
Last updated: September 23rd 2024
-
How to set up Gridpane on Webdock
This article details the steps you need to go through in order to install Gridpane on a Webdock server.
Last updated: November 10th 2022
-
How to set up Ploi on Webdock
This article details the steps you need to go through in order to install Ploi on a Webdock server.
Last updated: November 10th 2022
-
How to set up Laravel Forge on Webdock
This article details the steps you need to go through in order to install Laravel Forge on a Webdock server.
Last updated: November 10th 2022
-
How to set up Plesk on Webdock
This article details the steps you need to go through in order to install Plesk on a Webdock server.
Last updated: November 10th 2022
-
How to set up Cyberpanel on Webdock
This article details the steps you need to go through in order to install Cyberpanel on a Webdock server.
Last updated: December 9th 2023
-
How to set up SpinupWP on Webdock
This article details the steps you need to go through in order to installSpinupWP on a Webdock server.
Last updated: March 15th 2023
-
How to set up DirectAdmin on Webdock
This article details the steps you need to go through in order to install DirectAdmin on a Webdock server.
Last updated: September 1st 2023
-
How to set up Hestia on Webdock
This article details the steps you need to go through in order to install Hestia on a Webdock server.
Last updated: November 10th 2022
-
How to set up Virtualmin on Webdock
This article details the steps you need to go through in order to install Virtualmin on a Webdock server.
Last updated: November 10th 2022
-
How to install and create pipelines in Jenkins
This guide describes the step-by-step procedure of installing Jenkins and creating pipelines in Jenkins.
Last updated: November 10th 2022
-
Basic WordPress site setup with aaPanel
In this guide, we will install and setup a basic WordPress site with aaPanel.
Last updated: January 23rd 2023
-
How to use Nginx as reverse proxy and secure connections with SSL certificates
Using Nginx to proxy pass your site with SSL security.
Last updated: July 19th 2023
-
Setting up monitoring with Netdata on your Webdock server
Setting up monitoring on your server to receive alerts and to know real-time resource consumption on your server.
Last updated: July 19th 2023
-
How to Setup Python Web Application With Flask Gunicorn and Nginx
A simple Python Flask web app hosting with Gunicorn and Nginx
Last updated: July 19th 2023
-
How to Daemonize an Application with Systemd
Using systemd to autostart your application on system startup.
Last updated: July 19th 2023
-
Set-up New Relic Monitoring on Your Webdock Server
This guide provides step-by-step instructions to install New Relic to monitor your VPS.
Last updated: July 29th 2024
-
Getting Started with Ruby on Rails on Webdock
In this guide, we will show you how to get started with Ruby on Rails on your Webdock server
Last updated: July 19th 2023
-
How to Install VaultWarden on Your Webdock Server
This guide provided step-by-step instructions to Vaultwarden, an open-source Password Manager on your Webdock Server.
Last updated: July 19th 2023
-
How to Install the Latest Version of HTOP on Ubuntu Server
Instructions to install latest htop package on your Ubuntu server
Last updated: July 29th 2024
-
How to Install ImageMagick 7 on Ubuntu LEMP/LAMP stacks
Simple instructions to install ImageMagick 7 along with the PHP extension
Last updated: November 1st 2023
-
A Quick Guide to Installing Rust on Ubuntu
Instructions to install Rust
Last updated: December 18th 2023
-
How To Install Proxmox on Your Webdock Server
This article provides instructions on how to install Proxmox on your Webdock server
Last updated: July 29th 2024
-
How To Run Nextcloud on Your Webdock Ubuntu Server
Instructions to Install Nextcloud on your server with Docker
Last updated: February 13th 2024
-
The Ultimate Guide to Setting Up Mastodon server
A detailed guide with instructions to set up Mastodon on your Webdock server
Last updated: February 20th 2024
-
A Guide To Setting Up Mindustry Game Server on Ubuntu
Step-by-step instructions to set up your own Mindustry server
Last updated: November 4th 2024
-
A Guide to Installing ERPNext on Your Webdock Server
Step-by-step instructions to install ERPNext - a resource planning software - on your server
Last updated: May 28th 2024
-
A Beginner's Guide to Installing Apache Kafka on Ubuntu
Detailed instructions to get Kakfa running on Ubuntu!
Last updated: June 20th 2024
-
A Quick Guide To Installing Rocket Chat on Ubuntu
Instructions to install Rocket Chat on your Ubuntu server
Last updated: July 2nd 2024
-
How to Install Ghost CMS on a Webdock Server
Easily install Ghost CMS on your Webdock server with these instructions!
Last updated: September 2nd 2024
-
How to Install cPanel on a Webdock Ubuntu Server
Instructions for setting up cPanel on an Ubuntu server
Last updated: September 23rd 2024
-
How to Install VSCode Server on Your Webdock VPS
A short article on how to install vscode server on your Webdock server to do development right from the browser!
Last updated: January 9th 2025