From 81c1717930cd8ff8e8759bfd23e39d02edd25222 Mon Sep 17 00:00:00 2001 From: cschantz Date: Wed, 3 Dec 2025 00:40:31 -0500 Subject: [PATCH] Integrate PHP Configuration Optimizer into main menu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit INTEGRATION: - Added PHP optimizer to Performance & Diagnostics menu (option 9) - Placed under "Web Server & PHP" section - Positioned after PHP-FPM Monitor for logical grouping - Updated handler to call php-optimizer.sh module MENU STRUCTURE: Main Menu → Performance & Diagnostics (4) → PHP Configuration Optimizer (9) Path: modules/performance/php-optimizer.sh FEATURES NOW ACCESSIBLE VIA MENU: ✓ Analyze All Domains ✓ Analyze Single Domain ✓ Show OPcache Statistics ✓ Optimize Domain (with apply workflow) ✓ View PHP Error Logs ✓ PHP Version Summary ✓ Find Configuration Files ✓ Backup Configurations ✓ Restore from Backup WORKFLOW (Option 4 - Optimize Domain): 1. Select domain 2. Review recommendations 3. Confirm apply (y/n) 4. Auto-backup created 5. Changes applied 6. Confirm restart (y/n) 7. PHP-FPM gracefully reloaded 8. Verification & rollback info --- launcher.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/launcher.sh b/launcher.sh index 58d403d..9c653e9 100755 --- a/launcher.sh +++ b/launcher.sh @@ -536,11 +536,12 @@ show_performance_menu() { echo -e "${BOLD}Web Server & PHP:${NC}" echo -e " ${MAGENTA}7)${NC} Apache Performance - Apache tuning recommendations" echo -e " ${MAGENTA}8)${NC} PHP-FPM Monitor - PHP-FPM pool status" + echo -e " ${MAGENTA}9)${NC} PHP Configuration Optimizer - Analyze & optimize PHP settings per domain" echo "" echo -e "${BOLD}Logs & Diagnostics:${NC}" - echo -e " ${MAGENTA}9)${NC} Log Analyzer - Parse and analyze system logs" - echo -e " ${MAGENTA}10)${NC} Loadwatch Health Analyzer - System health from monitoring logs" - echo -e " ${MAGENTA}11)${NC} Email Queue Monitor - Mail queue analysis" + echo -e " ${MAGENTA}10)${NC} Log Analyzer - Parse and analyze system logs" + echo -e " ${MAGENTA}11)${NC} Loadwatch Health Analyzer - System health from monitoring logs" + echo -e " ${MAGENTA}12)${NC} Email Queue Monitor - Mail queue analysis" echo "" echo -e " ${RED}0)${NC} Back to Main Menu" echo "" @@ -1396,9 +1397,10 @@ handle_performance_menu() { 6) run_module "performance" "resource-monitor.sh" ;; 7) run_module "performance" "apache-performance.sh" ;; 8) run_module "performance" "php-fpm-monitor.sh" ;; - 9) run_module "performance" "log-analyzer.sh" ;; - 10) handle_loadwatch_analyzer ;; - 11) run_module "performance" "email-queue-monitor.sh" ;; + 9) run_module "performance" "php-optimizer.sh" ;; + 10) run_module "performance" "log-analyzer.sh" ;; + 11) handle_loadwatch_analyzer ;; + 12) run_module "performance" "email-queue-monitor.sh" ;; 0) return ;; *) echo -e "${RED}Invalid option${NC}"; sleep 1 ;; esac