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.
sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get autoremove
Step 2: Install OpenLiteSpeed Dependencies
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.
sudo apt-get install build-essential libexpat1-dev libgeoip-dev libpcre3-dev zlib1g-dev libssl-dev libxml2-dev rcs libpng-dev
Step 3: Download OpenLiteSpeed Package
Now that all dependencies are installed, go and fetch the latest version of OpenLiteSpeed.
cd /tmp/ && wget http://open.litespeedtech.com/packages/openlitespeed-1.4.27.tgz
Step 4: Install OpenLiteSpeed
Next, run the commands below to extract the downloaded package.
tar -xvzf openlitespeed-1.4.27.tgz
Change into the directory extracted directory
Then run the commands below to install
sudo ./configure sudo make sudo make install
After that OpenLiteSpeed should be installed.
Step 5: Install MariaDB Server
To install MariaDB server run the commands below.
sudo apt-get install mariadb-server mariadb-client
After installing, the commands below can be used to stop, start and enable MariaDB service to always start up when the server boots.
sudo systemctl stop mariadb.service sudo systemctl start mariadb.service sudo systemctl enable mariadb.service
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. Password: new_password 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.
You may also like the post below: