Skip to content

Installation and Configuration

Video walkthrough

Watch Set Up LiteSpeed Web Server on DirectAdmin on YouTube.

Before you begin

  1. Obtain a LiteSpeed Web Server license from the LiteSpeed Store.
  2. Confirm that you have root SSH access on the server.
  3. Remove any existing Apache replacements or reverse-proxy layers, such as nginx or Varnish, before you install LiteSpeed Web Server.
  4. Verify that your DirectAdmin server is healthy on Apache before migration.
  5. Confirm that your firewall allows the required ports: TCP 80, TCP 443, UDP 443, and TCP 7080.

If you need help choosing a plan, see Choosing a License.

Choose an installation method

Detailed installation

This method is recommended for first-time installations.

Run the installer script

  1. Connect to your server over SSH as root.
  2. Run the installer command, replacing your_serial_no with your license key:
bash <(curl -fsSL https://get.litespeed.sh) your_serial_no

Tip

To request a trial license, replace your_serial_no with TRIAL:

bash <(curl -fsSL https://get.litespeed.sh) TRIAL
If the trial request fails, see What if I see a failure message when I request a trial license during installation?.

Respond to installer prompts

The script uses DirectAdmin CustomBuild and prompts for DirectAdmin-specific options.

When you run in guided mode, you may see this prompt:

Could not find an lsws.options file. We will ask you for your preferred settings instead, but for automated bulk provisioning, you may want to exit and create an lsws.options file. Continue Installer (Y/N)?

For a guided installation, enter Y, and press Enter.

The installer then prompts for PHP versions:

Prompt Purpose Typical input
php_version_default Sets the primary PHP version. A supported version shown by the installer
php_version_second Adds a second PHP version (optional). A supported version, or no
php_version_third Adds a third PHP version (optional). A supported version, or no
php_version_fourth Adds a fourth PHP version (optional). A supported version, or no

Confirm successful installation

After the script finishes, it displays a success message and a generated LiteSpeed WebAdmin Console password.

Install finished! Your randomly generated admin password for the LiteSpeed WebAdmin interface on port 7080 is <generated_password>

Store this password in a secure location. You can change it later.

If you encounter installation errors, open a support ticket.

Quick automated installation

Use this method for unattended provisioning across multiple servers.

Create an lsws.options file

Place an lsws.options file in your installer working directory, or host it internally for download:

php_version_default="8.3"
php_version_second="8.4"
php_version_third="no"
php_version_fourth="no"

If you are unsure about option values, run Detailed installation once first.

Run unattended installation

  1. Download your prepared options file (example URL shown):
curl -fsSL -o lsws.options https://repo.example.com/lsws.options
  1. Run the installer:
bash <(curl -fsSL https://get.litespeed.sh) your_serial_no
  1. Optional: request a trial license by using TRIAL instead of your_serial_no.

Verify LiteSpeed Web Server is running

LiteSpeed service status in DirectAdmin

In DirectAdmin, navigate to Admin Level > Service Monitor and confirm that litespeed is running.