Child pages
  • WHM API 1 Functions - php_set_old_fpm_flag

Versions Compared

Key

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

Description

Excerpt

This function determines whether your system runs with a preconfigured PHP-FPM configuration.


Note
titleNote:

This is a simple action that does not contain input parameters. This sets the /etc/cpanel/ea4/old_fpm_flag touch file. If this touch file exists, the system will not display a message that indicates whether your system runs on an outdated PHP-FPM configuration. If you wish to see the message again, delete this touch file.

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_set_old_fpm_flag?api.version=1



Expand
titleXML API


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



Expand
titleCommand Line


Code Block
languagebash
whmapi1 php_set_old_fpm_flag

Include Page
LIB:_WHMAPI1CLINote
LIB:_WHMAPI1CLINote


Expand
titleOutput (JSON)


Code Block
languagetext
linenumberstrue
{  
   "data":{  
      "success":1
   },
   "metadata":{  
      "result":1,
      "version":1,
      "command":"php_set_old_fpm_flag",
      "reason":"OK"
   }
}



Expand
titleOutput (XML)


Code Block
languagetext
linenumberstrue
<result>
    <metadata>
        <result>1</result>
        <reason>OK</reason>
        <command>php_set_old_fpm_flag</command>
        <version>1</version>
    </metadata>
    <data>
        <success>1</success>
    </data>
</result> 


Include Page
LIB:_WHMAPIShellNote
LIB:_WHMAPIShellNote


Parameters

This function does not accept parameters.

Returns

ReturnTypeDescriptionPossible valuesExample

success

Boolean

Whether the operation succeeds.

  • 0 — Success.
  • 1 — Failure.

0