This function returns the PHP handlers on the system.
Important:
When you disable the Web Server role, the system disables this function.
version | string An installed PHP version.
Important: We deprecated PHP 5.6 and PHP 7.0 and will remove them in a future version. For more information, read our cPanel Deprecation Plan documentation. Example: version=ea-php72 |
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ php_get_handlers
{- "data": {
- "version_handlers": [
- {
- "available_handlers": [
- "cgi",
- "none",
- "suphp"
], - "current_handler": "suphp",
- "version": "ea-php72"
}
]
}, - "metadata": {
- "command": "php_get_handlers",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}