How to install your LiteSpeed licence
LiteSpeed Web Server replaces Apache and serves your websites much faster, with the same configuration. This guide gives you the exact command for your licence, shows how to check it worked, and fixes the usual errors.
Before you start
- Root access over SSH. Log in as
root, or runsudo -ifirst. The command does not work as a normal user. curlis installed.should print a version. If it does not:curl --version(AlmaLinux, Rocky, CloudLinux) oryum install -y curlapt-get install -y curl(Ubuntu, Debian).- The licence IP is this server. The IP on your licence page must be this server's main public IP.
- A control panel or plain server — cPanel, DirectAdmin or no panel at all.
Supported systems
Standard licence: AlmaLinux 8, AlmaLinux 9, Rocky Linux 8, Rocky Linux 9, Ubuntu 20.04, Ubuntu 22.04. Other versions may work; we can test it with you.
V2 licence: no tested list yet. We have no tested system list for this product on this licence type. It may work on your server; we can test it with you.
Which command is mine?
Your licence page shows the exact command for that licence: Licenses → click the licence → Installation & Management. A licence marked V2 uses the V2 command below; every other licence uses the standard command. They are different systems — run only the one for your licence.
Standard licence
This one line downloads the License.ws licence tool, registers this server and activates LiteSpeed. Copy the whole line, paste it into the SSH session and press Enter:
bash <( curl https://api.license.ws/pre.sh ) LiteSpeed ; lwsLSWSTo refresh the licence later — after a renewal, an IP change or a LiteSpeed update — run the short command:
lwsLSWSV2 licence
A V2 licence uses an installer program instead. Copy all the lines together, paste them into the SSH session and press Enter:
rm -rf installer ; rm -rf setup
curl -L -o "installer" "api.license.ws/src/litespeed/installer?key=litespeed"
chmod +x installer
./installerThere is no separate refresh command for V2 — run the install block again to refresh the licence.
Check it worked
Run
/usr/local/lsws/bin/lshttpd -vhttps://your-server-ip:7080/usr/local/lsws/admin/misc/admpass.shCommon errors and fixes
Find the message the command printed:
"license expired/not found" or "your license has been suspended"
The output contains "license expired/not found" or "your license has been suspended" or "no license found".
The licence for this server's IP is not active. Check your licence page: renew or pay it if it is suspended or expired, and make sure its IP is this server's main public IP. Then run the refresh command from your licence page (V2: the install command again).
"/dev/fd/63: No such file or directory"
The output contains "/dev/fd/63" or "/dev/fd/62".
The install line must run in bash as root. Run sudo -i first, then paste the whole line (it starts with
bash <(sh or after sudo on the same line.
"cannot execute binary file: Exec format error"
The output contains "exec format error" or "cannot execute binary file" or "32-bit runtime".
On Ubuntu/Debian the licence tool needs the 32-bit runtime. Run:
dpkg --add-architecture i386 && apt-get update && apt-get install -y libc6:i386Then run the install command again.
"Embedded PHP … cannot execute" or "Dynamic linker"
The output contains "embedded php" or "php still not working" or "dynamic linker".
On Ubuntu/Debian, add the link the licence tool expects, then run the install command again:
mkdir -p /lib64 && ln -sf /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 /lib64/ld-linux-x86-64.so.2"cp: cannot create regular file '/lib/x86_64-linux-gnu/libssl.so.10'"
The output contains "libssl.so.10" or "libcrypto.so.10".
This is the compatibility step on Ubuntu/Debian. Run the install command again as root; if the same lines come back, send us the output of the commands under Your server is set up differently.
"libcurl-dev is a virtual package"
The output contains "libcurl-dev is a virtual package".
Install the library yourself, then run the install command again:
apt-get install -y libcurl4-openssl-dev"Some dependencies failed to install"
The output contains "some dependencies failed" or "could not locate the glibc package".
The system's package manager could not install what the tool needs. Run
yum update -yapt-get update && apt-get upgrade -y"Download failed" / "Downloaded file is invalid" / "Extraction failed"
The output contains "download failed" or "downloaded file is invalid" or "downloaded file is corrupt".
The server could not download the licence tool completely. Check free disk space (df -h), DNS and that outgoing HTTPS is allowed, then run the install command again.
"provisioning may have issues"
The output contains "provisioning may have issues".
Run the install command once more. If you see the same line, send us the last lines of the installer log:
tail -30 /var/log/*-installer.log"Unsupported operating system"
The output contains "unsupported operating system".
The licence tool did not recognise this system. It runs on AlmaLinux, Rocky Linux, CloudLinux and CentOS, and on Ubuntu and Debian with limited support. Send us the output of
cat /etc/os-release"32-bit systems are not supported"
The output contains "32-bit systems are not supported".
The licence needs a 64-bit system. Install the server with a 64-bit (x86_64) system, then run the install command again.
"Unknown product"
The output contains "unknown product".
The product word at the end of the line was changed or cut off. Copy the whole install command again from your licence page and paste it in one go.
curl is not installed
The output contains "curl: command not found" or "curl: not found".
Install curl —
yum install -y curlapt-get install -y curl (Ubuntu, Debian) — then run the install command again.
Not running as root
The output contains "root access required" or "permission denied" or "must be run as root".
Run it as root: sudo -i, then paste the install command again.
"command not found"
The output contains "command not found" or ": not found".
Usually one of three things: you are not root (run sudo -i first), curl is missing, or the line was not pasted whole. Copy the install command again from your licence page and paste it in one go. If only the short refresh command is "not found", run the install command once — it adds it.
The installer asks for a licence key
The output contains "enter license key" or "enter the license key" or "enter licence key".
No key is needed — the licence is tied to the server's IP. Press Ctrl+C and run the command from your licence page as root.
Licence invalid / IP mismatch
The output contains "license is invalid" or "licence is invalid" or "invalid license".
Check that the IP on your licence page is this server's main public IP (if you moved server, change it there first). If it was just activated or changed, wait 5–10 minutes, then run the refresh command from your licence page (V2: the install command again).
The server cannot reach our install host
The output contains "could not resolve host" or "connection timed out" or "failed to connect".
The server cannot reach our install host. Check its DNS and that outgoing HTTPS (port 443) is allowed by the firewall, then run the command again.
"ARM64 detected — limited compatibility"
The output contains "arm64 detected".
A notice: the licence tool is built for x86_64 servers. On an ARM server it may not work — check the result under Check it worked, and if it did not work we can test it with you.
"license LOCK file exists but not running… removing it"
The output contains "lock file exists but not running".
A notice, not an error: an earlier run was interrupted and the tool cleaned it up. If the output ends with "has been installed", there is nothing to do.
"limited support — experimental" (Ubuntu / Debian)
The output contains "limited support" or "is experimental".
A notice, not an error: the tool continues on Ubuntu and Debian. Check the result with the commands under Check it worked; if it did not work, we can test it with you.
LiteSpeed is not installed yet
Run the command for your licence type, then the check above. If lshttpd is still missing, open a ticket and we will install LiteSpeed for you.
LiteSpeed does not start
If iptables-services is installed it can block it. Remove it and start LiteSpeed:
yum remove -y iptables-services
systemctl start lswsLiteSpeed keeps stopping
Run the install command again from your licence page, then
systemctl restart lswsTips
- Running the command again is safe. It reinstalls and refreshes the licence; it does not touch your websites or data.
- After an IP change: change the IP on your licence page first, then run the command on the server with the new IP.
- After a LiteSpeed update: if it shows as unlicensed, run the refresh command.
- After changing the number of CPU cores on your plan, run the refresh command with
-update-core(standard licences), for example.lwsLSWS -update-core
Your server is set up differently
Every server is a little different. If the steps above don't fix it, we can test it with you. You don't have to share access: run these and send us the output:
cat /etc/os-release
/usr/local/lsws/bin/lshttpd -v
systemctl status lsws --no-pagerIf you can share access, use the secure link from support; it's the fastest way.
When to contact support
If the command still fails after the steps above, open a support ticket from your client area. Include the licence's IP address and copy the last lines the command printed — that lets us fix it in one reply.
