config 812 ext/openssl/openssl.c static inline int php_openssl_config_check_syntax(const char * section_label, const char * config_filename, const char * section, LHASH_OF(CONF_VALUE) * config) /* {{{ */ config 814 ext/openssl/openssl.c static inline int php_openssl_config_check_syntax(const char * section_label, const char * config_filename, const char * section, LHASH * config) config 820 ext/openssl/openssl.c X509V3_set_conf_lhash(&ctx, config); config 821 ext/openssl/openssl.c if (!X509V3_EXT_add_conf(config, &ctx, (char *)section, NULL)) { config 94 ext/pspell/pspell.c ZEND_ARG_INFO(0, config) config 225 ext/pspell/pspell.c PspellConfig *config = (PspellConfig *)rsrc->ptr; config 227 ext/pspell/pspell.c delete_pspell_config(config); config 236 ext/pspell/pspell.c config = (PspellConfig *)Z_RES_P(res)->ptr; \ config 282 ext/pspell/pspell.c PspellConfig *config; config 289 ext/pspell/pspell.c config = new_pspell_config(); config 306 ext/pspell/pspell.c pspell_config_replace(config, "data-dir", data_dir); config 307 ext/pspell/pspell.c pspell_config_replace(config, "dict-dir", dict_dir); config 312 ext/pspell/pspell.c pspell_config_replace(config, "language-tag", language); config 315 ext/pspell/pspell.c pspell_config_replace(config, "spelling", spelling); config 319 ext/pspell/pspell.c pspell_config_replace(config, "jargon", jargon); config 323 ext/pspell/pspell.c pspell_config_replace(config, "encoding", encoding); config 331 ext/pspell/pspell.c pspell_config_replace(config, "sug-mode", "fast"); config 333 ext/pspell/pspell.c pspell_config_replace(config, "sug-mode", "normal"); config 335 ext/pspell/pspell.c pspell_config_replace(config, "sug-mode", "bad-spellers"); config 340 ext/pspell/pspell.c pspell_config_replace(config, "run-together", "true"); config 344 ext/pspell/pspell.c ret = new_pspell_manager(config); config 345 ext/pspell/pspell.c delete_pspell_config(config); config 379 ext/pspell/pspell.c PspellConfig *config; config 386 ext/pspell/pspell.c config = new_pspell_config(); config 403 ext/pspell/pspell.c pspell_config_replace(config, "data-dir", data_dir); config 404 ext/pspell/pspell.c pspell_config_replace(config, "dict-dir", dict_dir); config 410 ext/pspell/pspell.c delete_pspell_config(config); config 414 ext/pspell/pspell.c pspell_config_replace(config, "personal", personal); config 415 ext/pspell/pspell.c pspell_config_replace(config, "save-repl", "false"); config 417 ext/pspell/pspell.c pspell_config_replace(config, "language-tag", language); config 420 ext/pspell/pspell.c pspell_config_replace(config, "spelling", spelling); config 424 ext/pspell/pspell.c pspell_config_replace(config, "jargon", jargon); config 428 ext/pspell/pspell.c pspell_config_replace(config, "encoding", encoding); config 436 ext/pspell/pspell.c pspell_config_replace(config, "sug-mode", "fast"); config 438 ext/pspell/pspell.c pspell_config_replace(config, "sug-mode", "normal"); config 440 ext/pspell/pspell.c pspell_config_replace(config, "sug-mode", "bad-spellers"); config 445 ext/pspell/pspell.c pspell_config_replace(config, "run-together", "true"); config 449 ext/pspell/pspell.c ret = new_pspell_manager(config); config 450 ext/pspell/pspell.c delete_pspell_config(config); config 472 ext/pspell/pspell.c PspellConfig *config; config 480 ext/pspell/pspell.c ret = new_pspell_manager(config); config 690 ext/pspell/pspell.c PspellConfig *config; config 705 ext/pspell/pspell.c config = new_pspell_config(); config 722 ext/pspell/pspell.c pspell_config_replace(config, "data-dir", data_dir); config 723 ext/pspell/pspell.c pspell_config_replace(config, "dict-dir", dict_dir); config 728 ext/pspell/pspell.c pspell_config_replace(config, "language-tag", language); config 731 ext/pspell/pspell.c pspell_config_replace(config, "spelling", spelling); config 735 ext/pspell/pspell.c pspell_config_replace(config, "jargon", jargon); config 739 ext/pspell/pspell.c pspell_config_replace(config, "encoding", encoding); config 744 ext/pspell/pspell.c pspell_config_replace(config, "save-repl", "false"); config 746 ext/pspell/pspell.c ind = zend_list_insert(config, le_pspell_config); config 757 ext/pspell/pspell.c PspellConfig *config; config 765 ext/pspell/pspell.c pspell_config_replace(config, "run-together", runtogether ? "true" : "false"); config 776 ext/pspell/pspell.c PspellConfig *config; config 786 ext/pspell/pspell.c pspell_config_replace(config, "sug-mode", "fast"); config 788 ext/pspell/pspell.c pspell_config_replace(config, "sug-mode", "normal"); config 790 ext/pspell/pspell.c pspell_config_replace(config, "sug-mode", "bad-spellers"); config 803 ext/pspell/pspell.c PspellConfig *config; config 813 ext/pspell/pspell.c pspell_config_replace(config, "ignore", ignore_str); config 823 ext/pspell/pspell.c PspellConfig *config; config 835 ext/pspell/pspell.c pspell_config_replace(config, option, value); config 871 ext/pspell/pspell.c PspellConfig *config; config 879 ext/pspell/pspell.c pspell_config_replace(config, "save-repl", "true"); config 885 ext/pspell/pspell.c pspell_config_replace(config, "repl", repl); config 897 ext/pspell/pspell.c PspellConfig *config; config 905 ext/pspell/pspell.c pspell_config_replace(config, "save-repl", save ? "true" : "false"); config 564 ext/tidy/tidy.c zval *config = NULL; config 567 ext/tidy/tidy.c if (zend_parse_parameters(ZEND_NUM_ARGS(), "P|zsb", &arg1, &config, &enc, &enc_len, &use_include_path) == FAILURE) { config 574 ext/tidy/tidy.c if (zend_parse_parameters(ZEND_NUM_ARGS(), "S|zsb", &arg1, &config, &enc, &enc_len, &use_include_path) == FAILURE) { config 601 ext/tidy/tidy.c if (config) { config 602 ext/tidy/tidy.c TIDY_APPLY_CONFIG_ZVAL(doc, config); config 47 sapi/apache2handler/apache_config.c HashTable config; config 62 sapi/apache2handler/apache_config.c phpapdebug((stderr, "Getting %s=%s for %p (%d)\n", name, value, dummy, zend_hash_num_elements(&d->config))); config 73 sapi/apache2handler/apache_config.c zend_hash_str_update_mem(&d->config, (char *) name, strlen(name), &e, sizeof(e)); config 153 sapi/apache2handler/apache_config.c zend_hash_copy(&n->config, &d->config, config_entry_ctor); config 156 sapi/apache2handler/apache_config.c zend_hash_merge_ex(&n->config, &e->config, config_entry_ctor, should_overwrite_per_dir_entry, NULL); config 165 sapi/apache2handler/apache_config.c if ((pe = zend_hash_str_find_ptr(&d->config, name, name_len)) != NULL) { config 178 sapi/apache2handler/apache_config.c ZEND_HASH_FOREACH_STR_KEY_PTR(&d->config, str, data) { config 201 sapi/apache2handler/apache_config.c zend_hash_destroy(&d->config); config 216 sapi/apache2handler/apache_config.c zend_hash_init(&newx->config, 0, NULL, config_entry_dtor, 1); config 527 sapi/apache2handler/sapi_apache2.c HashTable config; config 532 sapi/apache2handler/sapi_apache2.c ZEND_HASH_FOREACH_STR_KEY(&c->config, str) { config 30 sapi/fpm/fpm/fpm.c .config = NULL, config 46 sapi/fpm/fpm/fpm.c int fpm_init(int argc, char **argv, char *config, char *prefix, char *pid, int test_conf, int run_as_root, int force_daemon, int force_stderr) /* {{{ */ config 50 sapi/fpm/fpm/fpm.c if (config && *config) { config 51 sapi/fpm/fpm/fpm.c fpm_globals.config = strdup(config); config 40 sapi/fpm/fpm/fpm.h int fpm_init(int argc, char **argv, char *config, char *prefix, char *pid, int test_conf, int run_as_root, int force_daemon, int force_stderr); config 46 sapi/fpm/fpm/fpm.h char *config; config 148 sapi/fpm/fpm/fpm_children.c fpm_globals.max_requests = wp->config->pm_max_requests; config 158 sapi/fpm/fpm/fpm_children.c zlog(ZLOG_ERROR, "[pool %s] child failed to initialize", wp->config->name); config 252 sapi/fpm/fpm/fpm_children.c zlog(severity, "[pool %s] child %d exited %s after %ld.%06d seconds from start", child->wp->config->name, (int) pid, buf, tv2.tv_sec, (int) tv2.tv_usec); config 254 sapi/fpm/fpm/fpm_children.c zlog(ZLOG_DEBUG, "[pool %s] child %d has been killed by the process management after %ld.%06d seconds from start", child->wp->config->name, (int) pid, tv2.tv_sec, (int) tv2.tv_usec); config 308 sapi/fpm/fpm/fpm_children.c zlog(ZLOG_ERROR, "[pool %s] unable to malloc new child", wp->config->name); config 368 sapi/fpm/fpm/fpm_children.c if (wp->config->pm == PM_STYLE_DYNAMIC) { config 370 sapi/fpm/fpm/fpm_children.c max = wp->config->pm_start_servers; config 374 sapi/fpm/fpm/fpm_children.c } else if (wp->config->pm == PM_STYLE_ONDEMAND) { config 381 sapi/fpm/fpm/fpm_children.c max = wp->config->pm_max_children; config 421 sapi/fpm/fpm/fpm_children.c zlog(is_debug ? ZLOG_DEBUG : ZLOG_NOTICE, "[pool %s] child %d started", wp->config->name, (int) pid); config 437 sapi/fpm/fpm/fpm_children.c if (wp->config->pm == PM_STYLE_ONDEMAND) { config 441 sapi/fpm/fpm/fpm_children.c zlog(ZLOG_ERROR, "[pool %s] unable to malloc the ondemand socket event", wp->config->name); config 59 sapi/fpm/fpm/fpm_conf.c static char *fpm_conf_set_integer(zval *value, void **config, intptr_t offset); config 61 sapi/fpm/fpm/fpm_conf.c static char *fpm_conf_set_long(zval *value, void **config, intptr_t offset); config 63 sapi/fpm/fpm/fpm_conf.c static char *fpm_conf_set_time(zval *value, void **config, intptr_t offset); config 64 sapi/fpm/fpm/fpm_conf.c static char *fpm_conf_set_boolean(zval *value, void **config, intptr_t offset); config 65 sapi/fpm/fpm/fpm_conf.c static char *fpm_conf_set_string(zval *value, void **config, intptr_t offset); config 66 sapi/fpm/fpm/fpm_conf.c static char *fpm_conf_set_log_level(zval *value, void **config, intptr_t offset); config 67 sapi/fpm/fpm/fpm_conf.c static char *fpm_conf_set_rlimit_core(zval *value, void **config, intptr_t offset); config 68 sapi/fpm/fpm/fpm_conf.c static char *fpm_conf_set_pm(zval *value, void **config, intptr_t offset); config 70 sapi/fpm/fpm/fpm_conf.c static char *fpm_conf_set_syslog_facility(zval *value, void **config, intptr_t offset); config 190 sapi/fpm/fpm/fpm_conf.c if (!current_wp || !current_wp->config || !current_wp->config->name) { config 198 sapi/fpm/fpm/fpm_conf.c spprintf(&buf, 0, "%s%s%s", *value, current_wp->config->name, p2); config 209 sapi/fpm/fpm/fpm_conf.c static char *fpm_conf_set_boolean(zval *value, void **config, intptr_t offset) /* {{{ */ config 219 sapi/fpm/fpm/fpm_conf.c * (int *) ((char *) *config + offset) = value_y ? 1 : 0; config 224 sapi/fpm/fpm/fpm_conf.c static char *fpm_conf_set_string(zval *value, void **config, intptr_t offset) /* {{{ */ config 226 sapi/fpm/fpm/fpm_conf.c char **config_val = (char **) ((char *) *config + offset); config 249 sapi/fpm/fpm/fpm_conf.c static char *fpm_conf_set_integer(zval *value, void **config, intptr_t offset) /* {{{ */ config 261 sapi/fpm/fpm/fpm_conf.c * (int *) ((char *) *config + offset) = atoi(val); config 267 sapi/fpm/fpm/fpm_conf.c static char *fpm_conf_set_long(zval *value, void **config, intptr_t offset) /* {{{ */ config 278 sapi/fpm/fpm/fpm_conf.c * (long int *) ((char *) *config + offset) = atol(val); config 284 sapi/fpm/fpm/fpm_conf.c static char *fpm_conf_set_time(zval *value, void **config, intptr_t offset) /* {{{ */ config 319 sapi/fpm/fpm/fpm_conf.c * (int *) ((char *) *config + offset) = seconds; config 324 sapi/fpm/fpm/fpm_conf.c static char *fpm_conf_set_log_level(zval *value, void **config, intptr_t offset) /* {{{ */ config 343 sapi/fpm/fpm/fpm_conf.c * (int *) ((char *) *config + offset) = log_level; config 349 sapi/fpm/fpm/fpm_conf.c static char *fpm_conf_set_syslog_facility(zval *value, void **config, intptr_t offset) /* {{{ */ config 352 sapi/fpm/fpm/fpm_conf.c int *conf = (int *) ((char *) *config + offset); config 499 sapi/fpm/fpm/fpm_conf.c static char *fpm_conf_set_rlimit_core(zval *value, void **config, intptr_t offset) /* {{{ */ config 502 sapi/fpm/fpm/fpm_conf.c int *ptr = (int *) ((char *) *config + offset); config 528 sapi/fpm/fpm/fpm_conf.c static char *fpm_conf_set_pm(zval *value, void **config, intptr_t offset) /* {{{ */ config 531 sapi/fpm/fpm/fpm_conf.c struct fpm_worker_pool_config_s *c = *config; config 545 sapi/fpm/fpm/fpm_conf.c static char *fpm_conf_set_array(zval *key, zval *value, void **config, int convert_to_bool) /* {{{ */ config 548 sapi/fpm/fpm/fpm_conf.c struct key_value_s ***parent = (struct key_value_s ***) config; config 605 sapi/fpm/fpm/fpm_conf.c wp->config = malloc(sizeof(struct fpm_worker_pool_config_s)); config 607 sapi/fpm/fpm/fpm_conf.c if (!wp->config) { config 612 sapi/fpm/fpm/fpm_conf.c memset(wp->config, 0, sizeof(struct fpm_worker_pool_config_s)); config 613 sapi/fpm/fpm/fpm_conf.c wp->config->listen_backlog = FPM_BACKLOG_DEFAULT; config 614 sapi/fpm/fpm/fpm_conf.c wp->config->pm_process_idle_timeout = 10; /* 10s by default */ config 615 sapi/fpm/fpm/fpm_conf.c wp->config->process_priority = 64; /* 64 means unset */ config 616 sapi/fpm/fpm/fpm_conf.c wp->config->clear_env = 1; config 632 sapi/fpm/fpm/fpm_conf.c return wp->config; config 694 sapi/fpm/fpm/fpm_conf.c if (wp && wp->config) { config 695 sapi/fpm/fpm/fpm_conf.c prefix = wp->config->prefix; config 738 sapi/fpm/fpm/fpm_conf.c if (**path != '/' && wp != NULL && wp->config) { config 757 sapi/fpm/fpm/fpm_conf.c if (wp->config->prefix && *wp->config->prefix) { config 758 sapi/fpm/fpm/fpm_conf.c fpm_evaluate_full_path(&wp->config->prefix, NULL, NULL, 0); config 760 sapi/fpm/fpm/fpm_conf.c if (!fpm_conf_is_dir(wp->config->prefix)) { config 761 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ERROR, "[pool %s] the prefix '%s' does not exist or is not a directory", wp->config->name, wp->config->prefix); config 767 sapi/fpm/fpm/fpm_conf.c if (!wp->config->user && !geteuid()) { config 768 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ALERT, "[pool %s] user has not been defined", wp->config->name); config 773 sapi/fpm/fpm/fpm_conf.c if (wp->config->listen_address && *wp->config->listen_address) { config 774 sapi/fpm/fpm/fpm_conf.c wp->listen_address_domain = fpm_sockets_domain_from_address(wp->config->listen_address); config 776 sapi/fpm/fpm/fpm_conf.c if (wp->listen_address_domain == FPM_AF_UNIX && *wp->config->listen_address != '/') { config 777 sapi/fpm/fpm/fpm_conf.c fpm_evaluate_full_path(&wp->config->listen_address, wp, NULL, 0); config 780 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ALERT, "[pool %s] no listen address have been defined!", wp->config->name); config 784 sapi/fpm/fpm/fpm_conf.c if (wp->config->process_priority != 64 && (wp->config->process_priority < -19 || wp->config->process_priority > 20)) { config 785 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ERROR, "[pool %s] process.priority must be included into [-19,20]", wp->config->name); config 790 sapi/fpm/fpm/fpm_conf.c if (wp->config->pm != PM_STYLE_STATIC && wp->config->pm != PM_STYLE_DYNAMIC && wp->config->pm != PM_STYLE_ONDEMAND) { config 791 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ALERT, "[pool %s] the process manager is missing (static, dynamic or ondemand)", wp->config->name); config 796 sapi/fpm/fpm/fpm_conf.c if (wp->config->pm_max_children < 1) { config 797 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ALERT, "[pool %s] pm.max_children must be a positive value", wp->config->name); config 802 sapi/fpm/fpm/fpm_conf.c if (wp->config->pm == PM_STYLE_DYNAMIC) { config 803 sapi/fpm/fpm/fpm_conf.c struct fpm_worker_pool_config_s *config = wp->config; config 805 sapi/fpm/fpm/fpm_conf.c if (config->pm_min_spare_servers <= 0) { config 806 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ALERT, "[pool %s] pm.min_spare_servers(%d) must be a positive value", wp->config->name, config->pm_min_spare_servers); config 810 sapi/fpm/fpm/fpm_conf.c if (config->pm_max_spare_servers <= 0) { config 811 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ALERT, "[pool %s] pm.max_spare_servers(%d) must be a positive value", wp->config->name, config->pm_max_spare_servers); config 815 sapi/fpm/fpm/fpm_conf.c if (config->pm_min_spare_servers > config->pm_max_children || config 816 sapi/fpm/fpm/fpm_conf.c config->pm_max_spare_servers > config->pm_max_children) { config 817 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ALERT, "[pool %s] pm.min_spare_servers(%d) and pm.max_spare_servers(%d) cannot be greater than pm.max_children(%d)", wp->config->name, config->pm_min_spare_servers, config->pm_max_spare_servers, config->pm_max_children); config 821 sapi/fpm/fpm/fpm_conf.c if (config->pm_max_spare_servers < config->pm_min_spare_servers) { config 822 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ALERT, "[pool %s] pm.max_spare_servers(%d) must not be less than pm.min_spare_servers(%d)", wp->config->name, config->pm_max_spare_servers, config->pm_min_spare_servers); config 826 sapi/fpm/fpm/fpm_conf.c if (config->pm_start_servers <= 0) { config 827 sapi/fpm/fpm/fpm_conf.c config->pm_start_servers = config->pm_min_spare_servers + ((config->pm_max_spare_servers - config->pm_min_spare_servers) / 2); config 828 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "[pool %s] pm.start_servers is not set. It's been set to %d.", wp->config->name, config->pm_start_servers); config 830 sapi/fpm/fpm/fpm_conf.c } else if (config->pm_start_servers < config->pm_min_spare_servers || config->pm_start_servers > config->pm_max_spare_servers) { config 831 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ALERT, "[pool %s] pm.start_servers(%d) must not be less than pm.min_spare_servers(%d) and not greater than pm.max_spare_servers(%d)", wp->config->name, config->pm_start_servers, config->pm_min_spare_servers, config->pm_max_spare_servers); config 834 sapi/fpm/fpm/fpm_conf.c } else if (wp->config->pm == PM_STYLE_ONDEMAND) { config 835 sapi/fpm/fpm/fpm_conf.c struct fpm_worker_pool_config_s *config = wp->config; config 838 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ALERT, "[pool %s] ondemand process manager can ONLY be used when events.mechanisme is either epoll (Linux) or kqueue (*BSD).", wp->config->name); config 842 sapi/fpm/fpm/fpm_conf.c if (config->pm_process_idle_timeout < 1) { config 843 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ALERT, "[pool %s] pm.process_idle_timeout(%ds) must be greater than 0s", wp->config->name, config->pm_process_idle_timeout); config 847 sapi/fpm/fpm/fpm_conf.c if (config->listen_backlog < FPM_BACKLOG_DEFAULT) { config 848 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_WARNING, "[pool %s] listen.backlog(%d) was too low for the ondemand process manager. I updated it for you to %d.", wp->config->name, config->listen_backlog, FPM_BACKLOG_DEFAULT); config 849 sapi/fpm/fpm/fpm_conf.c config->listen_backlog = FPM_BACKLOG_DEFAULT; config 853 sapi/fpm/fpm/fpm_conf.c config->pm_start_servers = 0; config 854 sapi/fpm/fpm/fpm_conf.c config->pm_min_spare_servers = 0; config 855 sapi/fpm/fpm/fpm_conf.c config->pm_max_spare_servers = 0; config 859 sapi/fpm/fpm/fpm_conf.c if (wp->config->pm_status_path && *wp->config->pm_status_path) { config 861 sapi/fpm/fpm/fpm_conf.c char *status = wp->config->pm_status_path; config 864 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ERROR, "[pool %s] the status path '%s' must start with a '/'", wp->config->name, status); config 869 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ERROR, "[pool %s] the status path '%s' is not long enough", wp->config->name, status); config 875 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ERROR, "[pool %s] the status path '%s' must contain only the following characters '[alphanum]/_-.'", wp->config->name, status); config 882 sapi/fpm/fpm/fpm_conf.c if (wp->config->ping_path && *wp->config->ping_path) { config 883 sapi/fpm/fpm/fpm_conf.c char *ping = wp->config->ping_path; config 887 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ERROR, "[pool %s] the ping path '%s' must start with a '/'", wp->config->name, ping); config 892 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ERROR, "[pool %s] the ping path '%s' is not long enough", wp->config->name, ping); config 898 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ERROR, "[pool %s] the ping path '%s' must containt only the following characters '[alphanum]/_-.'", wp->config->name, ping); config 903 sapi/fpm/fpm/fpm_conf.c if (!wp->config->ping_response) { config 904 sapi/fpm/fpm/fpm_conf.c wp->config->ping_response = strdup("pong"); config 906 sapi/fpm/fpm/fpm_conf.c if (strlen(wp->config->ping_response) < 1) { config 907 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ERROR, "[pool %s] the ping response page '%s' is not long enough", wp->config->name, wp->config->ping_response); config 912 sapi/fpm/fpm/fpm_conf.c if (wp->config->ping_response) { config 913 sapi/fpm/fpm/fpm_conf.c free(wp->config->ping_response); config 914 sapi/fpm/fpm/fpm_conf.c wp->config->ping_response = NULL; config 919 sapi/fpm/fpm/fpm_conf.c if (wp->config->access_log && *wp->config->access_log) { config 920 sapi/fpm/fpm/fpm_conf.c fpm_evaluate_full_path(&wp->config->access_log, wp, NULL, 0); config 921 sapi/fpm/fpm/fpm_conf.c if (!wp->config->access_format) { config 922 sapi/fpm/fpm/fpm_conf.c wp->config->access_format = strdup("%R - %u %t \"%m %r\" %s"); config 926 sapi/fpm/fpm/fpm_conf.c if (wp->config->request_terminate_timeout) { config 927 sapi/fpm/fpm/fpm_conf.c fpm_globals.heartbeat = fpm_globals.heartbeat ? MIN(fpm_globals.heartbeat, (wp->config->request_terminate_timeout * 1000) / 3) : (wp->config->request_terminate_timeout * 1000) / 3; config 931 sapi/fpm/fpm/fpm_conf.c if (wp->config->slowlog && *wp->config->slowlog) { config 932 sapi/fpm/fpm/fpm_conf.c fpm_evaluate_full_path(&wp->config->slowlog, wp, NULL, 0); config 936 sapi/fpm/fpm/fpm_conf.c if (wp->config->request_slowlog_timeout) { config 938 sapi/fpm/fpm/fpm_conf.c if (! (wp->config->slowlog && *wp->config->slowlog)) { config 939 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ERROR, "[pool %s] 'slowlog' must be specified for use with 'request_slowlog_timeout'", wp->config->name); config 946 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_WARNING, "[pool %s] 'request_slowlog_timeout' is not supported on your system", wp->config->name); config 950 sapi/fpm/fpm/fpm_conf.c wp->config->request_slowlog_timeout = 0; config 953 sapi/fpm/fpm/fpm_conf.c if (wp->config->slowlog && *wp->config->slowlog) { config 956 sapi/fpm/fpm/fpm_conf.c fd = open(wp->config->slowlog, O_WRONLY | O_APPEND | O_CREAT, S_IRUSR | S_IWUSR); config 959 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_SYSERROR, "Unable to create or open slowlog(%s)", wp->config->slowlog); config 965 sapi/fpm/fpm/fpm_conf.c fpm_globals.heartbeat = fpm_globals.heartbeat ? MIN(fpm_globals.heartbeat, (wp->config->request_slowlog_timeout * 1000) / 3) : (wp->config->request_slowlog_timeout * 1000) / 3; config 967 sapi/fpm/fpm/fpm_conf.c if (wp->config->request_terminate_timeout && wp->config->request_slowlog_timeout > wp->config->request_terminate_timeout) { config 968 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ERROR, "[pool %s] 'request_slowlog_timeout' (%d) can't be greater than 'request_terminate_timeout' (%d)", wp->config->name, wp->config->request_slowlog_timeout, wp->config->request_terminate_timeout); config 974 sapi/fpm/fpm/fpm_conf.c if (wp->config->chroot && *wp->config->chroot) { config 976 sapi/fpm/fpm/fpm_conf.c fpm_evaluate_full_path(&wp->config->chroot, wp, NULL, 1); config 978 sapi/fpm/fpm/fpm_conf.c if (*wp->config->chroot != '/') { config 979 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ERROR, "[pool %s] the chroot path '%s' must start with a '/'", wp->config->name, wp->config->chroot); config 983 sapi/fpm/fpm/fpm_conf.c if (!fpm_conf_is_dir(wp->config->chroot)) { config 984 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ERROR, "[pool %s] the chroot path '%s' does not exist or is not a directory", wp->config->name, wp->config->chroot); config 990 sapi/fpm/fpm/fpm_conf.c if (wp->config->chdir && *wp->config->chdir) { config 992 sapi/fpm/fpm/fpm_conf.c fpm_evaluate_full_path(&wp->config->chdir, wp, NULL, 0); config 994 sapi/fpm/fpm/fpm_conf.c if (*wp->config->chdir != '/') { config 995 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ERROR, "[pool %s] the chdir path '%s' must start with a '/'", wp->config->name, wp->config->chdir); config 999 sapi/fpm/fpm/fpm_conf.c if (wp->config->chroot) { config 1002 sapi/fpm/fpm/fpm_conf.c spprintf(&buf, 0, "%s/%s", wp->config->chroot, wp->config->chdir); config 1005 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ERROR, "[pool %s] the chdir path '%s' within the chroot path '%s' ('%s') does not exist or is not a directory", wp->config->name, wp->config->chdir, wp->config->chroot, buf); config 1012 sapi/fpm/fpm/fpm_conf.c if (!fpm_conf_is_dir(wp->config->chdir)) { config 1013 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ERROR, "[pool %s] the chdir path '%s' does not exist or is not a directory", wp->config->name, wp->config->chdir); config 1020 sapi/fpm/fpm/fpm_conf.c if (!wp->config->security_limit_extensions) { config 1021 sapi/fpm/fpm/fpm_conf.c wp->config->security_limit_extensions = strdup(".php .phar"); config 1024 sapi/fpm/fpm/fpm_conf.c if (*wp->config->security_limit_extensions) { config 1032 sapi/fpm/fpm/fpm_conf.c security_limit_extensions = strdup(wp->config->security_limit_extensions); config 1049 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ERROR, "[pool %s] unable to malloc extensions array", wp->config->name); config 1054 sapi/fpm/fpm/fpm_conf.c security_limit_extensions = strdup(wp->config->security_limit_extensions); config 1071 sapi/fpm/fpm/fpm_conf.c if (!wp->config->chroot) { config 1076 sapi/fpm/fpm/fpm_conf.c for (kv = wp->config->php_values; kv; kv = kv->next) { config 1083 sapi/fpm/fpm/fpm_conf.c for (kv = wp->config->php_admin_values; kv; kv = kv->next) { config 1103 sapi/fpm/fpm/fpm_conf.c if (wp->config->listen_address && *wp->config->listen_address && wp2->config->listen_address && *wp2->config->listen_address && !strcmp(wp->config->listen_address, wp2->config->listen_address)) { config 1104 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ERROR, "[pool %s] unable to set listen address as it's already used in another pool '%s'", wp2->config->name, wp->config->name); config 1222 sapi/fpm/fpm/fpm_conf.c if (!wp->config->access_log || !*wp->config->access_log) { config 1225 sapi/fpm/fpm/fpm_conf.c if (0 > fpm_log_write(wp->config->access_format)) { config 1226 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ERROR, "[pool %s] wrong format for access.format '%s'", wp->config->name, wp->config->access_format); config 1246 sapi/fpm/fpm/fpm_conf.c free(fpm_globals.config); config 1309 sapi/fpm/fpm/fpm_conf.c struct fpm_worker_pool_config_s *config; config 1319 sapi/fpm/fpm/fpm_conf.c if (!wp->config) continue; config 1320 sapi/fpm/fpm/fpm_conf.c if (!wp->config->name) continue; config 1321 sapi/fpm/fpm/fpm_conf.c if (!strcasecmp(wp->config->name, Z_STRVAL_P(section))) { config 1329 sapi/fpm/fpm/fpm_conf.c config = (struct fpm_worker_pool_config_s *)fpm_worker_pool_config_alloc(); config 1330 sapi/fpm/fpm/fpm_conf.c if (!current_wp || !config) { config 1335 sapi/fpm/fpm/fpm_conf.c config->name = strdup(Z_STRVAL_P(section)); config 1336 sapi/fpm/fpm/fpm_conf.c if (!config->name) { config 1347 sapi/fpm/fpm/fpm_conf.c void *config = NULL; config 1368 sapi/fpm/fpm/fpm_conf.c config = &fpm_global_config; config 1371 sapi/fpm/fpm/fpm_conf.c config = current_wp->config; config 1383 sapi/fpm/fpm/fpm_conf.c ret = parser->parser(value, &config, parser->offset); config 1405 sapi/fpm/fpm/fpm_conf.c void *config; config 1412 sapi/fpm/fpm/fpm_conf.c if (!current_wp || !current_wp->config) { config 1424 sapi/fpm/fpm/fpm_conf.c config = (char *)current_wp->config + WPO(env); config 1425 sapi/fpm/fpm/fpm_conf.c err = fpm_conf_set_array(key, value, &config, 0); config 1428 sapi/fpm/fpm/fpm_conf.c config = (char *)current_wp->config + WPO(php_values); config 1429 sapi/fpm/fpm/fpm_conf.c err = fpm_conf_set_array(key, value, &config, 0); config 1432 sapi/fpm/fpm/fpm_conf.c config = (char *)current_wp->config + WPO(php_admin_values); config 1433 sapi/fpm/fpm/fpm_conf.c err = fpm_conf_set_array(key, value, &config, 0); config 1436 sapi/fpm/fpm/fpm_conf.c config = (char *)current_wp->config + WPO(php_values); config 1437 sapi/fpm/fpm/fpm_conf.c err = fpm_conf_set_array(key, value, &config, 1); config 1440 sapi/fpm/fpm/fpm_conf.c config = (char *)current_wp->config + WPO(php_admin_values); config 1441 sapi/fpm/fpm/fpm_conf.c err = fpm_conf_set_array(key, value, &config, 1); config 1604 sapi/fpm/fpm/fpm_conf.c if (!wp->config) continue; config 1605 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "[%s]", STR2STR(wp->config->name)); config 1606 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\tprefix = %s", STR2STR(wp->config->prefix)); config 1607 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\tuser = %s", STR2STR(wp->config->user)); config 1608 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\tgroup = %s", STR2STR(wp->config->group)); config 1609 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\tlisten = %s", STR2STR(wp->config->listen_address)); config 1610 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\tlisten.backlog = %d", wp->config->listen_backlog); config 1612 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\tlisten.acl_users = %s", STR2STR(wp->config->listen_acl_users)); config 1613 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\tlisten.acl_groups = %s", STR2STR(wp->config->listen_acl_groups)); config 1615 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\tlisten.owner = %s", STR2STR(wp->config->listen_owner)); config 1616 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\tlisten.group = %s", STR2STR(wp->config->listen_group)); config 1617 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\tlisten.mode = %s", STR2STR(wp->config->listen_mode)); config 1618 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\tlisten.allowed_clients = %s", STR2STR(wp->config->listen_allowed_clients)); config 1619 sapi/fpm/fpm/fpm_conf.c if (wp->config->process_priority == 64) { config 1622 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\tprocess.priority = %d", wp->config->process_priority); config 1624 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\tpm = %s", PM2STR(wp->config->pm)); config 1625 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\tpm.max_children = %d", wp->config->pm_max_children); config 1626 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\tpm.start_servers = %d", wp->config->pm_start_servers); config 1627 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\tpm.min_spare_servers = %d", wp->config->pm_min_spare_servers); config 1628 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\tpm.max_spare_servers = %d", wp->config->pm_max_spare_servers); config 1629 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\tpm.process_idle_timeout = %d", wp->config->pm_process_idle_timeout); config 1630 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\tpm.max_requests = %d", wp->config->pm_max_requests); config 1631 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\tpm.status_path = %s", STR2STR(wp->config->pm_status_path)); config 1632 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\tping.path = %s", STR2STR(wp->config->ping_path)); config 1633 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\tping.response = %s", STR2STR(wp->config->ping_response)); config 1634 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\taccess.log = %s", STR2STR(wp->config->access_log)); config 1635 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\taccess.format = %s", STR2STR(wp->config->access_format)); config 1636 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\tslowlog = %s", STR2STR(wp->config->slowlog)); config 1637 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\trequest_slowlog_timeout = %ds", wp->config->request_slowlog_timeout); config 1638 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\trequest_terminate_timeout = %ds", wp->config->request_terminate_timeout); config 1639 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\trlimit_files = %d", wp->config->rlimit_files); config 1640 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\trlimit_core = %d", wp->config->rlimit_core); config 1641 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\tchroot = %s", STR2STR(wp->config->chroot)); config 1642 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\tchdir = %s", STR2STR(wp->config->chdir)); config 1643 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\tcatch_workers_output = %s", BOOL2STR(wp->config->catch_workers_output)); config 1644 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\tclear_env = %s", BOOL2STR(wp->config->clear_env)); config 1645 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "\tsecurity.limit_extensions = %s", wp->config->security_limit_extensions); config 1647 sapi/fpm/fpm/fpm_conf.c for (kv = wp->config->env; kv; kv = kv->next) { config 1651 sapi/fpm/fpm/fpm_conf.c for (kv = wp->config->php_values; kv; kv = kv->next) { config 1655 sapi/fpm/fpm/fpm_conf.c for (kv = wp->config->php_admin_values; kv; kv = kv->next) { config 1678 sapi/fpm/fpm/fpm_conf.c if (fpm_globals.config == NULL) { config 1692 sapi/fpm/fpm/fpm_conf.c fpm_globals.config = strdup(tmp); config 1695 sapi/fpm/fpm/fpm_conf.c if (!fpm_globals.config) { config 1701 sapi/fpm/fpm/fpm_conf.c ret = fpm_conf_load_ini_file(fpm_globals.config); config 1704 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_ERROR, "failed to load configuration file '%s'", fpm_globals.config); config 1717 sapi/fpm/fpm/fpm_conf.c zlog(ZLOG_NOTICE, "configuration file %s test is successful\n", fpm_globals.config); config 142 sapi/fpm/fpm/fpm_env.c spprintf(&title, 0, "pool %s", wp->config->name); config 146 sapi/fpm/fpm/fpm_env.c if (wp->config->clear_env) { config 150 sapi/fpm/fpm/fpm_env.c for (kv = wp->config->env; kv; kv = kv->next) { config 170 sapi/fpm/fpm/fpm_env.c for (kv = wp->config->env; kv; kv = kv->next) { config 272 sapi/fpm/fpm/fpm_env.c spprintf(&title, 0, "master process (%s)", fpm_globals.config); config 326 sapi/fpm/fpm/fpm_events.c if (!wp->config) continue; config 327 sapi/fpm/fpm/fpm_events.c if (wp->config->catch_workers_output && wp->config->pm_max_children > 0) { config 328 sapi/fpm/fpm/fpm_events.c max += (wp->config->pm_max_children * 2); config 40 sapi/fpm/fpm/fpm_log.c if (!wp->config->access_log) { config 45 sapi/fpm/fpm/fpm_log.c fd = open(wp->config->access_log, O_WRONLY | O_APPEND | O_CREAT, S_IRUSR | S_IWUSR); config 47 sapi/fpm/fpm/fpm_log.c zlog(ZLOG_SYSERROR, "failed to open access log (%s)", wp->config->access_log); config 50 sapi/fpm/fpm/fpm_log.c zlog(ZLOG_DEBUG, "open access log (%s)", wp->config->access_log); config 74 sapi/fpm/fpm/fpm_log.c if (!wp || !wp->config) { config 78 sapi/fpm/fpm/fpm_log.c if (wp->config->access_log && *wp->config->access_log) { config 79 sapi/fpm/fpm/fpm_log.c if (wp->config->access_format) { config 80 sapi/fpm/fpm/fpm_log.c fpm_log_format = strdup(wp->config->access_format); config 119 sapi/fpm/fpm/fpm_php.c for (kv = wp->config->php_values; kv; kv = kv->next) { config 125 sapi/fpm/fpm/fpm_php.c for (kv = wp->config->php_admin_values; kv; kv = kv->next) { config 138 sapi/fpm/fpm/fpm_php.c fcgi_set_allowed_clients(wp->config->listen_allowed_clients); config 150 sapi/fpm/fpm/fpm_php.c len = sprintf(max_workers, "%u", (unsigned int) wp->config->pm_max_children); config 58 sapi/fpm/fpm/fpm_php_trace.c fprintf(slowlog, "\n%s [pool %s] pid %d\n", buf, child->wp->config->name, (int) pid); config 204 sapi/fpm/fpm/fpm_php_trace.c slowlog = fopen(child->wp->config->slowlog, "a+"); config 207 sapi/fpm/fpm/fpm_php_trace.c zlog(ZLOG_SYSERROR, "unable to open slowlog (%s)", child->wp->config->slowlog); config 158 sapi/fpm/fpm/fpm_process_ctl.c child->wp->config->name, signo, config 297 sapi/fpm/fpm/fpm_process_ctl.c int terminate_timeout = wp->config->request_terminate_timeout; config 298 sapi/fpm/fpm/fpm_process_ctl.c int slowlog_timeout = wp->config->request_slowlog_timeout; config 322 sapi/fpm/fpm/fpm_process_ctl.c if (wp->config == NULL) continue; config 347 sapi/fpm/fpm/fpm_process_ctl.c zlog(ZLOG_WARNING, "[pool %s] listening queue is not empty, #%d requests are waiting to be served, consider raising pm.max_children setting (%d)", wp->config->name, cur_lq, wp->config->pm_max_children); config 359 sapi/fpm/fpm/fpm_process_ctl.c if (wp->config->pm == PM_STYLE_ONDEMAND) { config 362 sapi/fpm/fpm/fpm_process_ctl.c zlog(ZLOG_DEBUG, "[pool %s] currently %d active children, %d spare children", wp->config->name, active, idle); config 368 sapi/fpm/fpm/fpm_process_ctl.c if (last.tv_sec < now.tv_sec - wp->config->pm_process_idle_timeout) { config 377 sapi/fpm/fpm/fpm_process_ctl.c if (wp->config->pm != PM_STYLE_DYNAMIC) continue; config 379 sapi/fpm/fpm/fpm_process_ctl.c zlog(ZLOG_DEBUG, "[pool %s] currently %d active children, %d spare children, %d running children. Spawning rate %d", wp->config->name, active, idle, wp->running_children, wp->idle_spawn_rate); config 381 sapi/fpm/fpm/fpm_process_ctl.c if (idle > wp->config->pm_max_spare_servers && last_idle_child) { config 388 sapi/fpm/fpm/fpm_process_ctl.c if (idle < wp->config->pm_min_spare_servers) { config 389 sapi/fpm/fpm/fpm_process_ctl.c if (wp->running_children >= wp->config->pm_max_children) { config 392 sapi/fpm/fpm/fpm_process_ctl.c zlog(ZLOG_WARNING, "[pool %s] server reached pm.max_children setting (%d), consider raising it", wp->config->name, wp->config->pm_max_children); config 400 sapi/fpm/fpm/fpm_process_ctl.c zlog(ZLOG_WARNING, "[pool %s] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning %d children, there are %d idle, and %d total children", wp->config->name, wp->idle_spawn_rate, idle, wp->running_children); config 404 sapi/fpm/fpm/fpm_process_ctl.c children_to_fork = MIN(wp->idle_spawn_rate, wp->config->pm_min_spare_servers - idle); config 407 sapi/fpm/fpm/fpm_process_ctl.c children_to_fork = MIN(children_to_fork, wp->config->pm_max_children - wp->running_children); config 411 sapi/fpm/fpm/fpm_process_ctl.c zlog(ZLOG_WARNING, "[pool %s] server reached pm.max_children setting (%d), consider raising it", wp->config->name, wp->config->pm_max_children); config 428 sapi/fpm/fpm/fpm_process_ctl.c zlog(ZLOG_DEBUG, "[pool %s] %d child(ren) have been created dynamically", wp->config->name, children_to_fork); config 512 sapi/fpm/fpm/fpm_process_ctl.c if (wp->running_children >= wp->config->pm_max_children) { config 515 sapi/fpm/fpm/fpm_process_ctl.c zlog(ZLOG_WARNING, "[pool %s] server reached max_children setting (%d), consider raising it", wp->config->name, wp->config->pm_max_children); config 536 sapi/fpm/fpm/fpm_process_ctl.c zlog(ZLOG_DEBUG, "[pool %s] got accept without idle child available .... I forked", wp->config->name); config 266 sapi/fpm/fpm/fpm_request.c child->wp->config->name, (int) child->pid, purified_script_filename, proc.request_method, proc.request_uri, config 276 sapi/fpm/fpm/fpm_request.c child->wp->config->name, (int) child->pid, purified_script_filename, proc.request_method, proc.request_uri, config 45 sapi/fpm/fpm/fpm_scoreboard.c if (wp->config->pm_max_children < 1) { config 46 sapi/fpm/fpm/fpm_scoreboard.c zlog(ZLOG_ERROR, "[pool %s] Unable to create scoreboard SHM because max_client is not set", wp->config->name); config 51 sapi/fpm/fpm/fpm_scoreboard.c zlog(ZLOG_ERROR, "[pool %s] Unable to create scoreboard SHM because it already exists", wp->config->name); config 55 sapi/fpm/fpm/fpm_scoreboard.c wp->scoreboard = fpm_shm_alloc(sizeof(struct fpm_scoreboard_s) + (wp->config->pm_max_children - 1) * sizeof(struct fpm_scoreboard_proc_s *)); config 59 sapi/fpm/fpm/fpm_scoreboard.c wp->scoreboard->nprocs = wp->config->pm_max_children; config 68 sapi/fpm/fpm/fpm_scoreboard.c wp->scoreboard->pm = wp->config->pm; config 70 sapi/fpm/fpm/fpm_scoreboard.c strlcpy(wp->scoreboard->pool, wp->config->name, sizeof(wp->scoreboard->pool)); config 191 sapi/fpm/fpm/fpm_sockets.c zlog(ZLOG_SYSERROR, "unable to bind listening socket for address '%s'", wp->config->listen_address); config 210 sapi/fpm/fpm/fpm_sockets.c if (0 > listen(sock, wp->config->listen_backlog)) { config 211 sapi/fpm/fpm/fpm_sockets.c zlog(ZLOG_SYSERROR, "failed to listen to address '%s'", wp->config->listen_address); config 252 sapi/fpm/fpm/fpm_sockets.c char *dup_address = strdup(wp->config->listen_address); config 317 sapi/fpm/fpm/fpm_sockets.c strlcpy(sa_un.sun_path, wp->config->listen_address, sizeof(sa_un.sun_path)); config 27 sapi/fpm/fpm/fpm_status.c if (!wp || !wp->config) { config 32 sapi/fpm/fpm/fpm_status.c if (wp->config->pm_status_path) { config 33 sapi/fpm/fpm/fpm_status.c fpm_status_uri = strdup(wp->config->pm_status_path); config 36 sapi/fpm/fpm/fpm_status.c if (wp->config->ping_path) { config 37 sapi/fpm/fpm/fpm_status.c if (!wp->config->ping_response) { config 38 sapi/fpm/fpm/fpm_status.c zlog(ZLOG_ERROR, "[pool %s] ping is set (%s) but ping.response is not set.", wp->config->name, wp->config->ping_path); config 41 sapi/fpm/fpm/fpm_status.c fpm_status_ping_uri = strdup(wp->config->ping_path); config 42 sapi/fpm/fpm/fpm_status.c fpm_status_ping_response = strdup(wp->config->ping_response); config 190 sapi/fpm/fpm/fpm_stdio.c zlog(ZLOG_WARNING, "[pool %s] child %d said into %s: \"%s\"%s", child->wp->config->name, config 209 sapi/fpm/fpm/fpm_stdio.c if (0 == child->wp->config->catch_workers_output) { /* not required */ config 239 sapi/fpm/fpm/fpm_stdio.c if (0 == child->wp->config->catch_workers_output) { /* not required */ config 260 sapi/fpm/fpm/fpm_stdio.c if (0 == child->wp->config->catch_workers_output) { /* not required */ config 275 sapi/fpm/fpm/fpm_stdio.c if (child->wp->config->catch_workers_output) { config 41 sapi/fpm/fpm/fpm_unix.c struct fpm_worker_pool_config_s *c = wp->config; config 86 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_SYSERROR, "[pool %s] cannot allocate ACL", wp->config->name); config 100 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_DEBUG, "[pool %s] user '%s' have uid=%d", wp->config->name, p, pwd->pw_uid); config 102 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_SYSERROR, "[pool %s] cannot get uid for user '%s'", wp->config->name, p); config 114 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_SYSERROR, "[pool %s] cannot create ACL for user '%s'", wp->config->name, p); config 133 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_DEBUG, "[pool %s] group '%s' have gid=%d", wp->config->name, p, grp->gr_gid); config 135 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_SYSERROR, "[pool %s] cannot get gid for group '%s'", wp->config->name, p); config 147 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_SYSERROR, "[pool %s] cannot create ACL for group '%s'", wp->config->name, p); config 156 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_WARNING, "[pool %s] ACL set, listen.owner = '%s' is ignored", wp->config->name, c->listen_owner); config 159 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_WARNING, "[pool %s] ACL set, listen.group = '%s' is ignored", wp->config->name, c->listen_group); config 172 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_SYSERROR, "[pool %s] cannot get uid for user '%s'", wp->config->name, c->listen_owner); config 185 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_SYSERROR, "[pool %s] cannot get gid for group '%s'", wp->config->name, c->listen_group); config 207 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_SYSERROR, "[pool %s] failed to read the ACL of the socket '%s'", wp->config->name, path); config 214 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_SYSERROR, "[pool %s] failed to add entry to the ACL of the socket '%s'", wp->config->name, path); config 223 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_SYSERROR, "[pool %s] failed to write the ACL of the socket '%s'", wp->config->name, path); config 227 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_DEBUG, "[pool %s] ACL of the socket '%s' is set", wp->config->name, path); config 238 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_SYSERROR, "[pool %s] failed to chown() the socket '%s'", wp->config->name, wp->config->listen_address); config 263 sapi/fpm/fpm/fpm_unix.c if (wp->config->user && *wp->config->user) { config 264 sapi/fpm/fpm/fpm_unix.c if (strlen(wp->config->user) == strspn(wp->config->user, "0123456789")) { config 265 sapi/fpm/fpm/fpm_unix.c wp->set_uid = strtoul(wp->config->user, 0, 10); config 269 sapi/fpm/fpm/fpm_unix.c pwd = getpwnam(wp->config->user); config 271 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_ERROR, "[pool %s] cannot get uid for user '%s'", wp->config->name, wp->config->user); config 283 sapi/fpm/fpm/fpm_unix.c if (wp->config->group && *wp->config->group) { config 284 sapi/fpm/fpm/fpm_unix.c if (strlen(wp->config->group) == strspn(wp->config->group, "0123456789")) { config 285 sapi/fpm/fpm/fpm_unix.c wp->set_gid = strtoul(wp->config->group, 0, 10); config 289 sapi/fpm/fpm/fpm_unix.c grp = getgrnam(wp->config->group); config 291 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_ERROR, "[pool %s] cannot get gid for group '%s'", wp->config->name, wp->config->group); config 300 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_ERROR, "[pool %s] please specify user and group other than root", wp->config->name); config 305 sapi/fpm/fpm/fpm_unix.c if (wp->config->user && *wp->config->user) { config 306 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_NOTICE, "[pool %s] 'user' directive is ignored when FPM is not running as root", wp->config->name); config 308 sapi/fpm/fpm/fpm_unix.c if (wp->config->group && *wp->config->group) { config 309 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_NOTICE, "[pool %s] 'group' directive is ignored when FPM is not running as root", wp->config->name); config 311 sapi/fpm/fpm/fpm_unix.c if (wp->config->chroot && *wp->config->chroot) { config 312 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_NOTICE, "[pool %s] 'chroot' directive is ignored when FPM is not running as root", wp->config->name); config 314 sapi/fpm/fpm/fpm_unix.c if (wp->config->process_priority != 64) { config 315 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_NOTICE, "[pool %s] 'process.priority' directive is ignored when FPM is not running as root", wp->config->name); config 334 sapi/fpm/fpm/fpm_unix.c if (wp->config->rlimit_files) { config 337 sapi/fpm/fpm/fpm_unix.c r.rlim_max = r.rlim_cur = (rlim_t) wp->config->rlimit_files; config 340 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_SYSERROR, "[pool %s] failed to set rlimit_files for this pool. Please check your system limits or decrease rlimit_files. setrlimit(RLIMIT_NOFILE, %d)", wp->config->name, wp->config->rlimit_files); config 344 sapi/fpm/fpm/fpm_unix.c if (wp->config->rlimit_core) { config 347 sapi/fpm/fpm/fpm_unix.c r.rlim_max = r.rlim_cur = wp->config->rlimit_core == -1 ? (rlim_t) RLIM_INFINITY : (rlim_t) wp->config->rlimit_core; config 350 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_SYSERROR, "[pool %s] failed to set rlimit_core for this pool. Please check your system limits or decrease rlimit_core. setrlimit(RLIMIT_CORE, %d)", wp->config->name, wp->config->rlimit_core); config 354 sapi/fpm/fpm/fpm_unix.c if (is_root && wp->config->chroot && *wp->config->chroot) { config 355 sapi/fpm/fpm/fpm_unix.c if (0 > chroot(wp->config->chroot)) { config 356 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_SYSERROR, "[pool %s] failed to chroot(%s)", wp->config->name, wp->config->chroot); config 362 sapi/fpm/fpm/fpm_unix.c if (wp->config->chdir && *wp->config->chdir) { config 363 sapi/fpm/fpm/fpm_unix.c if (0 > chdir(wp->config->chdir)) { config 364 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_SYSERROR, "[pool %s] failed to chdir(%s)", wp->config->name, wp->config->chdir); config 369 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_WARNING, "[pool %s] failed to chdir(/)", wp->config->name); config 375 sapi/fpm/fpm/fpm_unix.c if (wp->config->process_priority != 64) { config 376 sapi/fpm/fpm/fpm_unix.c if (setpriority(PRIO_PROCESS, 0, wp->config->process_priority) < 0) { config 377 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_SYSERROR, "[pool %s] Unable to set priority for this new process", wp->config->name); config 384 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_SYSERROR, "[pool %s] failed to setgid(%d)", wp->config->name, wp->set_gid); config 389 sapi/fpm/fpm/fpm_unix.c if (0 > initgroups(wp->config->user, wp->set_gid)) { config 390 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_SYSERROR, "[pool %s] failed to initgroups(%s, %d)", wp->config->name, wp->config->user, wp->set_gid); config 394 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_SYSERROR, "[pool %s] failed to setuid(%d)", wp->config->name, wp->set_uid); config 402 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_SYSERROR, "[pool %s] failed to prctl(PR_SET_DUMPABLE)", wp->config->name); config 411 sapi/fpm/fpm/fpm_unix.c if (wp->config->apparmor_hat) { config 415 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_SYSERROR, "[pool %s] failed to query apparmor confinement. Please check if \"/proc/*/attr/current\" is read and writeable.", wp->config->name); config 419 sapi/fpm/fpm/fpm_unix.c new_con = malloc(strlen(con) + strlen(wp->config->apparmor_hat) + 3); // // + 0 Byte config 421 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_SYSERROR, "[pool %s] failed to allocate memory for apparmor hat change.", wp->config->name); config 425 sapi/fpm/fpm/fpm_unix.c if (0 > sprintf(new_con, "%s//%s", con, wp->config->apparmor_hat)) { config 426 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_SYSERROR, "[pool %s] failed to construct apparmor confinement.", wp->config->name); config 431 sapi/fpm/fpm/fpm_unix.c zlog(ZLOG_SYSERROR, "[pool %s] failed to change to new confinement (%s). Please check if \"/proc/*/attr/current\" is read and writeable and \"change_profile -> %s//*\" is allowed.", wp->config->name, new_con, con); config 24 sapi/fpm/fpm/fpm_worker_pool.c if (wp->config) { config 25 sapi/fpm/fpm/fpm_worker_pool.c free(wp->config); config 44 sapi/fpm/fpm/fpm_worker_pool.c fpm_worker_pool_config_free(wp->config); config 23 sapi/fpm/fpm/fpm_worker_pool.h struct fpm_worker_pool_config_s *config;