Description

This function determines whether to enable PHP-FPM on new accounts and domains on a server.

Examples




https://hostname.example.com:2087/cpsess##########/json-api/php_set_default_accounts_to_fpm?api.version=1&default_accounts_to_fpm=1




https://hostname.example.com:2087/cpsess##########/xml-api/php_set_default_accounts_to_fpm?api.version=1&default_accounts_to_fpm=1




whmapi1 php_set_default_accounts_to_fpm default_accounts_to_fpm=1



{
   "metadata" : {
      "version" : 1,
      "result" : 1,
      "command" : "php_set_default_accounts_to_fpm",
      "reason" : "OK"
   },
   "data" : {}
}




<xml>
  <data></data>
  <metadata>
    <command>php_set_default_accounts_to_fpm</command>
    <reason>OK</reason>
    <result>1</result>
    <version>1</version>
  </metadata>
</xml>



Parameters

ParameterTypeDescriptionPossible ValuesExample
default_accounts_to_fpmBoolean

Required

Whether to enable PHP-FPM on all new accounts and domains on a server.

  • 1 — Enable PHP-FPM.
  • 0 — Disable PHP-FPM.
1

Returns

This function returns only metadata.