Lines Matching refs:config

49 static char *fpm_conf_set_integer(zval *value, void **config, intptr_t offset);
51 static char *fpm_conf_set_long(zval *value, void **config, intptr_t offset);
53 static char *fpm_conf_set_time(zval *value, void **config, intptr_t offset);
54 static char *fpm_conf_set_boolean(zval *value, void **config, intptr_t offset);
55 static char *fpm_conf_set_string(zval *value, void **config, intptr_t offset);
56 static char *fpm_conf_set_log_level(zval *value, void **config, intptr_t offset);
57 static char *fpm_conf_set_rlimit_core(zval *value, void **config, intptr_t offset);
58 static char *fpm_conf_set_pm(zval *value, void **config, intptr_t offset);
60 static char *fpm_conf_set_syslog_facility(zval *value, void **config, intptr_t offset);
189 if (!current_wp || !current_wp->config || !current_wp->config->name) { in fpm_conf_expand_pool_name()
197 spprintf(&buf, 0, "%s%s%s", *value, current_wp->config->name, p2); in fpm_conf_expand_pool_name()
208 static char *fpm_conf_set_boolean(zval *value, void **config, intptr_t offset) /* {{{ */ in fpm_conf_set_boolean() argument
218 * (int *) ((char *) *config + offset) = value_y ? 1 : 0; in fpm_conf_set_boolean()
223 static char *fpm_conf_set_string(zval *value, void **config, intptr_t offset) /* {{{ */ in fpm_conf_set_string() argument
225 char **config_val = (char **) ((char *) *config + offset); in fpm_conf_set_string()
248 static char *fpm_conf_set_integer(zval *value, void **config, intptr_t offset) /* {{{ */ in fpm_conf_set_integer() argument
260 * (int *) ((char *) *config + offset) = atoi(val); in fpm_conf_set_integer()
266 static char *fpm_conf_set_long(zval *value, void **config, intptr_t offset) /* {{{ */
277 * (long int *) ((char *) *config + offset) = atol(val);
283 static char *fpm_conf_set_time(zval *value, void **config, intptr_t offset) /* {{{ */ in fpm_conf_set_time() argument
318 * (int *) ((char *) *config + offset) = seconds; in fpm_conf_set_time()
323 static char *fpm_conf_set_log_level(zval *value, void **config, intptr_t offset) /* {{{ */ in fpm_conf_set_log_level() argument
342 * (int *) ((char *) *config + offset) = log_level; in fpm_conf_set_log_level()
348 static char *fpm_conf_set_syslog_facility(zval *value, void **config, intptr_t offset) /* {{{ */ in fpm_conf_set_syslog_facility() argument
351 int *conf = (int *) ((char *) *config + offset); in fpm_conf_set_syslog_facility()
498 static char *fpm_conf_set_rlimit_core(zval *value, void **config, intptr_t offset) /* {{{ */ in fpm_conf_set_rlimit_core() argument
501 int *ptr = (int *) ((char *) *config + offset); in fpm_conf_set_rlimit_core()
527 static char *fpm_conf_set_pm(zval *value, void **config, intptr_t offset) /* {{{ */ in fpm_conf_set_pm() argument
530 struct fpm_worker_pool_config_s *c = *config; in fpm_conf_set_pm()
544 static char *fpm_conf_set_array(zval *key, zval *value, void **config, int convert_to_bool) /* {{{ … in fpm_conf_set_array() argument
547 struct key_value_s ***parent = (struct key_value_s ***) config; in fpm_conf_set_array()
604 wp->config = malloc(sizeof(struct fpm_worker_pool_config_s)); in fpm_worker_pool_config_alloc()
606 if (!wp->config) { in fpm_worker_pool_config_alloc()
611 memset(wp->config, 0, sizeof(struct fpm_worker_pool_config_s)); in fpm_worker_pool_config_alloc()
612 wp->config->listen_backlog = FPM_BACKLOG_DEFAULT; in fpm_worker_pool_config_alloc()
613 wp->config->pm_process_idle_timeout = 10; /* 10s by default */ in fpm_worker_pool_config_alloc()
614 wp->config->process_priority = 64; /* 64 means unset */ in fpm_worker_pool_config_alloc()
615 wp->config->process_dumpable = 0; in fpm_worker_pool_config_alloc()
616 wp->config->clear_env = 1; in fpm_worker_pool_config_alloc()
617 wp->config->decorate_workers_output = 1; in fpm_worker_pool_config_alloc()
633 return wp->config; in fpm_worker_pool_config_alloc()
694 struct fpm_worker_pool_config_s *config, *shared_config; in fpm_worker_pool_shared_status_alloc() local
695 config = fpm_worker_pool_config_alloc(); in fpm_worker_pool_shared_status_alloc()
696 if (!config) { in fpm_worker_pool_shared_status_alloc()
699 shared_config = shared_wp->config; in fpm_worker_pool_shared_status_alloc()
701 config->name = malloc(strlen(shared_config->name) + sizeof("_status")); in fpm_worker_pool_shared_status_alloc()
702 if (!config->name) { in fpm_worker_pool_shared_status_alloc()
705 strcpy(config->name, shared_config->name); in fpm_worker_pool_shared_status_alloc()
706 strcpy(config->name + strlen(shared_config->name), "_status"); in fpm_worker_pool_shared_status_alloc()
712 FPM_WPC_STR_CP_EX(config, shared_config, listen_address, pm_status_listen); in fpm_worker_pool_shared_status_alloc()
714 FPM_WPC_STR_CP(config, shared_config, listen_acl_groups); in fpm_worker_pool_shared_status_alloc()
715 FPM_WPC_STR_CP(config, shared_config, listen_acl_users); in fpm_worker_pool_shared_status_alloc()
717 FPM_WPC_STR_CP(config, shared_config, listen_allowed_clients); in fpm_worker_pool_shared_status_alloc()
718 FPM_WPC_STR_CP(config, shared_config, listen_group); in fpm_worker_pool_shared_status_alloc()
719 FPM_WPC_STR_CP(config, shared_config, listen_owner); in fpm_worker_pool_shared_status_alloc()
720 FPM_WPC_STR_CP(config, shared_config, listen_mode); in fpm_worker_pool_shared_status_alloc()
721 FPM_WPC_STR_CP(config, shared_config, user); in fpm_worker_pool_shared_status_alloc()
722 FPM_WPC_STR_CP(config, shared_config, group); in fpm_worker_pool_shared_status_alloc()
723 FPM_WPC_STR_CP(config, shared_config, pm_status_path); in fpm_worker_pool_shared_status_alloc()
725 config->pm = PM_STYLE_ONDEMAND; in fpm_worker_pool_shared_status_alloc()
726 config->pm_max_children = 2; in fpm_worker_pool_shared_status_alloc()
743 if (wp && wp->config) { in fpm_evaluate_full_path()
744 prefix = wp->config->prefix; in fpm_evaluate_full_path()
787 if (**path != '/' && wp != NULL && wp->config) { in fpm_evaluate_full_path()
806 if (wp->config->prefix && *wp->config->prefix) { in fpm_conf_process_all_pools()
807 fpm_evaluate_full_path(&wp->config->prefix, NULL, NULL, 0); in fpm_conf_process_all_pools()
809 if (!fpm_conf_is_dir(wp->config->prefix)) { in fpm_conf_process_all_pools()
810 …l %s] the prefix '%s' does not exist or is not a directory", wp->config->name, wp->config->prefix); in fpm_conf_process_all_pools()
816 if (!wp->config->user && !geteuid() && !fpm_globals.run_as_root) { in fpm_conf_process_all_pools()
817 zlog(ZLOG_ALERT, "[pool %s] user has not been defined", wp->config->name); in fpm_conf_process_all_pools()
822 if (wp->config->listen_address && *wp->config->listen_address) { in fpm_conf_process_all_pools()
823 wp->listen_address_domain = fpm_sockets_domain_from_address(wp->config->listen_address); in fpm_conf_process_all_pools()
825 if (wp->listen_address_domain == FPM_AF_UNIX && *wp->config->listen_address != '/') { in fpm_conf_process_all_pools()
826 fpm_evaluate_full_path(&wp->config->listen_address, wp, NULL, 0); in fpm_conf_process_all_pools()
829 zlog(ZLOG_ALERT, "[pool %s] no listen address have been defined!", wp->config->name); in fpm_conf_process_all_pools()
833 …if (wp->config->process_priority != 64 && (wp->config->process_priority < -19 || wp->config->proce… in fpm_conf_process_all_pools()
834 zlog(ZLOG_ERROR, "[pool %s] process.priority must be included into [-19,20]", wp->config->name); in fpm_conf_process_all_pools()
839 …if (wp->config->pm != PM_STYLE_STATIC && wp->config->pm != PM_STYLE_DYNAMIC && wp->config->pm != P… in fpm_conf_process_all_pools()
840 …ALERT, "[pool %s] the process manager is missing (static, dynamic or ondemand)", wp->config->name); in fpm_conf_process_all_pools()
845 if (wp->config->pm_max_children < 1) { in fpm_conf_process_all_pools()
846 zlog(ZLOG_ALERT, "[pool %s] pm.max_children must be a positive value", wp->config->name); in fpm_conf_process_all_pools()
851 if (wp->config->pm == PM_STYLE_DYNAMIC) { in fpm_conf_process_all_pools()
852 struct fpm_worker_pool_config_s *config = wp->config; in fpm_conf_process_all_pools() local
854 if (config->pm_min_spare_servers <= 0) { in fpm_conf_process_all_pools()
855 …[pool %s] pm.min_spare_servers(%d) must be a positive value", wp->config->name, config->pm_min_spa… in fpm_conf_process_all_pools()
859 if (config->pm_max_spare_servers <= 0) { in fpm_conf_process_all_pools()
860 …[pool %s] pm.max_spare_servers(%d) must be a positive value", wp->config->name, config->pm_max_spa… in fpm_conf_process_all_pools()
864 if (config->pm_min_spare_servers > config->pm_max_children || in fpm_conf_process_all_pools()
865 config->pm_max_spare_servers > config->pm_max_children) { in fpm_conf_process_all_pools()
866 …ater than pm.max_children(%d)", wp->config->name, config->pm_min_spare_servers, config->pm_max_spa… in fpm_conf_process_all_pools()
870 if (config->pm_max_spare_servers < config->pm_min_spare_servers) { in fpm_conf_process_all_pools()
871 …st not be less than pm.min_spare_servers(%d)", wp->config->name, config->pm_max_spare_servers, con… in fpm_conf_process_all_pools()
875 if (config->pm_start_servers <= 0) { in fpm_conf_process_all_pools()
876config->pm_start_servers = config->pm_min_spare_servers + ((config->pm_max_spare_servers - config-… in fpm_conf_process_all_pools()
877 …[pool %s] pm.start_servers is not set. It's been set to %d.", wp->config->name, config->pm_start_s… in fpm_conf_process_all_pools()
879 …} else if (config->pm_start_servers < config->pm_min_spare_servers || config->pm_start_servers > c… in fpm_conf_process_all_pools()
880 …r than pm.max_spare_servers(%d)", wp->config->name, config->pm_start_servers, config->pm_min_spare… in fpm_conf_process_all_pools()
883 } else if (wp->config->pm == PM_STYLE_ONDEMAND) { in fpm_conf_process_all_pools()
884 struct fpm_worker_pool_config_s *config = wp->config; in fpm_conf_process_all_pools() local
887 … ONLY be used when events.mechanisme is either epoll (Linux) or kqueue (*BSD).", wp->config->name); in fpm_conf_process_all_pools()
891 if (config->pm_process_idle_timeout < 1) { in fpm_conf_process_all_pools()
892 …ol %s] pm.process_idle_timeout(%ds) must be greater than 0s", wp->config->name, config->pm_process… in fpm_conf_process_all_pools()
896 if (config->listen_backlog < FPM_BACKLOG_DEFAULT) { in fpm_conf_process_all_pools()
897 …r the ondemand process manager. I updated it for you to %d.", wp->config->name, config->listen_bac… in fpm_conf_process_all_pools()
898 config->listen_backlog = FPM_BACKLOG_DEFAULT; in fpm_conf_process_all_pools()
902 config->pm_start_servers = 0; in fpm_conf_process_all_pools()
903 config->pm_min_spare_servers = 0; in fpm_conf_process_all_pools()
904 config->pm_max_spare_servers = 0; in fpm_conf_process_all_pools()
908 if (wp->config->pm_status_listen && fpm_worker_pool_shared_status_alloc(wp)) { in fpm_conf_process_all_pools()
909 zlog(ZLOG_ERROR, "[pool %s] failed to initialize a status listener pool", wp->config->name); in fpm_conf_process_all_pools()
912 if (wp->config->pm_status_path && *wp->config->pm_status_path) { in fpm_conf_process_all_pools()
914 char *status = wp->config->pm_status_path; in fpm_conf_process_all_pools()
917 …zlog(ZLOG_ERROR, "[pool %s] the status path '%s' must start with a '/'", wp->config->name, status); in fpm_conf_process_all_pools()
921 if (!wp->config->pm_status_listen && !wp->shared && strlen(status) < 2) { in fpm_conf_process_all_pools()
922 zlog(ZLOG_ERROR, "[pool %s] the status path '%s' is not long enough", wp->config->name, status); in fpm_conf_process_all_pools()
928 …path '%s' must contain only the following characters '[alphanum]/_-.~'", wp->config->name, status); in fpm_conf_process_all_pools()
935 if (wp->config->ping_path && *wp->config->ping_path) { in fpm_conf_process_all_pools()
936 char *ping = wp->config->ping_path; in fpm_conf_process_all_pools()
940 zlog(ZLOG_ERROR, "[pool %s] the ping path '%s' must start with a '/'", wp->config->name, ping); in fpm_conf_process_all_pools()
945 zlog(ZLOG_ERROR, "[pool %s] the ping path '%s' is not long enough", wp->config->name, ping); in fpm_conf_process_all_pools()
951 …g path '%s' must contain only the following characters '[alphanum]/_-.~'", wp->config->name, ping); in fpm_conf_process_all_pools()
956 if (!wp->config->ping_response) { in fpm_conf_process_all_pools()
957 wp->config->ping_response = strdup("pong"); in fpm_conf_process_all_pools()
959 if (strlen(wp->config->ping_response) < 1) { in fpm_conf_process_all_pools()
960 …"[pool %s] the ping response page '%s' is not long enough", wp->config->name, wp->config->ping_res… in fpm_conf_process_all_pools()
965 if (wp->config->ping_response) { in fpm_conf_process_all_pools()
966 free(wp->config->ping_response); in fpm_conf_process_all_pools()
967 wp->config->ping_response = NULL; in fpm_conf_process_all_pools()
972 if (wp->config->access_log && *wp->config->access_log) { in fpm_conf_process_all_pools()
973 fpm_evaluate_full_path(&wp->config->access_log, wp, NULL, 0); in fpm_conf_process_all_pools()
974 if (!wp->config->access_format) { in fpm_conf_process_all_pools()
975 wp->config->access_format = strdup("%R - %u %t \"%m %r\" %s"); in fpm_conf_process_all_pools()
979 if (wp->config->request_terminate_timeout) { in fpm_conf_process_all_pools()
980 …s.heartbeat ? MIN(fpm_globals.heartbeat, (wp->config->request_terminate_timeout * 1000) / 3) : (wp… in fpm_conf_process_all_pools()
984 if (wp->config->slowlog && *wp->config->slowlog) { in fpm_conf_process_all_pools()
985 fpm_evaluate_full_path(&wp->config->slowlog, wp, NULL, 0); in fpm_conf_process_all_pools()
989 if (wp->config->request_slowlog_timeout) { in fpm_conf_process_all_pools()
991 if (! (wp->config->slowlog && *wp->config->slowlog)) { in fpm_conf_process_all_pools()
992 … "[pool %s] 'slowlog' must be specified for use with 'request_slowlog_timeout'", wp->config->name); in fpm_conf_process_all_pools()
999 …_WARNING, "[pool %s] 'request_slowlog_timeout' is not supported on your system", wp->config->name); in fpm_conf_process_all_pools()
1003 wp->config->request_slowlog_timeout = 0; in fpm_conf_process_all_pools()
1006 if (wp->config->slowlog && *wp->config->slowlog) { in fpm_conf_process_all_pools()
1009 fd = open(wp->config->slowlog, O_WRONLY | O_APPEND | O_CREAT, S_IRUSR | S_IWUSR); in fpm_conf_process_all_pools()
1012 zlog(ZLOG_SYSERROR, "Unable to create or open slowlog(%s)", wp->config->slowlog); in fpm_conf_process_all_pools()
1018 …ls.heartbeat ? MIN(fpm_globals.heartbeat, (wp->config->request_slowlog_timeout * 1000) / 3) : (wp-… in fpm_conf_process_all_pools()
1020 …if (wp->config->request_terminate_timeout && wp->config->request_slowlog_timeout > wp->config->req… in fpm_conf_process_all_pools()
1021 …r than 'request_terminate_timeout' (%d)", wp->config->name, wp->config->request_slowlog_timeout, w… in fpm_conf_process_all_pools()
1027 if (wp->config->request_slowlog_trace_depth) { in fpm_conf_process_all_pools()
1029 if (! (wp->config->slowlog && *wp->config->slowlog)) { in fpm_conf_process_all_pools()
1030 …ool %s] 'slowlog' must be specified for use with 'request_slowlog_trace_depth'", wp->config->name); in fpm_conf_process_all_pools()
1037 …NING, "[pool %s] 'request_slowlog_trace_depth' is not supported on your system", wp->config->name); in fpm_conf_process_all_pools()
1042 if (wp->config->request_slowlog_trace_depth <= 0) { in fpm_conf_process_all_pools()
1043 …equest_slowlog_trace_depth' (%d) must be a positive value", wp->config->name, wp->config->request_… in fpm_conf_process_all_pools()
1047 wp->config->request_slowlog_trace_depth = 20; in fpm_conf_process_all_pools()
1051 if (wp->config->chroot && *wp->config->chroot) { in fpm_conf_process_all_pools()
1053 fpm_evaluate_full_path(&wp->config->chroot, wp, NULL, 1); in fpm_conf_process_all_pools()
1055 if (*wp->config->chroot != '/') { in fpm_conf_process_all_pools()
1056 …ROR, "[pool %s] the chroot path '%s' must start with a '/'", wp->config->name, wp->config->chroot); in fpm_conf_process_all_pools()
1060 if (!fpm_conf_is_dir(wp->config->chroot)) { in fpm_conf_process_all_pools()
1061 … the chroot path '%s' does not exist or is not a directory", wp->config->name, wp->config->chroot); in fpm_conf_process_all_pools()
1067 if (wp->config->chdir && *wp->config->chdir) { in fpm_conf_process_all_pools()
1069 fpm_evaluate_full_path(&wp->config->chdir, wp, NULL, 0); in fpm_conf_process_all_pools()
1071 if (*wp->config->chdir != '/') { in fpm_conf_process_all_pools()
1072 …ERROR, "[pool %s] the chdir path '%s' must start with a '/'", wp->config->name, wp->config->chdir); in fpm_conf_process_all_pools()
1076 if (wp->config->chroot) { in fpm_conf_process_all_pools()
1079 spprintf(&buf, 0, "%s/%s", wp->config->chroot, wp->config->chdir); in fpm_conf_process_all_pools()
1082 …'%s' ('%s') does not exist or is not a directory", wp->config->name, wp->config->chdir, wp->config in fpm_conf_process_all_pools()
1089 if (!fpm_conf_is_dir(wp->config->chdir)) { in fpm_conf_process_all_pools()
1090 …s] the chdir path '%s' does not exist or is not a directory", wp->config->name, wp->config->chdir); in fpm_conf_process_all_pools()
1097 if (!wp->config->security_limit_extensions) { in fpm_conf_process_all_pools()
1098 wp->config->security_limit_extensions = strdup(".php .phar"); in fpm_conf_process_all_pools()
1101 if (*wp->config->security_limit_extensions) { in fpm_conf_process_all_pools()
1109 security_limit_extensions = strdup(wp->config->security_limit_extensions); in fpm_conf_process_all_pools()
1126 zlog(ZLOG_ERROR, "[pool %s] unable to malloc extensions array", wp->config->name); in fpm_conf_process_all_pools()
1131 security_limit_extensions = strdup(wp->config->security_limit_extensions); in fpm_conf_process_all_pools()
1148 if (!wp->config->chroot) { in fpm_conf_process_all_pools()
1153 for (kv = wp->config->php_values; kv; kv = kv->next) { in fpm_conf_process_all_pools()
1160 for (kv = wp->config->php_admin_values; kv; kv = kv->next) { in fpm_conf_process_all_pools()
1180config->listen_address && *wp->config->listen_address && wp2->config->listen_address && *wp2->conf… in fpm_conf_process_all_pools()
1181 …et listen address as it's already used in another pool '%s'", wp2->config->name, wp->config->name); in fpm_conf_process_all_pools()
1306 if (!wp->config->access_log || !*wp->config->access_log) { in fpm_conf_post_process()
1309 if (0 > fpm_log_write(wp->config->access_format)) { in fpm_conf_post_process()
1310 …zlog(ZLOG_ERROR, "[pool %s] wrong format for access.format '%s'", wp->config->name, wp->config->ac… in fpm_conf_post_process()
1331 free(fpm_globals.config); in fpm_conf_cleanup()
1394 struct fpm_worker_pool_config_s *config; in fpm_conf_ini_parser_section() local
1404 if (!wp->config) continue; in fpm_conf_ini_parser_section()
1405 if (!wp->config->name) continue; in fpm_conf_ini_parser_section()
1406 if (!strcasecmp(wp->config->name, Z_STRVAL_P(section))) { in fpm_conf_ini_parser_section()
1414 config = (struct fpm_worker_pool_config_s *)fpm_worker_pool_config_alloc(); in fpm_conf_ini_parser_section()
1415 if (!current_wp || !config) { in fpm_conf_ini_parser_section()
1420 config->name = strdup(Z_STRVAL_P(section)); in fpm_conf_ini_parser_section()
1421 if (!config->name) { in fpm_conf_ini_parser_section()
1432 void *config = NULL; in fpm_conf_ini_parser_entry() local
1453 config = &fpm_global_config; in fpm_conf_ini_parser_entry()
1456 config = current_wp->config; in fpm_conf_ini_parser_entry()
1468 ret = parser->parser(value, &config, parser->offset); in fpm_conf_ini_parser_entry()
1490 void *config; in fpm_conf_ini_parser_array() local
1497 if (!current_wp || !current_wp->config) { in fpm_conf_ini_parser_array()
1509 config = (char *)current_wp->config + WPO(env); in fpm_conf_ini_parser_array()
1510 err = fpm_conf_set_array(key, value, &config, 0); in fpm_conf_ini_parser_array()
1513 config = (char *)current_wp->config + WPO(php_values); in fpm_conf_ini_parser_array()
1514 err = fpm_conf_set_array(key, value, &config, 0); in fpm_conf_ini_parser_array()
1517 config = (char *)current_wp->config + WPO(php_admin_values); in fpm_conf_ini_parser_array()
1518 err = fpm_conf_set_array(key, value, &config, 0); in fpm_conf_ini_parser_array()
1521 config = (char *)current_wp->config + WPO(php_values); in fpm_conf_ini_parser_array()
1522 err = fpm_conf_set_array(key, value, &config, 1); in fpm_conf_ini_parser_array()
1525 config = (char *)current_wp->config + WPO(php_admin_values); in fpm_conf_ini_parser_array()
1526 err = fpm_conf_set_array(key, value, &config, 1); in fpm_conf_ini_parser_array()
1695 if (!wp->config || wp->shared) { in fpm_conf_dump()
1699 zlog(ZLOG_NOTICE, "[%s]", STR2STR(wp->config->name)); in fpm_conf_dump()
1700 zlog(ZLOG_NOTICE, "\tprefix = %s", STR2STR(wp->config->prefix)); in fpm_conf_dump()
1701 zlog(ZLOG_NOTICE, "\tuser = %s", STR2STR(wp->config->user)); in fpm_conf_dump()
1702 zlog(ZLOG_NOTICE, "\tgroup = %s", STR2STR(wp->config->group)); in fpm_conf_dump()
1703 zlog(ZLOG_NOTICE, "\tlisten = %s", STR2STR(wp->config->listen_address)); in fpm_conf_dump()
1704 zlog(ZLOG_NOTICE, "\tlisten.backlog = %d", wp->config->listen_backlog); in fpm_conf_dump()
1706 zlog(ZLOG_NOTICE, "\tlisten.acl_users = %s", STR2STR(wp->config->listen_acl_users)); in fpm_conf_dump()
1707 zlog(ZLOG_NOTICE, "\tlisten.acl_groups = %s", STR2STR(wp->config->listen_acl_groups)); in fpm_conf_dump()
1709 zlog(ZLOG_NOTICE, "\tlisten.owner = %s", STR2STR(wp->config->listen_owner)); in fpm_conf_dump()
1710 zlog(ZLOG_NOTICE, "\tlisten.group = %s", STR2STR(wp->config->listen_group)); in fpm_conf_dump()
1711 zlog(ZLOG_NOTICE, "\tlisten.mode = %s", STR2STR(wp->config->listen_mode)); in fpm_conf_dump()
1712 …zlog(ZLOG_NOTICE, "\tlisten.allowed_clients = %s", STR2STR(wp->config->listen_allowed_clients)… in fpm_conf_dump()
1713 if (wp->config->process_priority == 64) { in fpm_conf_dump()
1716 zlog(ZLOG_NOTICE, "\tprocess.priority = %d", wp->config->process_priority); in fpm_conf_dump()
1718 zlog(ZLOG_NOTICE, "\tprocess.dumpable = %s", BOOL2STR(wp->config->process_dumpable)); in fpm_conf_dump()
1719 zlog(ZLOG_NOTICE, "\tpm = %s", PM2STR(wp->config->pm)); in fpm_conf_dump()
1720 zlog(ZLOG_NOTICE, "\tpm.max_children = %d", wp->config->pm_max_children); in fpm_conf_dump()
1721 zlog(ZLOG_NOTICE, "\tpm.start_servers = %d", wp->config->pm_start_servers); in fpm_conf_dump()
1722 zlog(ZLOG_NOTICE, "\tpm.min_spare_servers = %d", wp->config->pm_min_spare_servers); in fpm_conf_dump()
1723 zlog(ZLOG_NOTICE, "\tpm.max_spare_servers = %d", wp->config->pm_max_spare_servers); in fpm_conf_dump()
1724 zlog(ZLOG_NOTICE, "\tpm.process_idle_timeout = %d", wp->config->pm_process_idle_timeout); in fpm_conf_dump()
1725 zlog(ZLOG_NOTICE, "\tpm.max_requests = %d", wp->config->pm_max_requests); in fpm_conf_dump()
1726 zlog(ZLOG_NOTICE, "\tpm.status_path = %s", STR2STR(wp->config->pm_status_path)); in fpm_conf_dump()
1727 zlog(ZLOG_NOTICE, "\tpm.status_listen = %s", STR2STR(wp->config->pm_status_listen)); in fpm_conf_dump()
1728 zlog(ZLOG_NOTICE, "\tping.path = %s", STR2STR(wp->config->ping_path)); in fpm_conf_dump()
1729 zlog(ZLOG_NOTICE, "\tping.response = %s", STR2STR(wp->config->ping_response)); in fpm_conf_dump()
1730 zlog(ZLOG_NOTICE, "\taccess.log = %s", STR2STR(wp->config->access_log)); in fpm_conf_dump()
1731 zlog(ZLOG_NOTICE, "\taccess.format = %s", STR2STR(wp->config->access_format)); in fpm_conf_dump()
1732 zlog(ZLOG_NOTICE, "\tslowlog = %s", STR2STR(wp->config->slowlog)); in fpm_conf_dump()
1733 zlog(ZLOG_NOTICE, "\trequest_slowlog_timeout = %ds", wp->config->request_slowlog_timeout); in fpm_conf_dump()
1734 zlog(ZLOG_NOTICE, "\trequest_slowlog_trace_depth = %d", wp->config->request_slowlog_trace_depth); in fpm_conf_dump()
1735 zlog(ZLOG_NOTICE, "\trequest_terminate_timeout = %ds", wp->config->request_terminate_timeout); in fpm_conf_dump()
1736 …zlog(ZLOG_NOTICE, "\trequest_terminate_timeout_track_finished = %s", BOOL2STR(wp->config->request_… in fpm_conf_dump()
1737 zlog(ZLOG_NOTICE, "\trlimit_files = %d", wp->config->rlimit_files); in fpm_conf_dump()
1738 zlog(ZLOG_NOTICE, "\trlimit_core = %d", wp->config->rlimit_core); in fpm_conf_dump()
1739 zlog(ZLOG_NOTICE, "\tchroot = %s", STR2STR(wp->config->chroot)); in fpm_conf_dump()
1740 zlog(ZLOG_NOTICE, "\tchdir = %s", STR2STR(wp->config->chdir)); in fpm_conf_dump()
1741 …zlog(ZLOG_NOTICE, "\tcatch_workers_output = %s", BOOL2STR(wp->config->catch_workers_output)); in fpm_conf_dump()
1742 …zlog(ZLOG_NOTICE, "\tdecorate_workers_output = %s", BOOL2STR(wp->config->decorate_workers_outpu… in fpm_conf_dump()
1743 zlog(ZLOG_NOTICE, "\tclear_env = %s", BOOL2STR(wp->config->clear_env)); in fpm_conf_dump()
1744 zlog(ZLOG_NOTICE, "\tsecurity.limit_extensions = %s", wp->config->security_limit_extensions); in fpm_conf_dump()
1746 for (kv = wp->config->env; kv; kv = kv->next) { in fpm_conf_dump()
1750 for (kv = wp->config->php_values; kv; kv = kv->next) { in fpm_conf_dump()
1754 for (kv = wp->config->php_admin_values; kv; kv = kv->next) { in fpm_conf_dump()
1776 if (fpm_globals.config == NULL) { in fpm_conf_init_main()
1790 fpm_globals.config = strdup(tmp); in fpm_conf_init_main()
1793 if (!fpm_globals.config) { in fpm_conf_init_main()
1799 ret = fpm_conf_load_ini_file(fpm_globals.config); in fpm_conf_init_main()
1802 zlog(ZLOG_ERROR, "failed to load configuration file '%s'", fpm_globals.config); in fpm_conf_init_main()
1815 zlog(ZLOG_NOTICE, "configuration file %s test is successful\n", fpm_globals.config); in fpm_conf_init_main()