latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

EasyApache
EasyApache Settings

Create EasyApache 4 profile

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.

get/ea4_save_profile

Query parameters

filenamestring required
Example:new_profile.json

The profile's file name.

namestring required
Example:New Profile

The profile's display name.

pkgstring[] required

The packages that the profile contains.

[
  "ea-apache24",
  "ea-apache24-foo"
]
descstring
Example:This is my new profile.

The description of the profile.

overwrite0 | 1
Example:1

Whether to overwrite the file, if it exists.

  • 1 — Overwrite the file.
  • 0 — Do not overwrite the file.
tagstring[]

Tags that are appropriate for the profile.

[
  "Apache 2.4",
  "Optimized for static content"
]
versionstring
Example:1.3

The profile's version number.

Response

HTTP Request was successful.

Example response

{
  "data": {
    "already_exists": 1,
    "path": "/etc/cpanel/ea4/profiles/custom/new_profile.json"
  },
  "metadata": {
    "command": "ea4_save_profile",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}