This update introduces comprehensive support for the mod_lsapi module with NGINX, marking a significant enhancement in the efficiency and functionality of NGINX servers utilizing LSAPI. This integration not only broadens the capabilities of NGINX servers but also ensures compatibility with key features and the stability of hosted applications. Here’s what’s new:
Contents
Connection Pool Support
- Added: Connection pooling enhances the management of client connections, improving performance and resource utilization.
Checkpoint/Restore In Userspace (CRIU) Support
- Added: Integration with CRIU allows for the freezing and migration of running applications, facilitating more efficient server management.
mod_hostinglimits for NGINX
- Note: The mod_hostinglimits functionality was not replicated for NGINX, deemed unnecessary for its architecture.
Apache2Nginx Converter Integration
-
Added: The latest release of Apache2Nginx integrates with the LSAPI NGINX module. When transitioning from Apache to NGINX, it automatically leverages LSAPI-based PHP hosting by setting up the LSAPI NGINX module and all the relevant LSAPI configuration directives ensuring seamless transition and compatibility.
Configuration and Management Enhancements
- Added: Ability to edit the php.ini file directly, offering greater control over PHP configurations.
- Added: Support for passing PHP environmental parameters via the NGINX config file, enhancing the flexibility of PHP applications.
- Implemented: Logic to terminate LSPHP backends and reset CRIU images upon NGINX restart, ensuring a clean and efficient operational state.
- Implemented: Adjusting the Out-Of-Memory (OOM) score according to the mod_lsapi project guidelines, optimizing system resource usage.
- Implemented: Recovery logic for broken connections with LSPHP backend, ensuring uninterrupted application performance.
HTTP Support Enhancements
- Added: Support for HTTP requests with payloads, broadening the range of supported applications and use cases.
- Added: Comprehensive support for all HTTP methods, enhancing the mod_lsapi’s flexibility and compatibility with web standards.
Compatibility and Security
- Guaranteed: The LSAPI module’s compatibility with CageFS functionality, ensuring a secure and isolated environment for hosted applications.
- Guaranteed: Compatibility with LVE limits functionality, maintaining performance and resource usage within specified limits.
Installation on cPanel servers
Option 1. For Apache users willing to transition to NGINX
You can use Apache2Nginx to set up NGINX hosting on the server and automatically convert .htaccess files into the corresponding NGINX configuration. The latest release of Apache2Nginx automatically sets up the new LSAPI NGINX module for websites hosted on Apache with LSAPI.
To use Apache2Nginx, first install the apache2nginx package:
yum --enablerepo=cloudlinux-updates-testing install apache2nginx
Then convert to NGINX by running:
apache2nginx setup
The LSAPI NGINX module will be automatically installed and configured for you.
For more details, please visit the Apache2Nginx documentation page.
Option 2. For existing NGINX users without Apache2Nginx
For existing users of NGINX on cPanel who did not set up NGINX using Apache2Nginx, nginx-mod-lsapi can be installed through the YUM package manager.
yum install ea-nginx-mod-lsapi --enablerepo=cl-ea4-testing
For more details about the configuration and supported directives, please refer to the nginx-mod-lsapi documentation page.