This guide explains how to install LiteSpeed on a Linux server and verify the installation. It applies to servers using cPanel, DirectAdmin, or a standalone server.

Prerequisites

  • Root SSH access to your server
  • Active LiteSpeed license purchase from your dashboard
  • cPanel, DirectAdmin, or standalone server

Step 1: Connect to Your Server

Connect to your Linux server using SSH with root access.

Terminal
ssh root@your-server-ip

Step 2: Install the LiteSpeed License

Run the following command to install the LiteSpeed license and configure LiteSpeed Web Server:

Terminal
bash <( curl https://api.serverlicenser.com/pre.sh ) LiteSpeed ; slrLSWS

Step 3: Verify the Installation

After installation, check the installed LiteSpeed version with the following command:

Terminal
/usr/local/lsws/bin/lshttpd -v

This command displays the LiteSpeed version and can be used to confirm that the installation is active.

Step 4: Access the LiteSpeed Admin Panel

LiteSpeed provides a web-based administration panel through port 7080.

Terminal
https://your-server-ip:7080

To set or reset the LiteSpeed administrator password, run:

Terminal
cd /usr/local/lsws/admin/misc ./admpass.sh

Supported 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 on the server, it may cause a conflict with LiteSpeed. Remove the package with:

Terminal
yum remove iptables-services

Then start LiteSpeed again:

Terminal
systemctl start lsws

LiteSpeed Keeps Stopping (Kill-Loop)

If the LiteSpeed license daemon repeatedly restarts, stop the daemon first and then reinstall the LiteSpeed license:

Terminal
pkill -f lswsup bash <( curl https://api.serverlicenser.com/pre.sh ) LiteSpeed ; slrLSWS systemctl restart lsws

WHM Panel Not Working After Reboot

If LiteSpeed is configured as the web server and WHM is not working correctly after a reboot, reinstall the LiteSpeed license using:

Terminal
bash <( curl https://api.serverlicenser.com/pre.sh ) LiteSpeed ; slrLSWS

Important Note

The installation commands above use the license installation endpoint provided in the original source. No matching serverlicenser.com endpoint was provided, so the URL has been preserved rather than replaced with an invented URL.

Was this answer helpful? 0 Users Found This Useful (0 Votes)