LiteSpeed Web Server Enterprise is licensed per server IP. The trial license works for 15 days, then LSWS stops accepting requests until a paid license is attached. The license file is fetched from LiteSpeed’s licensing servers using a serial number that you bind to the server’s public IP. The trap is the IP change: rebuild the server with a new IP, the license becomes invalid until you reissue it against the new IP through the LiteSpeed customer portal.
What’s happening
The LSWS license file lives at /usr/local/lsws/conf/serial.no. At startup, LSWS checks the file is present and contacts update.litespeedtech.com to validate the serial against the server’s outbound IP. The validation result is cached for hours; a missing or invalid license triggers LSWS to refuse new requests (existing connections continue). cPanel’s LSWS plugin does not manage the license — the license is an LSWS-level concept, not a cPanel one.
How to verify
Check the license state from the host:
/usr/local/lsws/bin/lswsctrl status
cat /usr/local/lsws/conf/serial.no 2>/dev/null
/usr/local/lsws/bin/lshttpd -V 2>&1 | head
curl -s https://update.litespeedtech.com/ 2>&1 | head
ip route get 1.1.1.1
The last command shows the source IP LSWS uses for outbound license checks. That IP is what must match the IP registered with your LiteSpeed serial.
The fix
- Get the serial from the LiteSpeed customer portal at
https://store.litespeedtech.com/. Log in, find the active server, copy the serial number (a 32-character string). - Write the serial:
echo '<your-serial>' > /usr/local/lsws/conf/serial.no && chmod 600 /usr/local/lsws/conf/serial.no. - Trigger a license refresh:
/usr/local/lsws/bin/lshttpd -r. The command contacts LiteSpeed’s licensing server and downloadslicense.keyinto the same directory. - Confirm:
ls -la /usr/local/lsws/conf/license.keyshould show a fresh file, andlswsctrl statusshould report “OK.” Restart:lswsctrl restart. - For an IP change (server moved, network reconfigured), log into the LiteSpeed customer portal > Manage > re-bind the serial to the new IP. The portal pushes the new binding within minutes. Re-run
lshttpd -ron the server to pick it up. - If the host loses outbound access to
update.litespeedtech.com(firewall change, broken DNS), LSWS uses the cached validation for a grace period before refusing new requests. Restore outbound access and the nextlshttpd -rrepairs the state.
For environments where LSWS licensing needs to stay attached through migrations and IP changes, Stack Harbor handles the licensing portal as part of cPanel/WHM management.