OpenLiteSpeed in ispmanager
How OpenLiteSpeed works
OpenLiteSpeed uses an asynchronous, event-driven model for handling requests. In this model, a single master process manages multiple child processes, with each using multiple threads to process thousands of connections:
- master process launches multiple child processes, or workers
- workers, with multiple threads, run on behalf of the owner of the site that received the request, handling static requests and passing dynamic ones to the PHP handler
- handler processes run on behalf of the site owner
OpenLiteSpeed limitations
- OpenLiteSpeed web server is not supported on CloudLinux. If OpenLiteSpeed is installed on a server running AlmaLinux 8, migration to CloudLinux will not be possible.
- OpenLiteSpeed cannot be installed together with other web servers.
Changes after OpenLiteSpeed installation
Switching web servers may cause website malfunctions.
- A version of OpenLiteSpeed from the http://rpms.litespeedtech.com/ repository is installed.
- Configuration files are prepared. Listeners are created in the directory
/usr/local/lsws/conf/listeners
on TCP ports 80 and 443 for each IP address on the server. A virtual host is created for each site on the server. - For all installed alternative versions of PHP, the PHP-FPM and Apache modules are removed and the LSAPI module is installed.
- An alternative version of PHP is installed that corresponds to the native version on this version of the operating system. For example, for Debian 12, an alternative PHP 8.2 is installed.
- All existing users are granted permission to use PHP in LSAPI mode if they were previously allowed to use PHP in any mode. The default PHP mode is reset. User settings that require Apache, Nginx, or LiteSpeed are reset.
- All existing sites are converted to work with OpenLiteSpeed. For sites with a PHP handler in any mode, PHP in LSAPI mode is installed. For sites with Python or Node.js handler, the handler is reset. Site settings that require Apache, Nginx, or LiteSpeed are reset.
OpenLiteSpeed logging
Viewing logs is available to accounts with superuser rights.
OpenLiteSpeed global logs
/usr/local/lsws/logs/access.log
— access log/usr/local/lsws/logs/error.log
— error log
Site logs
Logs are available if they are enabled for the site.
/var/www/httpd-logs/DOMAIN.access.log
— access log/var/www/httpd-logs/DOMAIN.error.log
— error log
Viewing logs is also available in the WWW request logs section.