---
title: "corestack_php_effective_get"
url: https://docs.corefinity.com/mcp/tools/corestack_php_effective_get
type: tool
last_updated: 2026-11-13
feature: php-settings
related:
  - https://docs.corefinity.com/api/reference/runtime/get-php-effective-configuration.md
  - https://docs.corefinity.com/guides/sites/software-and-services/php-settings-and-php-ini.md
---
# corestack_php_effective_get

**Effective PHP configuration.** The PHP configuration a row really runs: the command line measured with no site code run, the FPM side and the .user.ini calculated, extensions and tool versions, secrets masked by name. Scope: read.

- Scope: `read`
- Runs as a task: no

## When to use it

See the PHP configuration a row really runs: the command line's values measured by a fixed probe with every customer execution hook switched off (each hook reported as configured, `measured: false`), the FPM side and the document root's .user.ini calculated, the extensions and tool versions. Sensitive directives (licence keys, passwords) are masked by name, and phpinfo() is never run. Use it to check what a saved change took.

## Inputs

- `site_id` (integer, ≥ 1, required): The row: the site or one of its environments.

### Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "site_id": {
      "description": "The row: the site or one of its environments.",
      "minimum": 1,
      "type": "integer"
    }
  },
  "required": [
    "site_id"
  ],
  "type": "object"
}
```

## Refusals

- `runtime_not_adopted`: this environment does not run the runtime component yet.
- `not_running`: the site is not running; start it first.
- `switched_off`: running commands on sites is switched off at the moment.
- `upstream_unavailable`: the site's PHP could not be read; try again in a moment.
- The refusals every tool can answer: `invalid_arguments`, `tenant_mismatch`, `scope_required`, `pin_refused`, `rate_limited`, `temporarily_unavailable`, `internal_error` (corestack://guides/how-this-server-works).

## Example

```json
{
  "name": "corestack_php_effective_get",
  "arguments": {
    "site_id": 4211
  }
}
```

## Prompt

```text
Using the Corefinity MCP server, call corestack_php_effective_get with site_id 4211. (Effective PHP configuration.) Tell me what it returned.
```

## The same task elsewhere

- Endpoint: [GET /api/corestack/sites/{site}/php-runtime/effective](https://docs.corefinity.com/api/reference/runtime/get-php-effective-configuration.md)
- Guide: [PHP configuration](https://docs.corefinity.com/guides/sites/software-and-services/php-settings-and-php-ini.md)
