Install LiteSpeed Web Server¶
These instructions are for installing LiteSpeed Web Server from SSH as root. 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
- Set up LiteSpeed and Compile PHP on Mac
Video
See the Install LiteSpeed Web Server With a Trial License video here.
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.6-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.6-ent-x86_64-linux
= LSWS Enterprise v6.0.6 for 64 bit Linuxlsws-6.0.6-ent-x86_64-freebsd
= LSWS Enterprise v6.0.6 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 "SERIAL_NO" > conf/serial.no
Tip
Replace SERIAL_NO
with your actual license serial number or trial key. (Double quotes are optional in this context.)
Run the install script:
./install.sh
The installer will ask you a number of questions covered in detail here.
Tips
-
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.
Install PHP¶
Enable the LiteSpeed repository and download LSPHP according to these instructions. You may have a default php.ini
file installed through RPMs.