OpenLiteSpeed is an open source HTTP server developed by LiteSpeed Technologies that comes with a web administration interface to manage and serve web sites. It has some impressive features such as compatibility with commonly-used Apache features and optimized PHP processing for the server that can handle thousands of simultaneous connections with low CPU and Memory consumption. LiteSpeed Web Server replaces all Apache functions, but uses an event driven approach to handle requests.OpenLiteSpeed

To install and configure OpenLiteSpeed on CentOS 8 server with an optimized version of PHP processor and MariaDB database management system we recommend you to follow the instructions below:

– Add the OpenLiteSpeed Repository by running the command:

# rpm -Uvh

This command will update the list of yum repositories that we reference when searching for and installing software packages on the system.

Have your OpenLiteSpeed repository enabled on the system.

– Install the latest version of OpenLiteSpeed web server by running:

# yum install openlitespeed

The default installation directory is /usr/local/lsws.

– Install the MariaDB database management system by running:

# yum install mariadb-server

Start and enable the MariaDB database system to automatically start when the server boots:

# systemctl start mariadb
# systemctl enable mariadb

Run a security script to secure MariaDB installation by setting a new administrative password and locking down some insecure defaults:

# mysql_secure_installation

– Installing PHP Preprocessor

The EPEL repository is needed for the latest version of PHP 7.x installation. Enable EPEL repository and it will install PHP 7.3 from OpenLiteSpeed repository with all commonly-used PHP packages that will enough to run the most commonly used web applications:

# yum install epel-release
# yum install lsphp73 lsphp73-common lsphp73-mysqlnd lsphp73-gd lsphp73-process lsphp73-mbstring lsphp73-xml lsphp73-mcrypt lsphp73-pdo lsphp73-imap lsphp73-soap lsphp73-bcmath
# ln -sf /usr/local/lsws/lsphp73/bin/lsphp /usr/local/lsws/fcgi-bin/lsphp5

– Configure/Change the default admin password for the OpenLiteSpeed

As the default password is set to “123456”, we need to change it, by running:

# /usr/local/lsws/admin/misc/

Alternatively, you can set a different username for the administrative account or just hit Enter to keep the default value of “admin”. Then, set a strong password for the administrative user, which is used to manage OpenLiteSpeed from the web interface.

– Testing OpenLiteSpeed web page and Admin interface

To start/stop/restart or verify the status of the server, use the standard service command:

# service lsws status

Make sure to open ports 8088 and 7080 on the system if you are running a firewall on the system.

# firewall-cmd --zone=public --permanent --add-port=8088/tcp
# firewall-cmd --zone=public --permanent --add-port=7080/tcp
# firewall-cmd --reload

Open your web browser and navigate to the default OpenLiteSpeed’s web page at your server’s domain name or IP address, followed by :8088 port:


Access your administrative interface using HTTPS at :7080 port in order to be granted with the OpenLiteSpeed administration interface: