DEV Community

Cover image for How to Install OpenLiteSpeed on a Dedicated Server (Ubuntu)
Shannon Dias
Shannon Dias

Posted on

How to Install OpenLiteSpeed on a Dedicated Server (Ubuntu)

If you have been running Apache or Nginx on your dedicated server and hitting performance walls during traffic spikes, LiteSpeed is worth a serious look.

While Apache uses a process-per-request model that can quickly consume your server's RAM, OpenLiteSpeed (OLS) relies on an event-driven architecture. This means your bare-metal server can handle significantly more concurrent connections without breaking a sweat.

Why Choose OpenLiteSpeed?

  • Built-in LSCache: A server-level full-page cache with official plugins for WordPress, Magento, and more.
  • HTTP/3 and QUIC: Native support for modern protocols translates to faster page loads.
  • Zero Downtime Restarts: Update configs without dropping active connections.

What You Need to Get Started

To run this setup, you'll need a dedicated server running Ubuntu 22.04 or 24.04, root/sudo access via SSH, and a basic firewall (UFW). You will also need to ensure ports 80 and 443 are currently free.

The Installation Process

Installing OLS involves adding the official LiteSpeed repository, configuring your firewall to open ports 8088 and 7080 (for the Web Admin Console), and installing LiteSpeed's customized PHP binaries (LSPHP 8.3).

Because developers need exact commands and precise configuration paths, I have documented the entire A-Z process, including setting up your first Virtual Host via the OLS Admin GUI.

Read the full step-by-step tutorial here and get your server optimized for high traffic today!

Top comments (0)