Litespeed Cache – Really faster? (My settings)

last updated 8 months ago

In this personal review, I would like to highlight the advantages of Litespeed hosting compared to traditional Apache hosting.

What did I notice? In my tests, I found that Litespeed not only offers impressive speed but also optimized performance, especially when processing concurrent requests.

Why is that? This is primarily due to the intelligent caching technology and the efficient handling of static and dynamic content that Litespeed enables. While Apache works well in many cases, Litespeed delivers significantly better response times and faster loading times, especially for high-traffic websites. Litespeed is also optimized for WordPress.

So: I'll share my specific results and experiences here to illustrate why switching to Litespeed hosting could be worthwhile for many website owners. It certainly has been for me!


What is Litespeed?

Litespeed is a web hosting technology that uses the Litespeed web server to deliver websites faster and more efficiently.

Unlike traditional Apache web servers, Litespeed offers improved performance through its ability to process dynamic content faster and support a higher number of concurrent connections.

This is especially beneficial for high-traffic websites, as it significantly reduces loading times and optimizes the user experience. Litespeed hosting often also includes built-in features such as HTTP/3 support, caching mechanisms, and security features that further improve website performance and security.

These advantages make Litespeed hosting increasingly the preferred choice for businesses and web developers who value speed and reliability.

Speed comparison

criteriaLitespeedApacheNginx
architectureEvent-driven, asynchronousProcess-basedEvent-driven, asynchronous
Static contentVery fastAverageVery fast
Dynamic contentOptimized (by LSCache)AverageGood, but no built-in caching solution
Caching systemBuilt-in LSCache supportNo own cachingExternal caching (e.g. FastCGI cache)
Memory usageVery lowHigh (more memory per request)Low
CPU usageLow, efficientHigh because process-basedLow to moderate
Performance under high loadVery goodWeakVery good
SSL supportIntegrated optimizationSupported, but less efficientFast and efficient
HTTP/2 & HTTP/3 supportFull supportHTTP/2 supportHTTP/2 support
AvailabilityCommercial, paidOpen source, freeOpen source, free
Compatibility with .htaccessYes, fully supportedYesNo
popularityIncreasing, especially for WordPressStill widespreadVery popular, especially for high-traffic sites
Easy configurationSimply through LSPanelMore complex with performance tuningRelatively simple
MultithreadingYesNoYes
HTTP/3 supportYes (fully integrated)NoYes
Litespeed vs Apache vs nginx

Speed comparison: WordPress

Speed comparison with WordPress

Litespeed is particularly strong for websites with high traffic and dynamic content (e.g., WordPress). Nginx is well-suited for static sites and high loads, while Apache remains very flexible and widely used.

OpenLitespeed vs Litespeed Enterprise

Here is a clear comparison table between OpenLiteSpeed and LiteSpeed Enterprise:

featureOpenLiteSpeedLiteSpeed Enterprise
LicenseOpen source, free (forever)Commercial license, free trial (14 days) available
compatibilityCyberPanel, DirectAdmincPanel, Plesk, DirectAdmin, CyberPanel and more
Cache EnginePowerful cache engineEven more powerful cache engine
.htaccess handlingRequires restart for new .htaccess filesDetects changes automatically without rebooting
Worker processesUnlimited worker processesNumber of worker processes depending on the license
mod_security EngineIndustry standard mod_security libraryProprietary, more powerful mod_security engine
Rewrite RulesApache-compatible rewrite rulesFull Apache compatibility
SSL supportStandard SSL supportSSL Handshake Offloading
SupportCommunity supportCommercial support
Recommended useIndividual websites that are not updated frequentlyShared hosting, frequent updates
OpenLitespeed vs LiteSpeed Enterprise

While OpenLiteSpeed is available free of charge as an open source version and offers solid performance, LiteSpeed Enterprise is aimed specifically at enterprise and professional applications that require advanced features and support.

Overview of the differences:

  1. .htaccess: LiteSpeed detects changes automatically, OpenLiteSpeed requires a restart.
  2. ModSecurity: LiteSpeed uses an optimized proprietary engine, OpenLiteSpeed uses the standard ModSecurity v3.
  3. IT I: LiteSpeed supports ESI, OpenLiteSpeed does not.
  4. SSL handshake: LiteSpeed supports asynchronous SSL, OpenLiteSpeed does not.
  5. WordPress protection: LiteSpeed has built-in protection against brute force attacks, OpenLiteSpeed does not.
  6. Control Panels: LiteSpeed supports all Apache-compatible panels, OpenLiteSpeed only a growing selection.
  7. Licensing: LiteSpeed is licensed, OpenLiteSpeed is free and open source.

Switch to Litespeed – How does it work?

  • First, you need to find a web hosting provider that supports Litespeed. Many providers offer Litespeed servers. Alternatively, you can install Cyberpanel on a VPS/root server and simply host Litespeed there yourself. I'll explain how to do this in the next step.
  • Before you switch, create a backup of your website (e.g. with All-in-One Migrator). Then save the backup to your local hard drive.
  • Then transfer your website data to the new Litespeed server. This can be done manually or with a tool.
  • Change the DNS settings of your domain (e.g. at Cloudflare) so that it points to the new server.
  • Finally, check that everything on your website is working.

Install Litespeed with CyberPanel (Ubuntu)

To use Litespeed, you'll need to install Cyberpanel on a VPS or root server, where you can then host Litespeed. This process is relatively simple and offers the opportunity to significantly increase your website's performance. Cyberpanel offers a user-friendly interface that makes installing and managing Litespeed effortless.

