Child pages
  • WHM API 1 Functions - ea4_migration
Skip to end of metadata
Go to start of metadata

Description

This function migrates your system from EasyApache 3 to EasyApache 4. To do this, the function calls the  /usr/local/cpanel/scripts/migrate_ea3_to_ea4 script with the --yrun, and --skip-blockers flags.

Important:

In cPanel & WHM version 76 and later, when you disable the WebServer role, the system disables this function. For more information, read our How to Use Server Profiles documentation.

Examples 


 JSON API
https://hostname.example.com:2087/cpsess##########/json-api/ea4_migration?
api.version=1
 XML API
https://hostname.example.com:2087/cpsess##########/xml-api/ea4_migration?
api.version=1 
 Command Line
whmapi1 ea4_migration
 Output (JSON)
{  
   "data":{  
      "build":10111
   },
   "metadata":{  
      "version":1,
      "reason":"OK",
      "result":1,
      "command":"ea4_migration"
   }
}
 Output (XML)
<result>
    <data>
        <build>10111</build>
    </data>
    <metadata>
        <version>1</version>
        <reason>OK</reason>
        <result>1</result>
        <command>ea4_migration</command>
    </metadata>
</result> 


Note:

Use WHM's API Shell interface (WHM >> Home >> Development >> API Shell) to directly test WHM API calls.

Parameters

This function does not accept parameters.

Note:

To revert your server from EA4 to EA3, call this function with the revert option. For example:

whmapi1 ea4_migration revert

Returns

ReturnTypeDescriptionPossible valuesExample
buildinteger

A valid Process ID (PID).

An integer value.10111