Repository navigation
Releases
OpenLiteSpeed for Windows 1.9.4, update 12
Tools for PHP development: Xdebug with one switch, a mail catcher, background jobs and a Node.js version for each site. This release also fixes setup on computers without Laragon.
New for developers
- Xdebug: the switch in the Xdebug column of the PHP page, or
openlitespeed --php xdebug <folder> on, turns on Xdebug for that PHP version. An Xdebug in theextfolder is used when it loads, otherwise the official build is downloaded from xdebug.org and checked against a SHA-256 kept in OpenLiteSpeed (Xdebug 3.5.3 for PHP 8.2 to 8.5). It connects to a debugger on127.0.0.1:9003, and without a debugger the request goes on at once. Xdebug cannot be turned on while the Windows service is installed. - Mail catcher: the Mail page, or
openlitespeed --mail on, keeps every mail that the local sites send on your computer. PHPmail()works without settings, apps that use SMTP send to127.0.0.1port 1025, and new Laravel sites get these settings in.env. The Mail page shows the text and HTML parts and saves attachments. The HTML runs without scripts and loads nothing from the internet, saved attachments are marked as downloaded so Windows warns before opening them, and a web page in the browser cannot send mail to the catcher. - Background jobs: More > Background jobs on the Sites page, or
openlitespeed --job add <site> <name> <command>, runs commands such asphp artisan queue:workornpm run devin the site folder. Jobs start and stop with the web server, start again when they end, and write tologs\jobs\<site>.<name>.log. - Node.js for each site: pick it in the Version column of the Sites page or with
openlitespeed --site node <site> <node.exe>. A.nvmrcor.node-versionfile picks the newest installed Node.js of that major version. Jobs and the terminal of the site use the same version. - Open in VS Code: More > Open in VS Code on the Sites page opens the site folder in VS Code.
- VS Code extension: OpenLiteSpeed for VS Code runs the server, the sites, PHP versions, Xdebug, the mail catcher, background jobs and the logs from the editor.
openlitespeed --php listlists the PHP versions with their sites and Xdebug state as JSON, and--statusshows the folder of every site.
Security
- Zip installs: a zip extracted to a folder under
C:\takes Modify for all users from the folder above, so another user of the computer could replaceopenlitespeed.exeor the configuration.install.ps1now limits the folder to your account, administrators and the system, as setup does. - Windows service: the dashboard terminal, jobs and site apps put PHP and Node.js folders from the configuration first on the
PATH, and with the service the service account can change that configuration. Only detected PHP and Node.js folders are used now, and installing or starting the service warns about PHP folders outside the install folder that other users can change, such as the PHP folders of Laragon and XAMPP. - Downloads: updates, PHP, Node.js, Xdebug, MariaDB, phpMyAdmin, Cloudflare Tunnel and WordPress are downloaded with curl, which also reads the curl configuration file of the user (
.curlrc). That file could turn off the certificate check or send the downloads to another server. It is now ignored.
Fixes
- Setup,
install.ps1and the Scoop install stopped with an error at the configuration step on computers without Laragon. They now work on every computer. - Scoop updates, and every other run of
install.ps1over an installation, set a new WebAdmin password and rewroteconf\olstray.ini. The mail catcher and job settings, the PHP and Node.js version of each site, the database port, the update settings, the projects folder, the site suffix and the full stack edition were lost. The password and these settings are now kept. - With no local sites, an install as administrator wrote an empty OpenLiteSpeed block into the hosts file. The hosts file is now left alone, and a block that is no longer needed is removed together with the blank line in front of it.
- The Apps and Features entry has a quiet uninstall command, so
winget uninstallremoves OpenLiteSpeed without a confirmation dialog. - The README is also available in Turkish, Chinese, Spanish, Portuguese, Russian, Japanese, German, French, Korean and Indonesian.
Install
Scoop:
scoop bucket add neuralfoundry https://github.com/NeuralFoundry/scoop-bucket
scoop install neuralfoundry/openlitespeed
Or download OpenLiteSpeed-1.9.4-win64-setup.exe below and run it. Checksums are in SHA256SUMS.txt, signed in SHA256SUMS.txt.sig. If you run 1.9.4-win.11, the tray offers this update.
Built from OpenLiteSpeed 1.9.4 for 64-bit Windows 10, 11 and Server.
OpenLiteSpeed for Windows 1.9.4, update 11
A security update. The fixes came out of the review of the new OpenLiteSpeed for macOS, which shares this code. Updating is recommended for everyone.
Security
- Apache and nginx importers: text from an imported configuration could add lines of its own to the OpenLiteSpeed configuration, for example a quoted nginx
listenvalue with line breaks, which could start a program on the next reload. Every value is now checked before it is written. Items that cannot be written safely are skipped and listed in the report, and listen addresses are validated. - Importers: values containing
<<<could swallow the rest of a configuration file and made--removedelete too much. These values are refused, and--removeremoves only the imported blocks. - nginx importer:
allow,denyandauth_basicof a server block now carry over into its locations as in nginx, alocation /no longer drops them, andinternal;locations are no longer public. - Importers: the copied certificate chain takes only certificate blocks, never a private key, and is readable by the owner only. Include loops, very large include trees and deep nesting are stopped.
- Password files: a stored hash typed as the password was accepted, and so were plain text passwords. Every entry is now checked with its hash only, as in Apache.
- WebAdmin password: when PowerShell sent a byte order mark in front of a password read from standard input, for example in a Scoop install from a profile that uses UTF-8, the mark became part of the password and the login failed. The mark is now ignored.
Fixes
<Files>and<FilesMatch>rules from.htaccessalso apply to files served from the static file cache.- The password prompt of a protected folder shows its realm name again.
- A certificate whose domain fails to resolve for a moment at startup is kept instead of deleted, and the daily renewal check is no longer used up while another certificate request runs.
Install
Scoop:
scoop bucket add neuralfoundry https://github.com/NeuralFoundry/scoop-bucket
scoop install neuralfoundry/openlitespeed
Or download OpenLiteSpeed-1.9.4-win64-setup.exe below and run it. Checksums are in SHA256SUMS.txt, signed in SHA256SUMS.txt.sig. If you run 1.9.4-win.10, the tray offers this update.
Built from OpenLiteSpeed 1.9.4 for 64-bit Windows 10, 11 and Server.
OpenLiteSpeed for Windows 1.9.4, update 10
This release turns the dashboard of the full stack edition into a control center for the whole stack: PHP and Node.js versions, a PHP version per site, Laravel, Node.js and Python sites, databases, logs and settings.
Dashboard
The dashboard now has pages for Overview, Sites, PHP, Node.js, Databases, Logs and Settings.
- Overview: the web server, MariaDB and Cloudflare Tunnel, requests per second, open connections and the sites
- Sites: a PHP version for each site, More with open folder, terminal here, run as a Node.js or Python app, restart app and remove site (the folder goes to the Recycle Bin, databases stay)
- PHP: install PHP 7.4 to 8.5 from windows.php.net, choose the default, turn extensions on and off, change the common
php.inisettings, editphp.ini, install Composer - Node.js: install the current and LTS versions from nodejs.org, choose the one that runs the apps, restart an app and read its log
- Databases: create a database with its own user and a generated password, export and import
.sqlfiles, remove a database - Logs: the server, MariaDB, app and tunnel logs with a filter and a follow switch
- Settings: start with Windows, the projects folder, trusted HTTPS, the HTTP and WebAdmin ports and the WebAdmin password
- Terminal: a command prompt with PHP, Composer, Node.js and the MariaDB client on the
PATH
New kinds of site
New site creates a PHP site, WordPress, a Laravel project with Composer, a Node.js app or a Python app. The same from the command line: openlitespeed --new-site <name> --laravel|--node|--python.
Command line
--php available|install|remove|ext|ext-set|ini|ini-setfor PHP versions, extensions and settings--node list|available|install|default|removefor Node.js versions--composer install--site php <site> <folder>|defaultand--site app <site> node|python|off--db list|create|drop|export|import--set-port http|admin <port>
Security
- PHP, Node.js and Composer downloads are checked against the SHA-256 their publishers list, through a locked file in a private folder, before they are unpacked.
- Values from the dashboard are checked before they reach a command line, a configuration file or SQL.
- A new database password is shown once and copied without going into the clipboard history.
Install
Scoop:
scoop bucket add neuralfoundry https://github.com/NeuralFoundry/scoop-bucket
scoop install neuralfoundry/openlitespeed
Or download OpenLiteSpeed-1.9.4-win64-setup.exe below and run it. Checksums are in SHA256SUMS.txt, signed in SHA256SUMS.txt.sig. If you run 1.9.4-win.9, the tray offers this update.
Built from OpenLiteSpeed 1.9.4 for 64-bit Windows 10, 11 and Server.
OpenLiteSpeed for Windows 1.9.4-win.9
This release adds a dashboard and a full stack edition with MariaDB, phpMyAdmin and Cloudflare Tunnel, so a site on your computer can go online even behind a local IP.
Two editions in one setup
Setup now asks for the edition:
- Full stack: OpenLiteSpeed, PHP, the tray app, the dashboard, MariaDB 11.8, phpMyAdmin 5.2 and Cloudflare Tunnel. Setup downloads about 170 MB and checks every file against a pinned SHA-256.
- Web server only: OpenLiteSpeed, PHP and the tray app, as before.
An upgrade keeps the current edition. Running setup again switches it, and switching to the web server only keeps your databases. Unattended: --edition server|full, or -Edition full for install.ps1.
Dashboard
A desktop window (WebView2, it does not listen on a port) to start and stop the web server, MariaDB and tunnels, create sites and proxy sites, switch PHP, turn on trusted HTTPS, copy the database password and read the error log. Open it from the Start menu or with a double click on the tray icon.
Put a local site online
Turn on Online next to a site, or run openlitespeed --tunnel start <site>. Cloudflare gives it a public https://*.trycloudflare.com address. Nothing is opened in the firewall and visitors keep their real IP address. Your own domain works with a Cloudflare tunnel token, stored encrypted for your Windows account. phpMyAdmin and WebAdmin stay local only.
Also new
- New site in the tray and the dashboard, optionally with WordPress, its own database and a filled in
wp-config.php - Trusted HTTPS for local sites with a certificate authority limited to
.test,.localhost,.internaland this computer - Proxy sites for apps on a local port, such as
api.testfor127.0.0.1:3000 - Signed updates: the tray downloads a new release, checks its Ed25519 signature and SHA-256 and runs the new setup when you confirm. Install this release with setup once; later releases can then be installed from the tray.
openlitespeed --statusprints the server, PHP, sites, database and tunnels as JSON- The hosts file is only written when a site name changes, so fewer administrator prompts
Security
- Setup limits the install folder to your account, administrators and the system. Before, other users of the computer could change the programs and the configuration in
C:\OpenLiteSpeed. Upgrading applies this to existing installations. - Setup loads its DLLs from System32 only, refuses to write through junctions and removes stray DLLs from
bin. - MariaDB never runs as administrator, and
SELECT ... INTO OUTFILEis limited todata\files. - With trusted proxy headers,
CF-Connecting-IPnow wins overX-Real-IP, so a visitor coming through Cloudflare cannot pose as 127.0.0.1. The change is in the bundled OpenLiteSpeed code. - Proxy sites and the WordPress installer answer this computer only.
- MariaDB, phpMyAdmin and cloudflared are checked against a pinned SHA-256 through a locked file in a private folder, and cloudflared is checked again each time it starts. PHP downloads are checked the same way against the checksum published by windows.php.net.
Install
Scoop:
scoop bucket add neuralfoundry https://github.com/NeuralFoundry/scoop-bucket
scoop install neuralfoundry/openlitespeed
Or download OpenLiteSpeed-1.9.4-win64-setup.exe below and run it. Checksums are in SHA256SUMS.txt, signed in SHA256SUMS.txt.sig.
Built from OpenLiteSpeed 1.9.4 for 64-bit Windows 10, 11 and Server.
OpenLiteSpeed 1.9.4-win.8
This release fixes security problems found in a review. Updating is recommended, especially on multi-user machines.
Setup and installer
- The PHP auto-detection no longer trusts locations any user can write to. The scans of drive roots (
C:\php*, WampServer, Chocolateytools\php*), thePATH, and the per-user registry are gone, so aphp-cgi.exeplanted by a standard user can no longer be auto-selected and run by the elevated installer. Laragon, XAMPP, a bundled PHP andProgram Files\PHPare still detected; you can always pass--php <folder>or let setup download PHP. - A silent install no longer writes the generated admin password to the log file. It prints it to the console and leaves only a masked line in the log.
- Values that go into the PowerShell install command (the project folder and ports) are validated, so a crafted
laragon.inican no longer inject extra parameters. - The admin password is handed to
openlitespeed.exethrough standard input instead of its command line, so it does not appear in process listings or command-line auditing.
WebAdmin console and Example app
- Reflected cross-site scripting in the configuration table title and the log search response is fixed.
- The context-reorder action now requires a valid request token (CSRF).
- The Example
upload.phpsample is hardened: output is escaped, the file move is confined to the temporary directory, and URL sources are rejected (cross-site scripting, path traversal and server-side request forgery).
The WebAdmin and Example fixes are in the bundled OpenLiteSpeed code and also apply to OpenLiteSpeed on Linux.
Install
winget:
winget install NeuralFoundry.OpenLiteSpeed
Or download OpenLiteSpeed-1.9.4-win64-setup.exe below and run it. Checksums are in SHA256SUMS.txt.
Built from OpenLiteSpeed 1.9.4 for 64-bit Windows 10, 11 and Server.
OpenLiteSpeed for Windows 1.9.4, update 7
Node.js apps now run without changes, their WebSockets work with several workers, and setup no longer stops when PHP cannot be downloaded.
New
- Node.js runner openlitespeed-node, also on npm. It finds the start file from
package.json, runs CommonJS, ES modules and TypeScript, starts Next.js, serves apps that only export an Express app or a fetch handler, gives the app the real client address and supports cluster mode.npm install -g openlitespeed-nodeadds theols-nodecommand:doctorshows how an app will start,runruns it locally,addadds it to a site andrestartrestarts it. An app that has the package innode_modulesis started with its own copy. See docs/APPS.md.
Fixes
- WebSockets of Node.js apps were sent to the app instance of the first worker, so they failed with more than one worker or before the app had started. They now reach the app of the current worker, start it when needed and wait until it listens.
- A WebSocket connection whose backend cannot be reached is now closed instead of staying open.
tmp\restart.txtin an app folder now restarts the app on Windows.- When PHP cannot be downloaded, setup now completes without PHP instead of failing. PHP pages answer with 503 until PHP is installed by running setup again, and WebAdmin starts at that point.
- Apps and Features shows the full release number.
Downloads
| File | Use |
|---|---|
OpenLiteSpeed-1.9.4-win64-setup.exe |
Installer for a standalone server, Laragon or XAMPP |
OpenLiteSpeed-1.9.4-win64.zip |
The same files with install.ps1 for scripted deployments |
SHA256SUMS.txt |
Checksums of both files |
To update, run the new setup. It finds the existing installation, upgrades it and keeps the configuration.
The files are not code signed yet, so Windows SmartScreen may ask for confirmation the first time. Check the download against SHA256SUMS.txt.
OpenLiteSpeed for Windows 1.9.4, update 6
Adds the ModSecurity firewall with the OWASP Core Rule Set, an importer for nginx sites, Node.js and Python applications, Lua scripting and the visitor's country from GeoIP databases.
New
- Web application firewall: ModSecurity 3.0.17 with the OWASP Core Rule Set 4.30.
openlitespeed --modsec-installturns it on,--detection-onlyonly logs matches and--removeturns it off. SQL injection, cross site scripting and path traversal in the URL, forms, JSON and XML bodies are answered with 403. See docs/PROTECTION.md. - Importer for nginx sites:
openlitespeed --import-nginxor Sites > Import nginx sites in the tray app creates a site for everyserverblock, with locations in nginx order of precedence,try_files, rewrites, redirects, aliases, proxies, access rules and passwords. Tested against nginx 1.30 with the same results for 51 of 51 requests. See docs/NGINX.md. - Node.js and Python (WSGI) applications through App Server contexts, started, restarted and stopped by the server. See docs/APPS.md.
- Lua scripting with LuaJIT 2.1 through
mod_lua. Withmaxlinecountandmaxruntime, a script that loops forever is stopped; OpenLiteSpeed on Linux cannot do this, because compiled loops never reach the instruction hook. See docs/MODULES.md. - The visitor's country from MaxMind GeoIP2 and IP2Location databases, for PHP and for rewrite rules such as blocking countries. See docs/PROTECTION.md.
Downloads
| File | Use |
|---|---|
OpenLiteSpeed-1.9.4-win64-setup.exe |
Installer for a standalone server, Laragon or XAMPP |
OpenLiteSpeed-1.9.4-win64.zip |
The same files with install.ps1 for scripted deployments |
SHA256SUMS.txt |
Checksums of both files |
To update, run the new setup. It finds the existing installation, upgrades it and keeps the configuration.
The files are not code signed yet, so Windows SmartScreen may ask for confirmation the first time. Check the download against SHA256SUMS.txt.
OpenLiteSpeed for Windows 1.9.4, update 5
Adds CGI, automatic Let's Encrypt certificates, reCAPTCHA bot protection and release notices in the tray app.
New
- CGI programs:
.exe,.batand.cmdfiles and scripts with a#!line such as Perl or Python. Each program runs in its own job object with a restricted token. The Apache importer convertsScriptAlias,AddHandler cgi-script,SetHandler cgi-scriptandOptions ExecCGI. - Free HTTPS certificates from Let's Encrypt with a built-in ACME client.
openlitespeed --acme-install --email you@example.comturns it on; certificates are requested for the sites on HTTPS listeners and renewed before they expire, with a zero downtime reload. See docs/ACME.md. - reCAPTCHA and hCaptcha challenges for suspicious visitors, and request, bandwidth and connection limits per client IP. See docs/PROTECTION.md.
- The upload progress and request body parser modules are built in and load when the configuration has a
moduleblock for them. See docs/MODULES.md. - The tray app checks GitHub once a day and shows a notice when a new release is out.
check=0under[update]inconf\olstray.initurns this off.
Changed
- When a visitor cancels a request,
lsphp.exefinishes it and handles the next request instead of being restarted. Under load with many cancelled requests, far fewer PHP processes are started.
Fixed
- reCAPTCHA could be bypassed: when a rewrite rule started a challenge, the next request received the protected page.
- reCAPTCHA verification failed unless the rewrite rule also matched the verification address.
- CGI responses for the server level reCAPTCHA page were lost and the request hung.
- Uploaded files passed to the application by path kept extra bytes at the end.
- Validation files of webroot ACME clients such as win-acme returned an error.
- The version information no longer lists
mod_security, which is not part of the Windows build. - Two test builds of
lsphp.exeinbin\lsphpwere included by mistake in updates 2 to 4. They were never used and are removed on upgrade.
Downloads
| File | Use |
|---|---|
OpenLiteSpeed-1.9.4-win64-setup.exe |
Installer for a standalone server, Laragon or XAMPP |
OpenLiteSpeed-1.9.4-win64.zip |
The same files with install.ps1 for scripted deployments |
SHA256SUMS.txt |
Checksums of both files |
To update, run the new setup. It finds the existing installation, upgrades it and keeps the configuration.
The files are not code signed yet, so Windows SmartScreen may ask for confirmation the first time. Check the download against SHA256SUMS.txt.
OpenLiteSpeed for Windows 1.9.4, update 4
.htaccess files now work as in Apache. Everyone who relies on .htaccess to protect folders should update.
Security
- Until now OpenLiteSpeed read only rewrite rules from
.htaccessfiles. Access rules in them were ignored, so folders that applications protect with their own.htaccess, such as the log folder of WooCommerce, could be opened from the web. These rules are now applied:Require,RequireAll,RequireAny,Order,Allow,Deny,Satisfy, Basic authentication withAuthUserFile,<Files>,<FilesMatch>and<Limit>. php_flag engine off,RemoveHandler .phpandSetHandler nonein.htaccessblock PHP files in that folder.Options -IndexesandOptions +Indexesin.htaccessturn directory listings off and on.
A new, changed or deleted .htaccess file takes effect within a second, without a restart. The rules apply together with the rules of the site configuration.
Changed
- The Apache importer no longer copies
.htaccessrules into the site configuration, so later changes to those files take effect.
Downloads
| File | Use |
|---|---|
OpenLiteSpeed-1.9.4-win64-setup.exe |
Installer for a standalone server, Laragon or XAMPP |
OpenLiteSpeed-1.9.4-win64.zip |
The same files with install.ps1 for scripted deployments |
SHA256SUMS.txt |
Checksums of both files |
To update, run the new setup. It finds the existing installation, upgrades it and keeps the configuration.
The files are not code signed yet, so Windows SmartScreen may ask for confirmation the first time. Check the download against SHA256SUMS.txt.
OpenLiteSpeed for Windows 1.9.4, update 3
Adds an importer for existing Apache sites.
New
openlitespeed --import-apachereads an Apache 2.4 configuration with all itsIncludefiles and creates a site for every<VirtualHost>: domains, document root, SSL certificate, redirects, rewrite rules, aliases, proxies, access rules and passwords. An HTTP block that only redirects to HTTPS is merged with its HTTPS block.- Access rules and passwords that live in
.htaccessfiles are converted as well. Access rules are converted exactly or made stricter, never more permissive, and anything that cannot be converted is listed in the report. Sites bound to an IP address keep that address, and HTTP and HTTPS blocks that differ become separate sites. - The Apache configuration of Laragon, XAMPP, WampServer or
C:\Apache24is found automatically.--dry-runshows the report without changing anything, importing again replaces the earlier import, and--import-apache --removetakes it out. - The tray app has the same function under Sites > Import Apache sites.
Details are in docs/APACHE.md.
Fixed
- Directory listings now work for aliases outside the document root.
Downloads
| File | Use |
|---|---|
OpenLiteSpeed-1.9.4-win64-setup.exe |
Installer for a standalone server, Laragon or XAMPP |
OpenLiteSpeed-1.9.4-win64.zip |
The same files with install.ps1 for scripted deployments |
SHA256SUMS.txt |
Checksums of both files |
To update, run the new setup. It finds the existing installation, upgrades it and keeps the configuration.
The files are not code signed yet, so Windows SmartScreen may ask for confirmation the first time. Check the download against SHA256SUMS.txt.