Repository navigation
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.