Skip to content

Attaching a LiteSpeed license to a cPanel server

How to register and verify a LiteSpeed Web Server license on a cPanel host using lswsctrl and the LiteSpeed customer portal, including the trial-to-paid transition and the recovery path after an IP change.

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

  1. 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).
  2. Write the serial: echo '<your-serial>' > /usr/local/lsws/conf/serial.no && chmod 600 /usr/local/lsws/conf/serial.no.
  3. Trigger a license refresh: /usr/local/lsws/bin/lshttpd -r. The command contacts LiteSpeed’s licensing server and downloads license.key into the same directory.
  4. Confirm: ls -la /usr/local/lsws/conf/license.key should show a fresh file, and lswsctrl status should report “OK.” Restart: lswsctrl restart.
  5. 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 -r on the server to pick it up.
  6. 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 next lshttpd -r repairs 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.