CorefinityCorefinityDocs
Open the Control PanelControl Panel
PHP settings · 2 of 6

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.

GET/api/corestack/sites/{site}/php-runtime/effective

Path parameters

siteintegerRequired

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
cliobjectRequired

The command line, measured on the site.

Fields
extensionsarray of objectsRequired
Fields of each item
namestringRequired
versionstring or nullRequired
iniarray of objectsRequired
Fields of each item
layerstringRequired

Where the value comes from, such as form, ini, pool, platform or image.

maskedboolean

True when the value is hidden because the directive holds a secret.

measuredbooleanRequired

True when the value was read from the running PHP, false when it was calculated.

namestringRequired
setboolean

Sent for a masked directive, to say whether it has a value.

valuestring or nullRequired
php_versionstring or nullRequired
fpmobjectRequired

The web side. Every value is calculated.

Fields
extensionsarray of objectsRequired
Fields of each item
namestringRequired
versionstring or nullRequired
iniarray of objectsRequired
Fields of each item
layerstringRequired

Where the value comes from, such as form, ini, pool, platform or image.

maskedboolean

True when the value is hidden because the directive holds a secret.

measuredbooleanRequired

True when the value was read from the running PHP, false when it was calculated.

namestringRequired
setboolean

Sent for a masked directive, to say whether it has a value.

valuestring or nullRequired
php_versionstring or nullRequired
read_atstringRequired

Format: date-time.

toolsarray of objectsRequired
Fields of each item
namestringRequired
versionstring or nullRequired
user_iniobjectRequired

The .user.ini in the site's document root, and what each of its lines does.

Fields
linesarray of objectsRequired

Each line with its directive, value, whether it is effective and why.

pathstring or nullRequired

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

StatusReasonWhat to do
401noneSend a valid token as Authorization: Bearer <token>.
403company_unavailableYour company is unavailable.
403scope_requiredUse a token with the scope named in scope.
403two_factor_requiredTurn on two-factor on your account, then send again.
404feature_offThis feature is not on for your organisation yet.
409not_runningThe 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.
409runtime_not_adoptedThis environment does not run the runtime component yet, so its effective PHP configuration cannot be read.
429rate_limitedWait for the seconds in Retry-After.
502upstream_unavailableA service the action depends on did not answer. Try again later.
503connect_failedThe cluster could not be reached.
503temporarily_unavailableThe Control Panel could not answer just now. Nothing was started; try again shortly.
503switched_offCorefinity 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"
{
  "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"
  }
}
Try it

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.

Was this helpful?
Open in ClaudeOpen in ChatGPT