Description

This function sets the default PHP version on the system.

Examples 




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




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




whmapi1 php_set_system_default_version version=ea-php70



{
   "data":{
   },
   "metadata":{
      "version":1,
      "reason":"Ok",
      "result":1,
      "command":"php_set_system_default_version"
   }
}




<result>
    <data/>
    <metadata>
        <version>1</version>
        <reason>Ok</reason>
        <result>1</result>
        <command>php_set_system_default_version</command>
    </metadata>
</result>



Parameters

ParameterTypeDescriptionPossible valuesExample
versionstring

Required

The version of PHP that you wish to set as the system's default.

ea-php70

Returns

This function only returns metadata.