Back to Changelog
v1.0.261
Apache MPM runtime switching: postApplyFixes hook for mpms-shared packages + GET/POST /api/v1/apache/mpm-mode endpoints.
New Features
3- Added postApplyFixes hook for Apache mpms-shared packages: detects mod_mpm_prefork/worker/event.so on disk and idempotently injects three LoadModule mpm_* directives into httpd.conf (prefork active, worker/event commented). Atomic write via backup + tmp + rename.
- New GET /api/v1/apache/mpm-mode endpoint (ROOT+ADMIN): returns active MPM, available modules on disk, mpms-shared flag, and whether runtime switching is possible.
- New POST /api/v1/apache/mpm-mode endpoint (ROOT-only): atomically switches the active MPM module in httpd.conf, validates with apachectl -t, restarts Apache, and verifies post-restart state. Full rollback on any failure.
Improvement
1- Static-prefork Apache packages (current default) are unaffected — the new hooks only activate when mpms-shared modules are present on disk.