v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
LangPHP
PHP Settings

Return installed PHP versions

This function lists the system's PHP versions.

Note:

This document only applies to systems that run EasyApache 4.

Important:

When you disable the WebServer role, the system disables this function.

get/LangPHP/php_get_installed_versions

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "php_get_installed_versions",
  "module": "LangPHP",
  "result": {
    "data": {
      "versions": [
        "ea-php72"
      ]
    },
    "status": 1
  }
}