Skip to content

Install from Repository

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

Supported Operating Systems

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

  • CentOS* 7 (EOL June 30, 2024), 8, 9
  • Debian 10 (EOL June 30, 2024), 11, 12
  • Ubuntu 20, 22, 24

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

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 lsphp81 and lsphp81-mysql into /usr/local/lsws/lsphp81/bin/lsphp:

sudo apt-get install lsphp81 lsphp81-common lsphp81-mysql
sudo yum install lsphp81 lsphp81-common lsphp81-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 password is stored in the /usr/local/lsws/adminpasswd file.

Run the following command to set the WebAdmin 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