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
Video
See the Install LiteSpeed Web Server With a Trial License video here.
Tip
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 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.
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¶
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
Tip
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 Linuxlsws-6.0.12-ent-x86_64-freebsd
= LSWS Enterprise v6.0.12 for 64 bit FreeBSD
Unpack¶
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 serial.no
file containing your paid license serial number or your trial key:
echo "YOUR_SERIAL_NO" > serial.no
Replace YOUR_SERIAL_NO
with your actual license serial number or trial key. (Double quotes are optional in this context.)
Tip
We do not recommend saving the serial number on a Windows machine.
Run the install script:
./install.sh
The installer will ask you a number of questions covered in detail here.
Tips¶
- 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
andgroupname
, set the same values as you would for Apache. Choosing the LiteSpeed default ofnobody:nobody
may create a file permission problem.
Important
Make sure https://license.litespeedtech.com
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.