This function lists the virtual hosts that use a specified version of PHP.
Note:
This document only applies to systems that run EasyApache 4.
Important:
When you disable the Web Server role, the system disables this function.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ php_get_vhosts_by_version \ version='ea-php56'
{- "data": {
- "vhosts": [
- "example.com"
]
}, - "metadata": {
- "command": "php_get_vhosts_by_version",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}