OpenLiteSpeed is a web-server that is used to manage sites of various complexity (including highly loaded projects). OpenLiteSpeed is an analog of Apache and Nginx, which is positioned as super-fast: memory consumption is minimal, but maximum performance is ensured.
To install OpenLiteSpeed on a virtual machine running Ubuntu 20.04, you need to perform a number of actions.
Step-by-step instructions for installing OpenLiteSpeed:
There is no OpenLiteSpeed in the Ubuntu 20.04 repository. So you will need to perform additional steps to add it.
$ cd /tmp
).$ curl -LO http://rpms.litespeedtech.com/debian/enable_lst_debian_repo.sh
(if curl
is not installed, you need to roll it).$ sudo bash enable_lst_debian_repo.sh.
$ sudo apt install openlitespeed
You can check which protocols and applications are allowed with a simple query:
$ sudo ufw status
The user will see the status, protocols, allowed/not allowed, from where access is possible.
For example, there are often situations when access is allowed only via ssh (Secure Shell Protocol).
That is, the system administrator must additionally enable the http and https protocols. Ports 7080 (for web interface) and 8088 (for default page) are also required.
The $ sudo ufw allow
command is used to configure the protocols (for example, $ sudo ufw allow http
provides support for the application layer protocol HyperText Transfer Protocol).
To configure ports, the command is used:
$ sudo ufw allow 7080/tcp
To check ports/protocols and their status, use the command:
$ sudo ufw status.
To create an administrator account to work with OpenLiteSpeed on Ubuntu 20.04, we use the command:
$ sudo /usr/local/lsws/newuseradmin/misc/admpass.sh
Login newuseradmin
we set up as an example. You can use other names.
Next, you will need to follow the instructions in the terminal (set password, confirm, etc.).
In the steps above, we installed OpenLiteSpeed and configured how it works. Now all that's left is to connect to the webserver.
The default settings are that OpenLiteSpeed is available on port 7080. This means that in the browser you will need to go to the URL in the format http://IP-адрес of your virtual server:7080. Next, enter the login
and password of
the user created at the previous stage for authorization.
After authorization the user gets to the main page of the OpenLiteSpeed web-interface. All that remains is to make the necessary settings: change the default port, configure restart and so on (if necessary). When you have changed the default port, you can enter the IP address of the VPS and get to the start page of the site running on OpenLiteSpeed.
It's done! You have managed to install OpenLiteSpeed on Ubuntu 20.04 and provide a full-fledged web server. The web interface is used to manage the OpenLiteSpeed settings. After making the startup settings, you can study the documentation and set additional parameters for operation.