Return installed PHP versions

This function returns the installed PHP versions on a server.

Note:

This document only applies to systems that run EasyApache 4.

Important:

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

Authorizations:

Responses

Response Schema: application/json
object
object

Request samples

whmapi1 php_get_installed_versions

Response samples

Content type
application/json
{
  • "data": {
    • "versions": [
      • "ea-php74"
      ]
    },
  • "metadata": {
    • "command": "php_get_installed_versions",
    • "reason": "Ok",
    • "result": 1,
    • "version": 1
    }
}