LiteSpeed Web Server Local Guide
LiteSpeed is a high-performance web server compatible with Apache configurations, running WordPress and PHP sites on localhost.
LiteSpeed Web Server (LSWS) is a commercial web server, with an open-source version called OpenLiteSpeed available for free. It is known for its performance and can read a large number of Apache configurations, making it common in WordPress hosting.
Default Localhost Access
| Purpose | Address |
|---|---|
| OpenLiteSpeed Default | http://localhost:8088 |
| Admin Panel | https://localhost:7080 |
The default HTTP port for OpenLiteSpeed is 8088 (to avoid conflict with port 80), and the management interface uses 7080.
Installing OpenLiteSpeed
- Linux: Refer to the OpenLiteSpeed official site for one-click scripts or package management installation.
- After installation, follow the prompts to set the admin password.
Website Root Directory
The default example site is located at: /usr/local/lsws/Example/html/
Add a virtual host in the WebAdmin console, pointing the Document Root to your project directory to access it via http://localhost:8088.
Working with WordPress / PHP
OpenLiteSpeed supports PHP (LSAPI), allowing you to set up a local WordPress testing site that closely resembles a production LiteSpeed environment.
Frequently Asked Questions
Cannot Access 8088
Ensure that lswsctrl start has been executed and that the firewall allows the port.
Apache Migration
Most .htaccess rules are compatible, but complex rewrites may need adjustments according to the documentation.
Summary
When using OpenLiteSpeed locally, you can commonly access your site at http://localhost:8088 and manage configurations at 7080.