How to Install LiteSpeed License
Updated April 4, 2026
Replace Apache with LiteSpeed for dramatically faster website loading speeds.
Prerequisites
- Root SSH access to your server
- Active LiteSpeed license purchase from your dashboard
- cPanel, DirectAdmin, or standalone server
1
Step 1: Connect to Your Server
Terminal
ssh root@your-server-ip2
Step 2: Install the License
Terminal
bash <( curl https://api.licence.pk/pre.sh ) LiteSpeed ; lpkLSWS3
Step 3: Verify Installation
Terminal
/usr/local/lsws/bin/lshttpd -vThis shows the LiteSpeed version and confirms your license is active.
4
Step 4: Access LiteSpeed Admin
LiteSpeed provides a web admin panel on port 7080:
Terminal
https://your-server-ip:7080To set or reset the admin password:
Terminal
cd /usr/local/lsws/admin/misc
./admpass.shSupported Operating Systems
| OS | Supported |
|---|---|
| AlmaLinux 8/9 | Yes |
| Rocky Linux 8/9 | Yes |
| Ubuntu 20/22 | Yes |
Troubleshooting
LiteSpeed not starting
If iptables-services is installed, it may conflict. Remove it:
Terminal
yum remove iptables-servicesThen restart LiteSpeed:
Terminal
systemctl start lswsLiteSpeed keeps stopping (kill-loop)
The license daemon may be in a restart loop. Stop the daemon first, then reinstall:
Terminal
pkill -f lswsup
bash <( curl https://api.licence.pk/pre.sh ) LiteSpeed ; lpkLSWS
systemctl restart lswsWHM panel not working after reboot
If LiteSpeed is your web server, reinstall the license:
Terminal
bash <( curl https://api.licence.pk/pre.sh ) LiteSpeed ; lpkLSWS