Skip to content

Install from repository

The LiteSpeed repository allows you to easily install OpenLiteSpeed and PHP on a supported operating system.

Supported Operating Systems

OpenLiteSpeed supports current and non-EOL versions of the following Linux distributions:

  • CentOS* 8, 9, 10
  • Debian 11, 12, 13
  • Ubuntu 22, 24, 26

* Includes RedHat Enterprise Linux and derivatives, AlmaLinux, CloudLinux, Oracle Linux, RockyLinux, VzLinux, etc.

Note

We don't currently provide dedicated packages for Fedora, so the CentOS repository will be used instead. Most CentOS PHP packages are compatible with Fedora, but some may require you to compile them from source.

Install the LiteSpeed repository

sudo wget -O - https://repo.litespeed.sh | sudo bash

Install OpenLiteSpeed

sudo apt-get -y install openlitespeed
sudo yum install openlitespeed -y

Install LSPHP

This command will install lsphp84 and lsphp84-mysql into /usr/local/lsws/lsphp84/bin/lsphp:

sudo apt-get install lsphp84 lsphp84-common lsphp84-mysql
sudo yum install lsphp84 lsphp84-common lsphp84-mysqlnd

To get a list of the LSPHP packages and extensions available, you can run the following:

sudo apt-cache search lsphp
sudo yum search lsphp

Access the WebAdmin Console

The randomly generated WebAdmin Console password is stored in the /usr/local/lsws/adminpasswd file.

Run the following command to set the WebAdmin Console password, if needed:

sudo /usr/local/lsws/admin/misc/admpass.sh

To access the WebAdmin Console, visit port 7080 of your domain (for example, https://example.com:7080/) and log in using the password you just set.

Next Step

Configure OpenLiteSpeed