v1

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

Return PHP version's handler

This function returns a PHP version's assigned PHP handler.

Note:

This document only applies to systems that run EasyApache 4.

Important:

When you disable the WebServer role, the system disables this function. For more information, read our How to Use Server Profiles documentation.

get/LangPHP/php_get_domain_handler

Query parameters

type'home' | 'vhost' required
Example:vhost

The type of php.ini file.

  • home
  • vhost

Important:

  • If you set this parameter to vhost, you must also include the vhost parameter.
  • If you set this parameter to home, the system returns the system default PHP handler.
vhoststring domain
Example:clearly.com

The name of a virtual host.

Important:

If the type value is vhost, you must use this parameter.

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_domain_handler",
  "module": "LangPHP",
  "result": {
    "data": {
      "php_handler": "cgi"
    },
    "status": 1
  }
}