Child pages
  • WHM API 1 Functions - php_get_default_accounts_to_fpm
Skip to end of metadata
Go to start of metadata

 

Description

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

 

 

Examples


 JSON API
https://hostname.example.com:2087/cpsess##########/json-api/php_get_default_accounts_to_fpm?api.version=1
 XML API
https://hostname.example.com:2087/cpsess##########/xml-api/php_get_default_accounts_to_fpm?api.version=1
 Command Line
whmapi1 php_get_default_accounts_to_fpm


Notes:

  • You must URI-encode values.
  • For more information and additional output options, read our Guide to WHM API 1 documentation or run the whmapi1 --help command. 

 Output (JSON)
{
   "data" : {
      "default_accounts_to_fpm" : 0
   },
   "metadata" : {
      "command" : "php_get_default_accounts_to_fpm",
      "version" : 1,
      "result" : 1,
      "reason" : "OK"
   }
}
 Output (XML)
<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>


Note:

Use WHM's API Shell interface (WHM >> Home >> Development >> API Shell) to directly test WHM API calls.

   

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
  • No labels