Description

This function sets a PHP version's handler.

Examples 




https://hostname.example.com:2087/cpsess##########/json-api/php_set_handler?api.version=1&version=ea-php70&handler=suphp




https://hostname.example.com:2087/cpsess##########/xml-api/php_set_handler?api.version=1&version=ea-php70&handler=suphp




whmapi1 php_set_handler version=ea-php70 handler=suphp



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




<result>
    <data/>
    <metadata>
        <version>1</version>
        <reason>OK</reason>
        <result>1</result>
        <command>php_set_handler</command>
    </metadata>
</result>



Parameters

ParameterTypeDescriptionPossible valuesExample

version

string

Required

An installed PHP version.

ea-php70
handlerstring

Required

An installed PHP handler.

  • cgi
  • suphp
  • dso
  • none
suphp

Returns

This function returns only metadata.