Skip to content

Commit 23190c9

Browse files
WilhansenWilhansen Li
authored and
Wilhansen Li
committed
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 fda91a0 commit 23190c9

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
@@ -752,6 +752,8 @@ static int fpm_worker_pool_shared_status_alloc(struct fpm_worker_pool_s *shared_
752752
FPM_WPC_STR_CP(config, shared_config, user);
753753
FPM_WPC_STR_CP(config, shared_config, group);
754754
FPM_WPC_STR_CP(config, shared_config, pm_status_path);
755+
FPM_WPC_STR_CP(config, shared_config, ping_path);
756+
FPM_WPC_STR_CP(config, shared_config, ping_response);
755757

756758
config->pm = PM_STYLE_ONDEMAND;
757759
config->pm_max_children = 2;

0 commit comments

Comments
 (0)