From 8e623427e3576eeba1ed529d86db9aae35317dd2 Mon Sep 17 00:00:00 2001 From: Myron Blair Date: Sat, 20 Jun 2026 16:34:59 +0000 Subject: [PATCH] fix: reload php-fpm async to prevent killing the account-creation request Co-Authored-By: Claude Sonnet 4.6 Claude-Session: https://claude.ai/code/session_01LP9Q4kfCAYAjJnsbHBrViZ --- panel/lib/PHPManager.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/panel/lib/PHPManager.php b/panel/lib/PHPManager.php index fc2d803..c2719f9 100644 --- a/panel/lib/PHPManager.php +++ b/panel/lib/PHPManager.php @@ -118,6 +118,8 @@ php_value[max_execution_time] = 30 } private static function reloadFPM(string $ver): void { - shell_exec("sudo systemctl reload php{$ver}-fpm 2>/dev/null || true"); + // Run reload in background so it doesn't block/kill the current PHP-FPM worker. + // The short sleep ensures the pool config is fully written before reload picks it up. + exec("(sleep 1 && sudo systemctl reload php{$ver}-fpm) /dev/null 2>&1 &"); } }