This brief tutorial shows students and new users how to install OpenLiteSpeed on Ubuntu 17.04 / 17.10. For those who don’t know, OpenLiteSpeed is an open source web server developed by LiteSpeed Technology. It’s designed to be lightweight with a user friendly web interface to create and manage your websites.
OpenLiteSpeed supports various operating systems including Linux, SunOS, MacOS and others. Because of its user friendly interface, it’s becoming popular among webmasters.
This tutorial should probably also works with previous versions of Ubuntu, but I haven’t tested. To get started, continue below with the steps.
Step 1: Update Ubuntu
Before installing OpenLiteSpeed update Ubuntu server. To do that, run the commands below.
Another thing to do before installing OpenLiteSpeed is to install required dependencies. These packages allow the webserver to install and function correctly. To install these dependencies, run the commands below.
After that, run the commands below to secure MariaDB server.
When prompted, answer the questions below by following the guide.
Enter current password for root (enter for none): Just press the Enter
Set root password? [Y/n]: Y
New password: Enter password
Re-enter new password: Repeat password
Remove anonymous users? [Y/n]: Y
Disallow root login remotely? [Y/n]: Y
Remove test database and access to it? [Y/n]: Y
Reload privilege tables now? [Y/n]: Y
Restart MariaDB server
sudo systemctl restart mariadb.service
Step 6: Configure OpenLiteSpeed
Finally, configure the administrative password for the web interface. Run the commands below to do that.
Then create a web admin username and password.
Please specify the user name of administrator.
This is the user name required to login the administration Web interface.
User name [admin]: openlite
Please specify the administrator's password.
This is the password required to login the administration Web interface.
Retype password: retype_password
Administrator's username/password is updated successfully!
After that, run the commands below to start the webserver.
sudo /etc/init.d/lsws start
Open your browser and browse to the server IP or hostname followed by 8088 to view the default page page.
To access the admin backend portal, use the port 7078
Begin creating your sites.
Congratulations! You’ve successfully installed OpenLiteSpeed web server.