Install LiteSpeed Web Server¶
We recommend installing LiteSpeed Web Server via
litespeed.sh, 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:
- Install LiteSpeed on CloudLinux
- Set up LiteSpeed Web Server AMI on AWS
- Use a LiteSpeed Web Server Docker Image
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.
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 https://get.litespeed.sh ) YOUR_SERIAL_NO
Be sure to replace
YOUR_SERIAL_NO with the serial number you were given in the Welcome email.
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 wget http://www.litespeedtech.com/packages/6.0/lsws-6.0.12-ent-x86_64-linux.tar.gz
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:
serial.no file containing your paid license serial number or your trial key:
echo "YOUR_SERIAL_NO" > serial.no
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.
Upgradeif 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
groupname, set the same values as you would for Apache. Choosing the LiteSpeed default of
nobody:nobodymay create a file permission problem.
https://license.litespeedtech.com is reachable from your server.
Enable the LiteSpeed repository and download LSPHP according to these instructions. You may have a default
php.ini file installed through RPMs.
For LiteSpeed license-related questions, please refer to our Licensing documentation.
For support, please open a ticket with us through your client area.