Skip to content
HomeKnowledge BaseStatisticsChangelog GitHub Discord Email
tutorials / OpenLiteSpeed Stack

No results for ""

OpenLiteSpeed Stack

Overview

The ols stack uses OpenLiteSpeed — a high-performance open-source web server with built-in LiteSpeed Cache support. It offers:

  • Built-in page caching via LiteSpeed Cache plugin
  • LSPHP (LiteSpeed PHP) — typically faster than PHP-FPM for WordPress
  • Admin panel at https://domain.tld:7080 (when PMA is enabled)
  • Bedrock support via ols-bedrock

Creating a Site with OLS

bash
demyx run domain.tld --stack=ols --ssl

LSPHP Version

OLS uses LSPHP instead of PHP-FPM. Switch the PHP version:

bash
demyx config domain.tld --php=8.4

For OLS, this sets DEMYX_APP_OLS_LSPHP. Supported: 8.3, 8.4.

LiteSpeed Cache

Enable the built-in LiteSpeed Cache:

bash
demyx config domain.tld --cache=true

This installs the LiteSpeed Cache plugin and configures it. Caching is handled at the server level for maximum performance.

OLS Admin Panel

Enable phpMyAdmin-style access to OLS admin:

bash
demyx config domain.tld --pma=true

The OLS admin panel is accessible at port 7080. Credentials are shown with:

bash
demyx info domain.tld -l

OLS-Bedrock Stack

Run Roots Bedrock on OpenLiteSpeed:

bash
demyx run domain.tld --stack=ols-bedrock --ssl

Switching Stacks

From OLS to NGINX-PHP:

bash
demyx config domain.tld --stack=nginx-php
You can switch between ols and nginx-php. You cannot switch from ols to bedrock (different WordPress structure).

Resource Management

bash
# Set CPU and memory limits for the WP container
demyx config domain.tld --wp-cpu=.50 --wp-mem=512m

# Set DB container limits
demyx config domain.tld --db-cpu=.25 --db-mem=256m

Viewing OLS Logs

bash
# Access log
demyx log domain.tld

# Error log
demyx log domain.tld -e