Skip to main content

How to install Litespeed web server on Ubuntu 14.04 (LTS)



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

Popular posts from this blog

how to take mails backup in outlook 2007

How to take backup of mails in outlook 2007. there is a very simple way to taking backup of mails 1.Opne outlook 2007 > tools >account > data files >open folder then close all other windows and copy outlook.pst file in a safe location To restore backup 1.Opne outlook 2007 > tools >account > data files > add > and give the location of outlook.pst file.

Configure Vsftpd with virtual users in Ubuntu 14.04

vsftpd is a GPL licensed FTP server for UNIX systems, including Linux. It is secure and extremely fast. It is stable. Don't take my word for it, though. Below, we will see evidence supporting all three assertions. We will also see a list of a few important sites which are happily using vsftpd. This demonstrates vsftpd is a mature and trusted solution. To configure vsftpd server  with virtual users we need to enable PAM for vsftpd. apt-get install vsftpd libpam-pwdfile Now configure vsftpd to use PAM authentication vim  /etc/vsftpd.conf then paste in the following listen=YES anonymous_enable=NO local_enable=YES write_enable=YES local_umask=022 local_root=/var/www chroot_local_user=YES allow_writeable_chroot=YES hide_ids=YES #virutal user settings user_config_dir=/etc/vsftpd_user_conf guest_enable=YES virtual_use_local_privs=YES pam_service_name=vsftpd nopriv_user=vsftpd guest_username=vsftpd Now create users - You can either use a data...

AWS Certification RoadMap