# Update domain's PHP values This function allows WHM's interface () to change the values of a domain. When you disable the Web Server 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 than the required RAM, your server may experience severe performance issues. Endpoint: GET /php_set_vhost_versions Version: 11.134.0.5 Security: BasicAuth ## Query parameters: - `version` (string, required) The virtual host's (vhost) PHP version. This parameter also accepts any custom PHP package names. Enum: "ea-php54", "ea-php55", "ea-php56", "ea-php70", "ea-php71", "ea-php72", "inherit" - `vhost` (string, required) The virtual host's name. To set multiple vhosts, increment the parameter name. For example, , , and . - `php_fpm` (integer) Whether PHP-FPM is enabled. * — Enabled. * — Disabled. Enum: 1, 0 - `php_fpm_pool_parms` (object) A JSON-encoded string containing a hash of values. Example: {"pm_max_children":5,"pm_max_requests":20,"pm_process_idle_timeout":10} ## Response 200 fields (application/json): - `metadata` (object) - `metadata.command` (string) The method name called. Example: "php_set_vhost_versions" - `metadata.reason` (string) The reason the API function failed when the field is . This field may display a success message when a function succeeds. Example: "OK" - `metadata.result` (integer) * — Success. * — Failed. Check the field for more details. Enum: 1, 0 - `metadata.version` (integer) The version of the API function. Example: 1