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

corestack_php_ini_test

Test a php.ini on the site.

Scope execNo secrets returned
On this page

When to use it

Try a candidate php.ini on the row's own PHP before saving it. The row's PHP starts once with the candidate and with every customer execution hook switched off (auto_prepend_file and the rest), so no site code runs; the answer is whether PHP started (completed), the warnings it printed while starting (startup) and the value it took for each directive the candidate sets (effective; a switched-off hook is reported as configured, measured: false). A php.ini with an error is refused and nothing runs. Nothing is saved. Needs exec.

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_php_ini_test with site_id 4211, custom_ini max_input_vars = 5000
realpath_cache_size = 8M
. (Test a php.ini on the site.) Tell me what it returned.

Inputs

custom_inistringRequired

The whole custom php.ini to test.

extensionsarray of strings

Draft extensions to test it with. Up to 200 items.

settingsobject

Draft form settings to test it with, {directive: value}.

site_idintegerRequired

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

Example call

tools/call
{
  "name": "corestack_php_ini_test",
  "arguments": {
    "site_id": 4211,
    "custom_ini": "max_input_vars = 5000\nrealpath_cache_size = 8M\n"
  }
}

If it is refused

ReasonWhat to do
ini_invalidThe php.ini has an error; details.diagnostics lists each one and nothing ran. Fix it (corestack_php_ini_validate) and try again.
runtime_not_adoptedThis environment does not run the runtime component yet, so a php.ini cannot be tested on it.
not_runningThe site is not running; start it first.
busyAnother change is running on the site; try again when it has finished.
managed_elsewhereAnother control panel manages this site.
switched_offRunning commands on sites is switched off at the moment.
upstream_unavailableThe test did not run to the end on the site; try again in a moment.
feature_offPHP configuration is not switched on in the Control Panel yet.
invalid_argumentsThe arguments do not match the tool's input schema, or the Control Panel refused a field. Fix the fields named in the answer and call again.
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