corestack_ php_ ini_ test
Test a php.ini on the site.
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
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
The whole custom php.ini to test.
Draft extensions to test it with. Up to 200 items.
Draft form settings to test it with, {directive: value}.
The row: the site or one of its environments. At least 1.
Example 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
| Reason | What to do |
|---|---|
ini_invalid | The php.ini has an error; details.diagnostics lists each one and nothing ran. Fix it (corestack_php_ini_validate) and try again. |
runtime_not_adopted | This environment does not run the runtime component yet, so a php.ini cannot be tested on it. |
not_running | The site is not running; start it first. |
busy | Another change is running on the site; try again when it has finished. |
managed_elsewhere | Another control panel manages this site. |
switched_off | Running commands on sites is switched off at the moment. |
upstream_unavailable | The test did not run to the end on the site; try again in a moment. |
feature_off | PHP configuration is not switched on in the Control Panel yet. |
invalid_arguments | The 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_mismatch | The object does not exist or the token may not see it. Check the id. |
scope_required | The token lacks a scope this call needs. Open the link in the answer to add it, then call again. |
pin_refused | The 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_limited | Too many calls. Wait for the number of seconds the answer names. |
temporarily_unavailable | The Control Panel could not answer just now. Nothing was started; try again shortly. |
internal_error | Something went wrong on our side. Quote the trace id to support. |