This function sets a virtual host's PHP version.
Note:
This document only applies to systems that run EasyApache 4.
Important:
When you disable the WebServer role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ LangPHP \ php_set_vhost_versions \ version='ea-php72' \ vhost='example.com'
{- "apiversion": 3,
- "func": "php_set_vhost_versions",
- "module": "LangPHP",
- "result": {
- "data": {
- "vhosts": [
- "example.com"
]
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}