Get what PHP runs with
Answers the values PHP runs with on the site: the command line measured on the site, the web side and any .user.ini calculated, with directives that hold secrets masked by name. The site must be on the runtime and running. Try-it is off because the read runs a command on the site.
Path parameters
The id of a site row. A website's production site and each of its environments has its own id. Digits only. At least 1.
Returns
200 The effective configuration.
Fields of the 200 answer
The command line, measured on the site.
Fields
Fields of each item
Fields of each item
Where the value comes from, such as form, ini, pool, platform or image.
True when the value is hidden because the directive holds a secret.
True when the value was read from the running PHP, false when it was calculated.
Sent for a masked directive, to say whether it has a value.
The web side. Every value is calculated.
Fields
Fields of each item
Fields of each item
Where the value comes from, such as form, ini, pool, platform or image.
True when the value is hidden because the directive holds a secret.
True when the value was read from the running PHP, false when it was calculated.
Sent for a masked directive, to say whether it has a value.
Format: date-time.
Fields of each item
The .user.ini in the site's document root, and what each of its lines does.
Fields
Each line with its directive, value, whether it is effective and why.
Where the file is, from the site's folder. Null, with no lines, when the site's document root could not be worked out from how its files are laid out.
If it is refused
| Status | Reason | What to do |
|---|---|---|
401 | none | Send a valid token as Authorization: Bearer <token>. |
403 | company_unavailable | Your company is unavailable. |
403 | scope_required | Use a token with the scope named in scope. |
403 | two_factor_required | Turn on two-factor on your account, then send again. |
404 | feature_off | This feature is not on for your organisation yet. |
409 | not_running | The site, environment or deployment is not running. Read the message: where it can be started or will recover, start it or wait, then try again. |
409 | runtime_not_adopted | This environment does not run the runtime component yet, so its effective PHP configuration cannot be read. |
429 | rate_limited | Wait for the seconds in Retry-After. |
502 | upstream_unavailable | A service the action depends on did not answer. Try again later. |
503 | connect_failed | The cluster could not be reached. |
503 | temporarily_unavailable | The Control Panel could not answer just now. Nothing was started; try again shortly. |
503 | switched_off | Corefinity has switched this action off for the moment. Try again later. |
Reasons are listed by name in Errors and refusals.
The same task elsewhere
curl https://manage.corefinity.com/api/corestack/sites/1042/php-runtime/effective \
-H "Authorization: Bearer $COREFINITY_TOKEN" \
-H "Accept: application/json"use Illuminate\Support\Facades\Http;
$response = Http::withToken(env('COREFINITY_TOKEN'))
->acceptJson()
->get('https://manage.corefinity.com/api/corestack/sites/1042/php-runtime/effective');
$data = $response->json();const res = await fetch('https://manage.corefinity.com/api/corestack/sites/1042/php-runtime/effective', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.COREFINITY_TOKEN}`,
Accept: 'application/json',
},
});
// An answer with no body (204) has nothing to parse.
const text = await res.text();
const data = text && JSON.parse(text);import os
import requests
res = requests.get(
"https://manage.corefinity.com/api/corestack/sites/1042/php-runtime/effective",
headers={
"Authorization": f"Bearer {os.environ['COREFINITY_TOKEN']}",
"Accept": "application/json",
},
)
data = res.json() if res.content else None{
"cli": {
"extensions": [
{
"name": "Core",
"version": "8.4.13"
},
{
"name": "redis",
"version": "6.3.0"
}
],
"ini": [
{
"layer": "image",
"measured": false,
"name": "auto_prepend_file",
"value": ""
},
{
"layer": "platform",
"measured": false,
"name": "display_errors",
"value": ""
},
{
"layer": "image",
"measured": true,
"name": "max_execution_time",
"value": "0"
},
{
"layer": "form",
"measured": true,
"name": "max_input_vars",
"value": "20000"
},
{
"layer": "form",
"measured": true,
"name": "memory_limit",
"value": "512M"
},
{
"layer": "ini",
"measured": true,
"name": "realpath_cache_size",
"value": "8M"
},
{
"layer": "image",
"measured": false,
"name": "session.auto_start",
"value": "0"
},
{
"layer": "form",
"measured": true,
"name": "upload_max_filesize",
"value": "256M"
}
],
"php_version": "8.4.13"
},
"fpm": {
"extensions": [
{
"name": "Core",
"version": "8.4.13"
},
{
"name": "redis",
"version": "6.3.0"
}
],
"ini": [
{
"layer": "image",
"measured": false,
"name": "auto_prepend_file",
"value": ""
},
{
"layer": "pool",
"measured": false,
"name": "display_errors",
"value": ""
},
{
"layer": "form",
"measured": false,
"name": "max_execution_time",
"value": "300"
},
{
"layer": "form",
"measured": false,
"name": "max_input_vars",
"value": "20000"
},
{
"layer": "form",
"measured": false,
"name": "memory_limit",
"value": "512M"
},
{
"layer": "ini",
"measured": false,
"name": "realpath_cache_size",
"value": "8M"
},
{
"layer": "image",
"measured": false,
"name": "session.auto_start",
"value": "0"
},
{
"layer": "form",
"measured": false,
"name": "upload_max_filesize",
"value": "256M"
}
],
"php_version": "8.4.13"
},
"read_at": "2026-11-09T21:35:22Z",
"tools": [
{
"name": "7-Zip",
"version": "25.01"
},
{
"name": "avifenc",
"version": "1.2.1"
}
],
"user_ini": {
"lines": [],
"path": "htdocs/.user.ini"
}
}{
"message": "Unauthenticated."
}{
"code": "company_unavailable",
"message": "Your company is unavailable.",
"reason": "company_unavailable"
}{
"code": "feature_off",
"message": "Not found.",
"reason": "feature_off"
}{
"code": "not_running",
"message": "The site is not running",
"reason": "not_running"
}{
"code": "rate_limited",
"message": "Too many requests. Try again in 60 seconds.",
"reason": "rate_limited",
"retry_after_seconds": 60
}{
"code": "upstream_unavailable",
"message": "PHP's configuration could not be read from the pod. Try again in a moment.",
"reason": "upstream_unavailable"
}{
"code": "connect_failed",
"message": "The cluster could not be reached",
"reason": "connect_failed"
}Try it is off for this endpointIt has not been cleared for the console. Copy the request and run it yourself when you are sure.