LiteSpeed Web Server (LSWS) is a high-performance Apache drop-in replacement. LSWS is the 4th most popular web server on the internet and the #1 commercial web server. Upgrading your web server to LiteSpeed Web Server will improve your performance and lower operating costs.
This guide shows you how to install a litespeed webserver on an Ubuntu 14.04 (LTS) server.
Before you begin update your system -
# sudo apt-get update && sudo apt-get upgrade
Installation must be performed in a command line terminal. For testing purposes, LiteSpeed Web Server can be installed into a home directory by a non-privileged user. For production use, it should be installed into a system directory.
Download latest litespeed package from there website -
wget https://www.litespeedtech.com/packages/5.0/lsws-5.0.18-ent-x86_64-linux.tar.gz
Decompress the package into a convenient location:
tar -xvf lsws-5.0.18-ent-x86_64-linux.tar.gz
get your production licence from https://store.litespeedtech.com/store/cart.php
A serial number will be sent to you in the confirmation email after you order has been successfully processed. Each serial number allows for one server installation.
Save the serial number as "serial.no"; in the installation directory (where install.sh is located). The LiteSpeed products registration server will use this file to retrieve your license key during the installation process.
Now locate to decompressed folder -
cd lsws-5.0.18
Run installer -
./install.sh
This will start LiteSpeed's Installer.
Read the End User License Agreement and type "Yes" to confirm your agreement.
Specify the directory where you would like to install LiteSpeed Web Server. For the root user, the default is /usr/local/lsws. but you can specify it as per your comfort eg. /opt/lsws/
it will prompt to generate a license request. The installer will talk to LiteSpeed products registration server and obtain a valid license key automatically. Upon getting the license key, it will go to next step. If failed, the installer will exit and leave a license request file.
Note: you can also use trial key .
Now follow the on screen instruction as following -
Destination [/usr/local/lsws]: /opt/lsws/
Please specify the user name of the administrator
User name [admin]: press enter
Please specify the administrator's password.
Password: type you desired password
Retype password:
Please specify administrators' email addresses.
Email addresses [root@localhost]: bagheladitya@yahoo.com
Will you use LiteSpeed Web Server with a hosting control panel?
Please select (0-7) [0]? press enter ( as i'm not using any control panel if you have please select as per your panel)
User [nobody]: press enter
Group [nogroup]: press enter ( we go with default user)
HTTP port [8088]: 80
HTTPS port [8088]: 443
Admin HTTP port [7080]: 7080 ( you can set any port )
Setup up PHP [Y/n]: y
Suffix for PHP script(comma separated list) [php]: press enter.
Enable chroot [y/N]: N
Would you like to install AWStats Add-on module [y/N]? N ( if you want to moniter your website stats type Y and install awstats. right now i'm going with N option.
when the server restarts [Y/n]? Y
Would you like to start it right now [Y/n]? Y
if installed found any error please troubleshoot by looking into logs -
tail -f /opt/lsws/logs/error.log
NOTE - you can use only 1 trail license with 1 static IP.
To stop and start litespeed service use following command -
service lsws stop
service lsws start
service lsws restart
service lsws reload
you can find all the logs in your lsws configuration directory in /opt/lsws/logs/
now you can point your browser to http://[address],
[address] being the IP address or domain name of your web server machine.
The default port for the WebAdmin interface is 7080. Plug http://[address]:7080/, into your browser to go to the WebAdmin interface. (If you changed the port for WebAdmin during installation, use that port instead.)
Comments