This is an old revision of the document!


Installing LiteSpeed Web Server with CustomBuild 2.0

Starting with CustomBuild 2.0 RC7, DirectAdmin's CustomBuild 2.0 supports integration with LiteSpeed Web Server. This wiki will guide you through the steps to installing LSWS on a server using DirectAdmin with CustomBuild 2.0.

This wiki assumes that you already have a working server using DirectAdmin (version 1.45.2 and up), CustomBuild 2.0, and Apache.

Using the command line, LSWS can be installed with the following commands:

cd /usr/local/directadmin/custombuild
./build update
./build set webserver litespeed
./build set php1_mode lsphp
./build litespeed
./build php n

The commands above install LSWS with a trial license and build PHP for LSWS.

Now that LSWS is installed, follow the steps in the wiki on activating licenses to switch from the trial license to a purchased license.

Notes:

  • CustomBuild 2.0 will always install the latest version of LSWS.
  • If you have an existing installation of LSWS, you will still need to run the above commands to see LSWS in CustomBuild and DirectAdmin's Service Manager.

The current LiteSpeed DirectAdmin Plugin (version 1.0.6) was developed before CustomBuild 2.0 added LiteSpeed integration. It thus has a number of functionalities — like LSWS installation, building matching PHP, and restarting LSWS — that are redundant with CustomBuild. We recommend that, where possible, you use the integrated functionality instead of the LiteSpeed DirectAdmin Plugin.

Functionality Unique to the LiteSpeed DirectAdmin Plugin

There is still some functionality that the LiteSpeed DirectAdmin Plugin has that CustomBuild 2.0 does not:

  1. Downgrade LSWS version: CustomBuild 2.0 will always install the latest version of LSWS. If you want to downgrade to a previous version, this can be done from the LiteSpeed DirectAdmin Plugin.
  2. Uninstall LSWS: CustomBuild 2.0 allows you to install LSWS, but does not have an uninstall function.
  3. Portal to LSWS's configs: The LiteSpeed DirectAdmin Plugin has a link to LSWS's WebAdmin console.
  4. License management: The LiteSpeed DirectAdmin Plugin allows you to start license migration and change the license registered on that server.
  5. Run LSWS on a port offset:
  • Admin
  • Last modified: 2014/08/07 17:51
  • by Michael Armstrong