CorefinityCorefinityDocs
Open the Control PanelControl Panel
PHP and runtime · 1 of 22

corestack_php_version_change

Change the PHP version.

Scope writeRuns as a taskNo secrets returnedCoreCluster
On this page

When to use it

Move a row to another PHP minor from corestack_php_runtime_get's versions, now or tonight. A change the version needs acknowledged is refused with ack_required naming what to acknowledge.

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_php_version_change with site_id 4211, to 8.4. (Change the PHP version.) Tell me what it returned.

Inputs

acknowledgearray of strings

What ack_required named, once you have told the person. Up to 4 items.

eolapp_constraintextensions_offini_incompatible
applystring

now (the default), or tonight in the row's maintenance window. window: the row's next maintenance window (tonight is kept as its alias). Defaults to now.

nowwindowtonight
site_idintegerRequired

The row: the site or one of its environments. At least 1.

tostringRequired

The PHP minor, e.g. 8.4.

Example call

tools/call
{
  "name": "corestack_php_version_change",
  "arguments": {
    "site_id": 4211,
    "to": "8.4"
  }
}

If it is refused

ReasonWhat to do
invalid_argumentsto is not one of the minors this row is offered (corestack_php_runtime_get lists them; an end-of-life minor is offered only while Corefinity allows end-of-life versions).
ack_requiredThe change needs the person's acknowledgements first; details.required names the keys and details.detail their sentences; tell the person, then call again with them in acknowledge.
ini_invalidThe custom php.ini has a line the new minor does not accept; details.diagnostics lists them; fix the file with corestack_php_ini_update first.
feature_offapply: "tonight" needs the maintenance window queue, which is switched off; leave apply out to make the change now.
change_pendingA change is already queued for this row's maintenance window; apply or cancel it first (corestack_pending_changes_list).
busyAnother change is running on this row; wait for it (corestack_site_operation_get) and call again.
not_availableThis row's PHP version is not managed here; stop.
removedThe row has been removed.
managed_elsewhereAnother control panel manages this site, so use that control panel for it. This is refused before anything else about the site, as in the Control Panel and the API. Nothing was done.
image_not_offeredThe PHP version this change needs is not one Corefinity offers right now (withdrawn, or not published yet). Nothing was changed; send it again once Corefinity offers that version.
tenant_mismatchThe object does not exist or the token may not see it. Check the id.
scope_requiredThe token lacks a scope this call needs. Open the link in the answer to add it, then call again.
pin_refusedThe grant is limited to chosen clusters, sites or environments, and this call is outside them. Open the link in the answer to widen it.
rate_limitedToo many calls. Wait for the number of seconds the answer names.
temporarily_unavailableThe Control Panel could not answer just now. Nothing was started; try again shortly.
internal_errorSomething went wrong on our side. Quote the trace id to support.

The same task elsewhere

Was this helpful?
Open in ClaudeOpen in ChatGPT