Skip to content

Commit 210b346

Browse files
authored
Make /ping of php-fpm work again
The ping feature of php-fpm monitoring was previously not working due to the configuration variables ping.path and ping.response not being copied over to the worker when forked. This results in the ping code path being disabled because the worker detects that ping.path is not configured.
1 parent 46b6ad6 commit 210b346

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sapi/fpm/fpm/fpm_conf.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,8 @@ static int fpm_worker_pool_shared_status_alloc(struct fpm_worker_pool_s *shared_
763763
FPM_WPC_STR_CP(config, shared_config, user);
764764
FPM_WPC_STR_CP(config, shared_config, group);
765765
FPM_WPC_STR_CP(config, shared_config, pm_status_path);
766+
FPM_WPC_STR_CP(config, shared_config, ping_path);
767+
FPM_WPC_STR_CP(config, shared_config, ping_response);
766768

767769
fpm_conf_apply_kv_array_to_kv_array(shared_config->php_values, (char *)config + WPO(php_values));
768770
fpm_conf_apply_kv_array_to_kv_array(shared_config->php_admin_values, (char *)config + WPO(php_admin_values));

0 commit comments

Comments
 (0)