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.
Example response
{
"apiversion": 3,
"func": "php_get_domain_handler",
"module": "LangPHP",
"result": {
"data": {
"php_handler": "cgi"
},
"status": 1
}
}