29.9 C
Texas
angeloma
Senior Writer and partner

How to install OpenLiteSpeed on Ubuntu 18.04?

Happy New Year to all of you. Thank you for being here with us. In this post, we will talk about a free open source web server with enterprise support. Not only we will talk about it but we will show you how to install OpenLiteSpeed on Ubuntu 18.04.

OpenLiteSpeed is an open source web server, released under the GPL license that guarantees access to the code. According to the official website of the project, OpenLiteSpeed combines speed, security, scalability, optimization and simplicity in one friendly open-source package.

On the other hand, it has quite peculiar characteristics that make it easy to access without losing robustness.

Another important aspect to emphasize is that this is the free version of LiteSpeed web server. Therefore, stability and robustness are guaranteed.

OpenLiteSpeed features

- Advertisement -

OpenLiteSpeed comes with a number of important features such as the following:

  • It has enormous scalability. Thanks to an event driven architecture.
  • It is able to understand Apache rewriting rules. Which makes if you have used this web server, the transition is easy.
  • It allows to install WordPress, MariaDB and the server with a single click.
  • It integrates strong security measures. This mitigates attacks and performance issues.
  • Integrates Google’s web site acceleration system.
  • Native SAPI for PHP allows external applications written in PHP to run up to 50% faster.

So, let us install it.

Install OpenLiteSpeed on Ubuntu 18.04

The installation is quite simple thanks to the OpenLiteSpeed repository for Debian. So, open a terminal session and add the repository with the following command:

:~$ wget -O - http://rpms.litespeedtech.com/debian/enable_lst_debian_repo.sh | sudo bash
1.- Add the repository of OpenLiteSpeed on Ubuntu 18.04
1.- Add the repository of OpenLiteSpeed on Ubuntu 18.04

This will not only add the repository, but also update APT.

Then, we can install it with the following command:

:~$ sudo apt install openlitespeed

and to get PHP 7.3 running at once, run the following command:

:~$ sudo apt install lsphp73
2.- Adding the PHP 7.3 support
2.- Adding the PHP 7.3 support

Finally, enable the execution of PHP 7.3

:~$ sudo ln -sf /usr/local/lsws/lsphp73/bin/lsphp /usr/local/lsws/fcgi-bin/lsphp5

And that’s it, we will be able to access the program’s graphic interface.

OpenLiteSpeed on Ubuntu 18.04

The application runs through port 8080 and the web interface through 7080. Both ports have to be working for them to work.

Once the installation is complete, to access the web interface using your favorite web browser, you must start the service with this command:

:~$ sudo /usr/local/lsws/bin/lswsctrl start

And when we want to stop it, with this one:

:~$ sudo /usr/local/lsws/bin/lswsctrl stop

Now, if you access the web interface. You will see the following:

3.- OpenLiteSpeed log in page
3.- OpenLiteSpeed log in page

The default credentials are “admin” and “123456“. Obviously, this has to be changed later for security reasons.

Then, you will see the main screen.

4.- OpenLiteSpeed main screen
4.- OpenLiteSpeed main screen

Now, you can configure the server through a simple graphical interface.

5.- Configuring the server instance
5.- Configuring the server instance

Finally, it is a good idea to change the default password.

6.- Change the default password
6.- Change the default password

So, that is it.

Conclusion

In this post, we have met another quite popular web server as OpenLiteSpeed. In a market dominated by Apache and Nginx it’s always nice to have other alternatives for our projects.

Please share this post and join our Telegram channel.

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article