Deployment Presets
Multi-Version PHP 7.4 / 8.2 / 8.3 Isolation Per Site
Run legacy PHP 7.4/8.1 client sites alongside modern PHP 8.3/8.4 apps on one CloudPanel server using isolated OPcache and socket permissions.
Per-Version FPM Masters · Isolated open_basedir · Zero Bleed
Managing Memory Across Multiple PHP Versions
Each active PHP minor version (for example 8.1, 8.2, and 8.3) starts its own php-fpm master process and separate OPcache shared memory segment. Consolidate as many sites onto PHP 8.3 as possible to minimize duplicate OPcache overhead.
Pinning WP-CLI and Cron Binaries
Always specify /usr/bin/php8.3 in crontab entries for modern Laravel or WooCommerce Action Scheduler jobs so system default PHP mismatches never stall background queues.
Measured Parameters & CloudPanel Stack Directives
| Parameter / Setting | Recommended Value | Operational Reason |
|---|---|---|
| OPcache Memory | 128 MB per active PHP version | Prevents compiled script eviction across PHP 8.2 and 8.3 masters |
| Socket Ownership | chmod 0660 per-site Linux user | Blocks cross-site local file inclusion via shared PHP sockets |
| JIT Configuration | opcache.jit = tracing (1255) | Boosts compute-heavy PHP 8.3 endpoints without memory bloat |
| PHP CLI Alias | update-alternatives / explicit /usr/bin/php8.3 | Ensures WP-CLI and Composer crons invoke the site target runtime |