requirements

  • A server with Ubuntu 18.04 (or higher).
  • At least 2 GB RAM and 10 GB of free storage space.
  • Static IP address on the server.
  • Root access or sudo user.

Step 1: Update the server

Before you begin the installation, make sure your server is up to date:

apt-get update -y
apt-get upgrade -y

Then restart your server:

reboot

Step 2: Download CyberPanel installation script

Download the CyberPanel installation script:

wget https://cyberpanel.net/install.sh

Step 3: Installing CyberPanel

Start the installation script:

bash install.sh

A selection is displayed:

1. Install CyberPanel
2. Install Add-ons
3. Exit

Select the option 1 to install CyberPanel.

Step 4: Select LiteSpeed

Now select the type of LiteSpeed web server:

1. Install CyberPanel with OpenLiteSpeed
2. Install CyberPanel with LiteSpeed Enterprise
  • OpenLiteSpeed is the free version and is sufficient for most requirements.
  • LiteSpeed Enterprise offers advanced features, but is subject to a fee.

Above you can find a comparison between both versions

For this guide we choose OpenLiteSpeed (Option 1).

Step 5: Set password for the admin user

You will then be prompted to set the admin password:

Choose [d]fault, [r]andom or [s]et password: [d/r/s]

Choose either d for the default password or sto set your own password.

Step 6: Additional options during installation

You will be asked if you want to install additional features:

  • JS/CSS files from JS Delivr load (Improves loading times in Asia): y
  • Memcached extension for PHP install: y
  • LiteSpeed Memcached install: y
  • Redis extension for PHP install: y
  • Redis install: y

Step 7: CyberPanel successfully installed

After successful installation, you will receive an overview with the access data:

CyberPanel Successfully Installed
Visit: https://your-server-ip:8090
Panel username: admin
Panel password: your-password

Open the specified URL (https://your-server-ip:8090) in your browser to access the CyberPanel.

Step 8: Open firewall ports

If you have a firewall configured, make sure the following ports are open:

  • Port 8090 for the CyberPanel.
  • Port 80 and 443 for HTTP/HTTPS.
  • Port 21 and 40110-40210 for FTP.
  • Port 25, 587, 465 for email services.
  • Port 53 for DNS services.

You can also check the status of CyberPanel:

nsystemctl status lscpd

Step 9: First steps in CyberPanel

  1. Log in: Log in with your login details.
  2. Create a website: Go to WEBSITES > Create a websiteEnter the domain name, PHP version, and other details to create your first website.

Step 10: Done!

You have CyberPanel with OpenLiteSpeed successfully installed and configured on your Ubuntu server. You can now manage your websites, set up SSL certificates, and use many other features.

Configuring the Litespeed Cache plugin

Litespeed cache

Tip: Use a preset

For quick configuration of the plugin you can use a preset:

I recommend using Advanced (or higher).

general

For General, it's important to enter the server IP. Guest Mode lets you decide whether you want to use it.

Litespeed Guest Mode does the following:

Guest Mode is a feature that allows website owners to provide easier access to certain content for visitors who aren't logged in. This mode allows guests to browse the website more quickly, although they won't be able to access all the features and personalized content available to logged-in users.

Guest Mode helps reduce server load and improve loading times by delivering simple, static content and processing fewer dynamic requests. This improves the experience for visitors, making them more likely to register or return later to learn more about the products or services offered. Overall, Litespeed Guest Mode makes using the website easier and faster.

Cache settings

image 27

These are my settings. It is important that the first button “Enable Cache” on ON stands.

IT I

image 28

What does Cloudflare ESI do?

Cloudflare ESI (Edge Side Includes) helps to better integrate dynamic content, i.e. parts of a website that change frequently, into static websites.

With ESI, these dynamic parts can be loaded and stored separately, while the rest of the page remains the same. This means the web page loads faster because only the parts that change are updated.

In general, this function is only needed in rare cases.

Image Optimization

Page Optimization

image 30

Important: Always test your site as a guest (in incognito mode) to see if it still works well. Mobile and desktop. 🙂


When is it worth switching to Litespeed?

Switching isn't always necessary. But as a website owner, you (and your visitors) will usually notice a faster page speed.

A change to LiteSpeed can bring significant benefits in various scenarios. Here are some situations where switching is worthwhile:

  1. High website traffic numbers
    • LiteSpeed can handle large amounts of traffic more efficiently than other web servers like Apache or NGINX, especially with dynamic content.
  2. Performance problems with Apache
    • If your website has slow loading times or crashes frequently, LiteSpeed can help due to its asynchronous processing and improved caching features.
  3. Optimization of loading times
    • Thanks to features like LiteSpeed Cache (LSCache) and image optimization, LiteSpeed significantly improves the loading times of WordPress pages.
  4. More security needed
    • LiteSpeed offers integrated security features such as Anti-DDoS protection and Brute force protectionthat can better protect your website from attacks.
  5. Save resources (RAM/CPU)
    • LiteSpeed uses less CPU and RAM compared to Apache and nginx.

That's it! Any questions? Feel free to leave them in the comments.

Content

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    lk media – your partner for online marketing & web design.

    Your success online is what drives us.
    lkmedia white
    Agency for future-oriented online marketing and web design. We are a team of creative minds and strategic thinkers who are passionately committed to your success in the digital space. Our goal is to present your brand optimally, reach your target group and generate sustainable growth.
    © Copyright 2024 lkmedia
    Sitemap Data protection imprint
    en_USEnglish