Set up LiteSpeed Web Server on DirectAdmin

2 Video Views·Mar 28, 2023

This video demonstrates how to install the Enterprise edition of LiteSpeed Web Server on the DirectAdmin Web Control Panel.

Requirements:
- DirectAdmin Web Control Panel with full SSH root access
- If you have Apache replacements or reverse proxies, remove them
- If you have Varnish installed, remove it
- TCP ports 7080, 80, and 443 should be open
- UDP port 443 should be open

Additional Resources:

How to choose a LiteSpeed Web Server license:
https://www.litespeedtech.com/products/litespeed-web-server/choosing-a-license
Purchase a license:
https://store.litespeedtech.com

CLI commands to install LSWS with a serial number or trial license:
https://docs.litespeedtech.com/lsws/cp/directadmin/installation/#detailed-installation

For the CLI with Options method, use this command:
nano lsws.options

and add the following lines, substituting your desired PHP versions:
php_version_default="8.2"
php_version_second="8.1"
php_version_third="8.0"
php_version_fourth="7.4"

Download the LiteSpeed plugin for DirectAdmin:
https://www.litespeedtech.com/products/litespeed-web-server/control-panel-plugins/download

Verify LSCache is working on one of your domains:
https://check.lscache.io

CLI command to switch from LiteSpeed to Apache:
/usr/local/lsws/admin/misc/cp_switch_ws.sh apache

CLI command to switch from Apache to LiteSpeed:
/usr/local/lsws/admin/misc/cp_switch_ws.sh lsws

Contact LiteSpeed support for issues with trial licenses:
From your client area, or via email to [email protected]

Use DirectAdmin with OpenLiteSpeed:
https://openlitespeed.org/kb/install-openlitespeed-with-directadmin/

DirectAdmin documentation:
https://docs.directadmin.com/webservices/litespeed/general.html
Our documentation:
https://docs.litespeedtech.com/lsws/cp/directadmin/installation/
Our blog:
https://blog.litespeedtech.com/2019/12/09/litespeed-support-in-directadmin/