# Return PHP-FPM directives and pool options This function retrieves the PHP INI directives and pool options for a system's or domain's PHP-FPM configuration. When you disable the WebServer role, the system this function. We recommend that you only activate Apache PHP-FPM if your server has at least 2 GB of RAM available, or at least 30 MB of RAM per domain. If you enable PHP-FPM on a server with less than the required RAM, your server may experience severe performance issues. Endpoint: POST /php_fpm_config_get Version: 11.134.0.5 Security: BasicAuth ## Request fields (application/json): - `domain` (string) A blank value or domain name whose PHP-FPM configuration you wish to retrieve. * A valid domain that resides on the local server — Retrieves the domain's PHP-FPM configuration information. * A blank value — Retrieves the system's PHP-FPM information. Example: "example.com" ## Response 200 fields (application/json): - `data` (object) - `data.config` (array) An array of objects that contains the PHP-FPM configuration values. Example: [{"base_flag_name":"short_open_tag","trinary_admin_value":1,"value":"on"},{"base_flag_name":"log_errors","trinary_admin_value":1,"value":"on"},{"base_flag_name":"pm_process_idle_timeout","trinary_admin_value":0,"value":"10"},{"base_flag_name":"error_reporting","trinary_admin_value":2,"value":"E_ALL & ~E_NOTICE"},{"base_flag_name":"disable_functions","trinary_admin_value":1,"value":"exec,passthru,shell_exec,system"},{"base_flag_name":"error_log","trinary_admin_value":1,"value":"[% homedir %]/logs/[% scrubbed_domain %].php.error.log"},{"base_flag_name":"pm_max_children","trinary_admin_value":0,"value":"5"},{"base_flag_name":"pm_max_requests","trinary_admin_value":0,"value":"20"},{"base_flag_name":"allow_url_fopen","trinary_admin_value":1,"value":"on"},{"base_flag_name":"doc_root","trinary_admin_value":1,"value":"[% documentroot %]"}] - `data.config.base_flag_name` (string) PHP INI directive or PHP-FPM pool option name. * - Treat URLs as files. * - Lists the functions that the system will disable. * - The PHP pages' document root. * - The error log file. * - The errors that the system reports on. * - Whether the system will log errors. * - Whether the system recognizes code between the tags as a PHP source. Pool options- pm_max_children The maximum number of process pools that the PHP-FPM Master Process will generate to handle requests. * — The maximum number of process pools that the PHP-FPM Master Process will generate to handle requests. * - The maximum number of requests that the process pools can receive. * - The amount of time, in seconds, that a pool process will wait for a request. Example: "pm_max_children" - `data.config.trinary_admin_value` (integer) Whether the PHP value is a PHP INI directive value (), a PHP INI ADMIN value (), or a PHP-FPM pool option (). * - A PHP-FPM-specific value (pool options). * - A PHP INI ADMIN directive. A cPanel account user override this directive. * - A PHP INI directive. A cPanel account user can override this directive. Enum: 0, 1, 2 - `data.config.value` (string) An argument value for . Example: "5" - `metadata` (object) - `metadata.command` (string) The method name called. Example: "php_fpm_config_get" - `metadata.reason` (string) The reason the API function failed when the field is 0. This field may display a success message when a function succeeds. Example: "OK" - `metadata.result` (integer) - 1 - Success - 0 - Failed: Check the reason field for more details. Enum: 0, 1 - `metadata.version` (integer) The version of the API function. Example: 1