Page tree

Versions Compared

Key

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

Description

Excerpt

This function migrates your system from EasyApache 3 (EA3) to EasyApache 4 (EA4).

 To do this, the function calls the  /usr/local/cpanel/scripts/migrate_ea3_to_ea4 script with the --yrun, and --skip-blockers flags.

Panel
bgColor#F2F2F2
borderStylenone

Examples 


Panel
bgColor#FFFFFF
borderStylenone


Expand
titleJSON API


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



Expand
titleXML API


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



Expand
titleCommand Line


Code Block
languagebash
whmapi1 ea4_migration



Expand
titleOutput (JSON)


Code Block
languagetext
linenumberstrue
{  
   "data":{  
      "build":10111
   },
   "metadata":{  
      "version":1,
      "reason":"OK",
      "result":1,
      "command":"ea4_migration"
   }
}



Expand
titleOutput (XML)


Code Block
languagetext
linenumberstrue
<result>
    <data>
        <build>10111</build>
    </data>
    <metadata>
        <version>1</version>
        <reason>OK</reason>
        <result>1</result>
        <command>ea4_migration</command>
    </metadata>
</result> 


Include Page
LIB:_WHMAPIShellNote
LIB:_WHMAPIShellNote


Parameters

This function does not accept parameters.

Note
titleNote:

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

Code Block
whmapi1 ea4_migration revert



Returns

ReturnTypeDescriptionPossible valuesExample
buildinteger

A valid Process ID (PID).

An integer value. 10111