DirectAdmin Knowledge Base and Support

DirectAdmin is a web panel for a simple administration of both virtual and dedicated servers. DirectAdmin is faster, safe and more powerful than any other CP. And we know how to customize and support it.

How to install OpenLiteSpeed on a DirectAdmin server

| 23:55:00 05.04.2019

I want to have OpenLiteSpeed server on a server with DirectAdmin. How can I do it?


OpenLiteSpeed is the Open Source edition of LiteSpeed Web Server Enterprise with fewer processes, less overhead, and enormous scalability in comparison with other popular web-servers. 

OpenLiteSpeed is mod_rewrite compatible, with no new syntax to learn. Built-in full-page cache module is highly-customizable and efficient for an exceptional user experience.

Experience a measurable performance boost with OpenLiteSpeed and LSCache for WordPress.

OLS comes with a built-in WebAdmin GUI as shown below:

OpenLiteSpeed is the Open Source edition of LiteSpeed Web Server Enterprise.

So if you decided to use it, here is a guide on how to install it.

Installation Guide

At the moment CustomBuild 2.0 offers OpenLiteSpeed for early testing! It's announced DirectAdmin 1.56.5 should be installed for it:

OpenLiteSpeed in Directadmin since  Version 1.565

Here is how can you get it installed with the help of CustomBuild once they introduce the full support of it.

On a CentOS server, first run this as root (it's a requirement): 

yum -y install udns-devel GeoIP-devel

Then do the following:

cd /usr/local/directadmin/custombuild
./build update && ./build clean
./build set webserver openlitespeed

for i in 1 2 3 4; do ./build set php${i}_mode lsphp; done;

./build openlitespeed
./build php
./build rewrite_confs

At this point if everything went fine you have Open Lite Speed installed on Directadmin server.

Example of running of the commands with expected results:

[root@poralix custombuild]# ./build set webserver openlitespeed
Changed webserver option from nginx_apache to openlitespeed
[root@poralix custombuild]#
[root@poralix custombuild]# for i in 1 2 3 4; do ./build set php${i}_mode lsphp; done;
Changed php1_mode option from php-fpm to lsphp
Changed php2_mode option from php-fpm to lsphp
Changed php3_mode option from php-fpm to lsphp
Changed php4_mode option from php-fpm to lsphp
[root@poralix custombuild]#
[root@poralix custombuild]# ./build openlitespeed
Downloading             openlitespeed-1.4.47.tgz...
--2019-04-25 11:57:07--
Resolving (
Connecting to (||:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 43026159 (41M) [application/x-gzip]
Saving to: '/usr/local/directadmin/custombuild/openlitespeed-1.4.47.tgz'

... skipped ...
... skipped ...
... skipped ...

writing new private key to '/usr/local/lsws/ssl.key/server.key'
Restarting litespeed.
[root@poralix custombuild]#
[root@poralix custombuild]# ./build rewrite_confs
Checking to ensure /usr/local/lsws/ssl.crt/ is set.
Using for your server IP
Restarting openlitespeed.
[root@poralix custombuild]#
[root@poralix custombuild]# ps aux | grep openlitespeed
root     13996  0.2  0.1  34288  4332 ?        S    12:00   0:00 openlitespeed (lshttpd - main)
root     14000  0.0  0.0  29616  1572 ?        S    12:00   0:00 openlitespeed (lscgid)
apache   14001  0.0  0.0  36528  2708 ?        S    12:00   0:00 openlitespeed (lshttpd - #01)
apache   14002  0.0  0.0  36660  3264 ?        S    12:00   0:00 openlitespeed (lshttpd - #02)
root     14026  0.0  0.0 110692   900 pts/1    S+   12:00   0:00 grep --color=auto openlitespeed
[root@poralix custombuild]#

If to open a browser and enter your server's IP address in an address bar and connect to it you should see "OpenLiteSpeed is functioning normally".

That's it for now.

About Us
We are a team of professionals, and specialize in installation, configuring and managing of remote virtual and dedicated servers powered by Linux/Unix-like OS with DirectAdmin. We support various sets of software, including web-servers Apache, Nginx; internet domain name servers Bind, PowerDNS; mail-servers with POP3, IMAP and SMTP, FTP-servers, etc. After years of working through the most complex server challenges our team has gathered valuable experience and universal solutions suitable for everyday tasks. We are here to lend you a helping hand and take care of your servers in order to let you have enough time to do more of what you love.

All of the information and data on this site is for informational purposes only and is provided for the convenience of the user.
Powered by: Amiro.CMS - Free edition