domains_set_php
Set the PHP version selector for a domain using the DirectAdmin panel's index. Provide the domain and selector value to assign the desired PHP version.
Instructions
Set the PHP version selector for a domain.
Args: domain: Domain. php1_select: Selector index from the panel (often '1', '2', … mapping to php versions). impersonate: Owning user. confirm: Required.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"domain": "<domain>",
"php1_select": "<php1_select>"
},
"name": "domains_set_php"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | ||
| confirm | No | ||
| impersonate | No | ||
| php1_select | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |