This function creates an EasyApache 4 profile. This function only writes files to the /etc/cpanel/ea4/profiles/custom/
directory.
Important:
When you disable the Web Server role, the system disables this function.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ ea4_save_profile \ filename='new_profile.json' \ name='New Profile' \ pkg='ea-apache24' pkg='ea-apache24-foo'
{- "data": {
- "already_exists": 1,
- "path": "/etc/cpanel/ea4/profiles/custom/new_profile.json"
}, - "metadata": {
- "command": "ea4_save_profile",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}