Return virtual host's PHP version

This function returns the PHP version of every virtual host that a reseller controls.

You can get the version of a single virtual host by providing an optional vhost name.

Note:

This document only applies to systems that run EasyApache 4.

Important:

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

SecurityBasicAuth
Request
query Parameters
vhost
string

The PHP Virtual Hostname.

Example: vhost=your-domain.test
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/LangPHP/php_get_vhost_versions
Request samples
uapi --output=jsonpretty \
  --user=username \
  LangPHP \
  php_get_vhost_versions
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "php_get_vhost_versions",
  • "module": "LangPHP",
  • "result": {
    • "data": [
      • {
        • "account": "blee",
        • "account_owner": "blee",
        • "documentroot": "/home/blee/public_html",
        • "homedir": "/home/blee",
        • "main_domain": 1,
        • "php_fpm": 1,
        • "php_fpm_pool_parms": {
          • "pm_max_children": 5,
          • "pm_max_requests": 20,
          • "pm_process_idle_timeout": 10
          },
        • "phpversion_source": [
          • {
            • "domain": "blee.com",
            • "system_default": 1
            }
          ],
        • "version": "ea-php72",
        • "vhost": "blee.com"
        }
      ],
    • "errors": null,
    • "messages": null,
    • "metadata": {
      • "transformed": 1
      },
    • "status": 1,
    • "warnings": null
    }
}