OpenLiteSpeed is a high-performance, open-source web server that is easy to use and provides a variety of features. This guide will walk you through the steps to set up OpenLiteSpeed on your Linux server.
Before you begin, ensure you have the following:
First, update your package lists to ensure you have the latest information on the newest versions of packages and their dependencies.
sudo apt update && sudo apt upgrade -y
sudo dnf update -y
To install OpenLiteSpeed, you need to add the OpenLiteSpeed repository to your system.
wget -O - http://rpms.litespeedtech.com/debian/enable_lst_debian_repo.sh | sudo bash
sudo apt install openlitespeed -y
Use the LiteSpeed repo for RHEL-based systems (see the official OpenLiteSpeed install docs for the current repo package), then install:
sudo dnf install openlitespeed -y
After installation, start the OpenLiteSpeed service and enable it to start on boot.
sudo systemctl enable --now lsws
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw status
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --reload
OpenLiteSpeed comes with a web-based administration console. By default, it listens on port 7080. You can access it by navigating to http://your_server_ip:7080 in your web browser.
The default login credentials are:
admin123456For security reasons, you should change the default admin password.
sudo /usr/local/lsws/admin/misc/admpass.sh
Follow the prompts to set a new password.
You can now configure your web server using the web admin console. Refer to the OpenLiteSpeed documentation for detailed instructions on configuring virtual hosts, SSL, and other settings.
See OpenLiteSpeed Configuration.