latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

PHP

Return system default PHP version

This function returns the system default PHP version.

Note:

This document only applies to systems that run EasyApache 4.

Important:

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

get/php_get_system_default_version

Response

HTTP Request was successful.

Example response

{
  "data": {
    "version": "ea-php56"
  },
  "metadata": {
    "command": "php_get_system_default_version",
    "reason": "Ok",
    "result": 1,
    "version": 1
  }
}