Child pages
  • WHM API 1 Functions - php_get_default_accounts_to_fpm

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Excerpt

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

Include Page
LIB:_PHP-FPMRAMWarning76
LIB:_PHP-FPMRAMWarning76

Multiexcerpt include
SpaceWithExcerptcom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@12665
MultiExcerptNameAPIDisabledWebServerRole
PageWithExcerptLIB:_ServerRoleDisabledAPI

Panel
bgColor#F2F2F2
borderStylenone

Examples


Panel
bgColor#FFFFFF
borderStylenone


Expand
titleJSON API


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



Expand
titleXML API


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



Expand
titleCommand Line


Code Block
languagebash
whmapi1 php_get_default_accounts_to_fpm

Include Page
LIB:_WHMAPI1CLINote
LIB:_WHMAPI1CLINote


Expand
titleOutput (JSON)


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



Expand
titleOutput (XML)


Code Block
languagetext
linenumberstrue
<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>


Include Page
LIB:_WHMAPIShellNote
LIB:_WHMAPIShellNote


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