Change PHP version
site_set_php_versionSwitch a site to another installed PHP version on aaPanel. Verify extensions afterward, as some may be missing in the target version.
Instructions
Switch a site to another installed PHP version. Extensions available in one version may be missing in another, so verify afterwards.
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": {
"siteName": "<siteName>",
"version": "<version>"
},
"name": "site_set_php_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | Yes | Target PHP version from site_php_versions. | |
| siteName | Yes | Primary domain of the site. |