In this guide, I will show how to install OpenLiteSpeed under Centos 7. Basically the step is similar if you use Centos, Ubuntu or Debian.

More info can be obtain via URL here :

OpenLiteSpeed is a high-performance, lightweight, open source HTTP server developed and copyrighted by LiteSpeed Technologies. Users are free to download, use, distribute, and modify OpenLiteSpeed and its source code in accordance with the precepts of the GPLv3 license.

The command I use to install are below;

[root@web ~]# bash -r SampleFpbkFkb -a SampleFpbkFkb --lsphp 70 -w --wordpresspath /usr/local/lsws/themes --dbname themes --dbuser themes --dbpassword SampleFpbkFkb
* Open LiteSpeed One click installation, Version 1.7 *
* Copyright (C) 2016 - 2017 LiteSpeed Technologies, Inc. *
Current platform is centos 7.

Starting to install openlitespeed to /usr/local/lsws/ with the parameters below,
WebAdmin password: SampleFpbkFkb
WebAdmin email: root@localhost
lsphp version: 70
mariadb version: 10.2
Install wordpress: Yes
WordPress listenport: 80
Web site domain: *
Mysql root Password: SampleFpbkFkb
Database name: themes
Database username: themes
Database password: SampleFpbkFkb
Wordpress plus: No
WordPress location: /usr/local/lsws/themes (New install)

Are these settings correct? Type n to quit, otherwise will continue.[Y/n]

Install OpenLitespeed stage 1 Openlitespeed setup stage 2 WordPress installer

I setup the DNS A record of the subdomain to point to my server at It then will show WordPress installer.

The next step is to install PHPMYAdmin. The easiest way to install PHP for OpenLiteSpeed is through our CentOS repository.

The required modules and packages can be install using below command;

yum install lsphp71 lsphp71-mysqlnd lsphp71-common lsphp71-gd lsphp71-pdo lsphp71-process lsphp71-mbstring lsphp71-mcrypt lsphp71-opcache lsphp71-bcmath lsphp71-xml lsphp71-soap lsphp71-json -y 

Then setup PHP for the external App.

Visit http://your_server_IP:7080. Navigate to Server Configuration > External app, then click the second icon Edit on the right hand side in order to edit this application.


Name: lsphp → lsphp71
Command: $SERVER_ROOT/fcgi-bin/lsphp5 → $SERVER_ROOT/lsphp71/bin/lsphp

Download and Extract PHPMYAdmin

cd /usr/local/lsws/themes

mv phpMyAdmin-4.7.4-all-languages phpmyadmin

This installs PHPMYAdmin on OpenLiteSpeed, you can visit PHPMYAdmin at : http://server_IP/phpmyadmin/index.php

After all installation complete and able to login the wordpress, you can proceed to install LiteSpeed Cache plugins from :

LiteSpeed cache settings

*I have disable Apache webserver that listen to port 80

Leave a Reply

Your email address will not be published. Required fields are marked *