Install and configure OpenLiteSpeed Server On Ubuntu 15.04/14.10

Sponsored Link
OpenLiteSpeed is a high-performance, lightweight, open source HTTP server developed and copyrighted by LiteSpeed Technologies, Inc. Users are free to download, use, distribute, and modify OpenLiteSpeed and its source code in accordance with the precepts of the GPL version 3 license.

Main Features

Event-driven architecture with extremely low resource (CPU and RAM) overhead.
Handles hundreds of thousands of concurrent connections without load spikes.
WebAdmin GUI with real-time statistics.
Rewrite engine uses Apache mod_rewrite syntax.
Worker processes for scalability. Ability to bind certain processes to particular workers.
High-performance coding using kqueue (FreeBSD and OS X), epoll (Linux), /dev/poll (Solaris), and poll.
High-performance page caching.
Support of third-party modules through API (LSIAPI).

Advanced Features

Easy virtual host configuration via templates.
mp4 and flv streaming.
Easily run multiple versions of PHP on one server.
IP geolocation.
Can send logging to logging server.
Load balancing.
XML or flat file configuration.
Can serve as a reverse proxy to accelerate static content delivery, compress throughput, or run security.
OCSP stapling.
WebSocket proxy support.

Install OpenLiteSpeed On Ubuntu 15.04/14.10

Preparing your server

You need to install the following packages

sudo apt-get install build-essential libexpat1-dev libgeoip-dev libpng-dev libpcre3-dev libssl-dev libxml2-dev rcs zlib1g-dev

Download and install OpenLiteSpeed

Download the source file using the following command

wget http://open.litespeedtech.com/packages/openlitespeed-1.3.10.tgz

Extract the archive and install

tar xzvf openlitespeed*

cd openlitespeed*

./configure

make

sudo make install

This will install the OpenLiteSpeed under the /usr/local/lsws location

Configuring OpenLiteSpeed

You should set an administrative password for OpenLiteSpeed. By default, the password is set to "123456".You can change this password using the following command

sudo /usr/local/lsws/admin/misc/admpass.sh

Output

Please specify the user name of administrator.
This is the user name required to login the administration Web interface.

User name [admin]:

Please specify the administrator's password.

This is the password required to login the administration Web interface.

Password:
Retype password:

Administrator's username/password is updated successfully!

Start the openlitespeed server using the following command

sudo service lsws start

Now you can access the openlitespeed default webpage using the following uRL

http://server-name or IP:8088

You can see default page as follows

1

Install database server (Mysql)

Open the terminal and run the following command

sudo apt-get install mysql-server

The above command prompt for mysql root password.

You can secure your DB installation using the following command

sudo mysql_secure_installation

The above command peompt for the following prompts

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!

In order to log into MySQL to secure it, we'll need the current
password for the root user. If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.

You already have a root password set, so you can safely answer ‘n'.

Change the root password? [Y/n]

By default, a MySQL installation has an anonymous user, allowing anyone
to log into MySQL without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n]

Normally, root should only be allowed to connect from ‘localhost'. This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n]

By default, MySQL comes with a database named ‘test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n]

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n]

Cleaning up...

All done! If you've completed all of the above steps, your MySQL
installation should now be secure.

Thanks for using MySQL!

OpenLiteSpeed Admin Login

You can access the OpenLiteSpeed admin login using the following URL

https://server-name or IP:7080

2

Once you logged in you should see similar to the following screen

3

3

Main Area Options in detail

4

5

6

If you want to know more details about how to configure OpenLiteSpeed server check the documentation

Sponsored Link

Related posts

Leave a comment

Your email address will not be published. Required fields are marked *