Description

This function determines whether the system enables PHP-FPM for new domains and accounts.

Examples




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




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




whmapi1 php_get_default_accounts_to_fpm



{
   "data" : {
      "default_accounts_to_fpm" : 0
   },
   "metadata" : {
      "command" : "php_get_default_accounts_to_fpm",
      "version" : 1,
      "result" : 1,
      "reason" : "OK"
   }
}




<xml>
  <data>
    <default_accounts_to_fpm>0</default_accounts_to_fpm>
  </data>
  <metadata>
    <command>php_get_default_accounts_to_fpm</command>
    <reason>OK</reason>
    <result>1</result>
    <version>1</version>
  </metadata>
</xml>



Parameters

This function does not accept parameters.

Returns

ReturnTypeDescriptionPossible ValuesExample
default_accounts_to_fpmBoolean

Whether PHP-FPM is enabled for a server's new accounts and domains.

  • 1 — PHP-FPM enabled.
  • 0 — PHP-FPM disabled.
0