Skip to content

Install LiteSpeed Web Server

We recommend installing LiteSpeed Web Server via, and this is the procedure we cover here in the New Installations section below. We've also provided instructions for installing LSWS from SSH as root as a failsafe.

If you are looking for something else, here are some alternatives:


See the Install LiteSpeed Web Server With a Trial License video here.


If you have already installed LiteSpeed Web Server, and you are trying to activate a new license, follow the Activate a License instructions.

New Installations

cPanel, Plesk, and DirectAdmin users may prefer to use our pre-configured options to automate the installation process.

Otherwise, install interactively by executing the following command as root user:

bash <( curl ) YOUR_SERIAL_NO

Be sure to replace YOUR_SERIAL_NO with the serial number you were given in the Welcome email.

Failsafe Installation

If the script listed above fails to download or install the software, you can install manually. These steps will not affect your current installations, and there will be no service downtime.


Download the LiteSpeed Web Server tarball from the LiteSpeed Technologies website.

Run the following commands from SSH as root:

cd /root


Replace the values in the above URL to reflect your OS and the version of LSWS you wish to download. For example:

  • lsws-6.0.12-ent-x86_64-linux = LSWS Enterprise v6.0.12 for 64 bit Linux
  • lsws-6.0.12-ent-x86_64-freebsd = LSWS Enterprise v6.0.12 for 64 bit FreeBSD


Use the following command to unpack the tarball:

tar zxfv  lsws-*-ent-x86_64-linux.tar.gz

Run Installation Script

Access the unpacked folder:

cd lsws-*

Create a file containing your paid license serial number or your trial key:


Replace YOUR_SERIAL_NO with your actual license serial number or trial key. (Double quotes are optional in this context.)


We do not recommend saving the serial number on a Windows machine.

Run the install script:


The installer will ask you a number of questions covered in detail here.


  • Select Upgrade if you are upgrading a current LSWS installation and want to keep your existing server configuration
  • Choose the default setting when in doubt.
  • For the LiteSpeed process username and groupname, set the same values as you would for Apache. Choosing the LiteSpeed default of nobody:nobody may create a file permission problem.


Make sure is reachable from your server.

Install PHP

Enable the LiteSpeed repository and download LSPHP according to these instructions. You may have a default php.ini file installed through RPMs.

Any Questions?

For LiteSpeed license-related questions, please refer to our Licensing documentation.

For support, please open a ticket with us through your client area.

Last update: November 16, 2023