How to Install OpenLiteSpeed on AlmaLinux 10
OpenLiteSpeed is a high-performance, open-source web server software designed for efficiently serving web content. It is the open-source version of LiteSpeed Web Server, known for its speed and performance. It’s a popular choice for developers and administrators seeking a lightweight, fast, and efficient web server.
Update System
dnf update -y
Install Required Packages
dnf install -y wget
Add LiteSpeed Repository
wget -O - https://repo.litespeed.sh | sudo bash
Enable EPEL Repository
dnf install -y epel-release
Install OpenLiteSpeed and PHP 8.1
dnf install -y openlitespeed lsphp81
Update Package Metadata
dnf update -y
Set Admin Password
/usr/local/lsws/admin/misc/admpass.sh
Example:
User name [admin]: Admin
Password:
Retype password:
Administrator's username/password is updated successfully!
Install Compatibility Library
dnf install libxcrypt-compat -y
Restart OpenLiteSpeed
systemctl restart lsws
Check Service Status
systemctl status lsws
Open Firewall Ports
firewall-cmd --zone=public --permanent --add-port={80/tcp,443/tcp,8088/tcp,7080/tcp}
firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-service=https
firewall-cmd --reload
Access OpenLiteSpeed
- Default page:
http://server_domain_or_IP:8088
- WebAdmin panel:
http://server_domain_or_IP:7080
- Username: Admin
- Password: (set during setup)
Create a Virtual Host
Via WebAdmin Panel
- Navigate to: WebAdmin panel → Virtual Hosts → Add
Fill in:
- Virtual Host Name: Name of your vHost
- Virtual Host Root: e.g.,
/var/www/ols.domain
- Config File: Path to vHost config
- Follow Symbolic Link: Yes
- Enable Scripts/ExtApps: Yes
- Restrained: Yes
Save configuration.
Edit General Settings
Under Virtual Host → General tab:
- Document Root: e.g.,
/var/www/ols.domain
- Domain Name:
example.com
- Domain Aliases: Optional (e.g.,
www.example.com
)
Set Index Files
- Use Server Index Files: No
- Index Files:
index.php index.html
Save and perform a graceful restart via WebAdmin.
Create Web Directory
mkdir -p /var/www/ols.domainhere
Replace
ols.domainhere
with your actual domain name.
Create Listeners
Add HTTP Listener
- Listener Name:
Default_HTTP
- IP Address:
ANY
- Port:
80
Add HTTPS Listener
- Listener Name:
Default_HTTPS
- IP Address:
ANY
- Port:
443
Map Virtual Host to Listeners
Virtual Host Mapping
For each listener:
- Go to: Listener → Virtual Host Mapping → Add
- Virtual Host: Select your vHost
- Domains:
example.com
Save changes.
You now have a fully functioning OpenLiteSpeed web server installed and configured on AlmaLinux 10 with HTTP and HTTPS access, a virtual host, and firewall settings properly configured.
CrownCloud - Get a SSD powered KVM VPS at $4.5/month!
Use the code WELCOME
for 10% off!
1 GB RAM / 25 GB SSD / 1 CPU Core / 1 TB Bandwidth per month
Available Locations: LAX | MIA | ATL | FRA | AMS