Install from Repository
LiteSpeed maintains official package repositories for RPM-based and Debian-based distributions. This is the recommended installation method.
AlmaLinux / Rocky Linux 9
Section titled “AlmaLinux / Rocky Linux 9”Add the Repository
Section titled “Add the Repository”rpm -Uvh https://rpms.litespeedtech.com/centos/litespeed-repo-1.3-1.el9.noarch.rpmInstall OpenLiteSpeed
Section titled “Install OpenLiteSpeed”dnf install openlitespeedInstall PHP (Optional)
Section titled “Install PHP (Optional)”dnf install lsphp83 lsphp83-common lsphp83-mysqlnd lsphp83-opcacheUbuntu 22.04 / 24.04
Section titled “Ubuntu 22.04 / 24.04”Add the Repository and Install
Section titled “Add the Repository and Install”wget -O - https://rpms.litespeedtech.com/debian/enable_lst_debian_repo.sh | bashapt updateapt install openlitespeedInstall PHP (Optional)
Section titled “Install PHP (Optional)”apt install lsphp83 lsphp83-common lsphp83-mysql lsphp83-opcacheDebian 12
Section titled “Debian 12”The same repository script works for Debian:
wget -O - https://rpms.litespeedtech.com/debian/enable_lst_debian_repo.sh | bashapt updateapt install openlitespeedPost-Installation Setup
Section titled “Post-Installation Setup”Set WebAdmin Password
Section titled “Set WebAdmin Password”After installation, set the admin password for the WebAdmin GUI:
/usr/local/lsws/admin/misc/admpass.shThis prompts for a username and password. The credentials are stored in /usr/local/lsws/admin/conf/htpasswd.
Alternatively, the randomly generated initial password can be found at:
/usr/local/lsws/adminpasswdStart and Stop the Server
Section titled “Start and Stop the Server”# Start/usr/local/lsws/bin/lswsctrl start
# Stop/usr/local/lsws/bin/lswsctrl stop
# Restart/usr/local/lsws/bin/lswsctrl restart
# Check status/usr/local/lsws/bin/lswsctrl statusOn systems using systemd:
systemctl start lswssystemctl stop lswssystemctl restart lswssystemctl enable lsws # Start on bootAccess the WebAdmin GUI
Section titled “Access the WebAdmin GUI”Open your browser and navigate to:
https://your-server-ip:7080Accept the self-signed certificate warning and log in with the credentials you set above. The WebAdmin interface lets you manage listeners, virtual hosts, SSL, and modules through a graphical interface.
Verify the Installation
Section titled “Verify the Installation”The default site is served on port 8088. Open:
http://your-server-ip:8088You should see the OpenLiteSpeed congratulations page.
Firewall Configuration
Section titled “Firewall Configuration”If you use firewalld (AlmaLinux/Rocky):
firewall-cmd --permanent --add-port=7080/tcpfirewall-cmd --permanent --add-port=80/tcpfirewall-cmd --permanent --add-port=443/tcpfirewall-cmd --reloadIf you use ufw (Ubuntu/Debian):
ufw allow 7080/tcpufw allow 80/tcpufw allow 443/tcpNext Steps
Section titled “Next Steps”- Basic Configuration — understand the main config file.
- Virtual Hosts — set up your first site.
- SSL / TLS — enable HTTPS.