Description

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


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.

Examples




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




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




whmapi1 php_set_old_fpm_flag



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




<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> 



Parameters

This function does not accept parameters.

Returns

ReturnTypeDescriptionPossible valuesExample

success

Boolean

Whether the operation succeeds.

  • 0 — Success.
  • 1 — Failure.

0