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.
uapi --output=jsonpretty \ --user=username \ LangPHP \ php_get_domain_handler \ type='vhost'
{- "apiversion": 3,
- "func": "php_get_domain_handler",
- "module": "LangPHP",
- "result": {
- "data": {
- "php_handler": "cgi"
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}