latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

PHP

Update default PHP version

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

  • ea-php81
  • inherit
  • Any custom PHP package name.

Important:

When you disable the Web Server role, the system disables this function.

get/php_set_system_default_version

Query parameters

versionstring required
Example:ea-php81

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

Response

HTTP Request was successful.

Example response

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