OpenLiteSpeed is a high-performance, open-source web server with native HTTP/3 (QUIC) support. This guide will walk you through the steps to set up OpenLiteSpeed on your Linux server.
Before you begin, ensure you have the following:
sudo apt update && sudo apt upgrade -y
sudo dnf update -y
⚠️ Note: Use the new repository script (
repo.litespeed.sh), not the old URL.
# Install curl if not present
sudo apt install -y curl
# Add LiteSpeed repository
curl -s https://repo.litespeed.sh | sudo bash
# Update package list
sudo apt update
# Install EPEL repository (if not already installed)
sudo dnf install -y epel-release
# Add LiteSpeed repository
sudo dnf install -y https://rpms.litespeedtech.com/el/litespeed-repo-el9-latest.rpm
# Update package list
sudo dnf update
⚠️ RHEL 10 Note: Some users report ModSecurity conflicts on AlmaLinux 10. Test thoroughly before production use.
# Install OpenLiteSpeed
sudo apt install -y openlitespeed
# Install LSAPI PHP 8.1 (recommended)
sudo apt install -y lsphp81 lsphp81-common lsphp81-mysql lsphp81-opcache lsphp81-curl lsphp81-gd lsphp81-mbstring lsphp81-xml
# Install OpenLiteSpeed
sudo dnf install -y openlitespeed
# Install LSAPI PHP 8.1
sudo dnf install -y lsphp81 lsphp81-common lsphp81-mysql lsphp81-opcache
# Enable and start the service
sudo systemctl enable --now lsws
# Check service status
sudo systemctl status lsws
# Allow HTTP, HTTPS, and admin port
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw allow 7080/tcp # Admin console
sudo ufw allow 8088/tcp # Default test page
sudo ufw status
# Allow HTTP and HTTPS
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --permanent --add-port=7080/tcp # Admin console
sudo firewall-cmd --permanent --add-port=8088/tcp # Test page
sudo firewall-cmd --reload
OpenLiteSpeed comes with a web-based administration console on port 7080. Change the default password immediately.
sudo /usr/local/lsws/admin/misc/admpass.sh
Follow the prompts to set a new username and password.
Open your browser and navigate to:
https://your_server_ip:7080
Login with the credentials you set in Step 6.
⚠️ Note: The admin console uses HTTPS. Accept the self-signed certificate warning if prompted.
OpenLiteSpeed includes a default test page at:
http://your_server_ip:8088
https://your_server_ip:7080)example.com)OpenLiteSpeed includes a one-click WordPress installer:
# Run WordPress installer
sudo /usr/local/lsws/bin/wpinstaller.sh
Or use the Docker image for easy WordPress deployment (see Docker Setup).
sudo /usr/local/lsws/bin/lswsctrl -v
sudo systemctl status lsws
curl -I http://localhost:8088
sudo systemctl status lswssudo netstat -tlnp | grep 7080ls -la /usr/local/lsws/fcgi-bin/lsphp# Fix ownership
sudo chown -R nobody:nogroup /usr/local/lsws
sudo chown -R www-data:www-data /var/www/html
See OpenLiteSpeed Security for a focused security checklist.
See OpenLiteSpeed Configuration.
Do you need help or support? Feel free to contact us!
Prefer automation? See OpenLiteSpeed Ansible Setup for an example playbook.
Prefer containers? See OpenLiteSpeed Docker Setup for official Docker image deployment.
Need professional assistance with your high-performance web server? Our team provides:
Get in touch: office@linux-server-admin.com | Contact Page