Skip to content

Installation

LiteHTTPD (Full) is the default and recommended edition. It includes the patched OLS binary and the htaccess module.

  • OpenLiteSpeed 1.7.0 or later
  • Linux x86_64 (ARM64 not yet supported)
  1. Add the LiteHTTPD RPM repository and install:

    Terminal window
    curl -s https://rpms.litehttpd.com/setup.sh | bash
    dnf install openlitespeed-litehttpd

    This single RPM includes the patched OLS binary, the bundled htaccess module, and auto-configuration. Packages are GPG signed.

  2. Restart OLS:

    Terminal window
    systemctl restart lsws

For stock OLS without patches. Quick to set up but limited:

  • RewriteRule directives are parsed but not executed
  • php_value/php_flag directives are parsed but not passed to lsphp
  1. Copy the module to OLS:

    Terminal window
    cp litehttpd_htaccess.so /usr/local/lsws/modules/
  2. Enable the module in OLS config:

    Terminal window
    cat >> /usr/local/lsws/conf/httpd_config.conf <<'CONF'
    module litehttpd_htaccess {
    ls_enabled 1
    }
    CONF
  3. Restart OLS:

    Terminal window
    /usr/local/lsws/bin/lswsctrl restart

Consider upgrading to Full for production WordPress sites that rely on .htaccess redirects.