reference appendices

`php.ini` Directives

php.ini directives control runtime behaviour including errors, limits, sessions, uploads, paths, and extensions. Values may differ between CLI, FPM pools, web servers, containers, and hosted environments.

Use This Reference When

  • Comparing local CLI behaviour with web requests.
  • Checking whether a directive is changeable at runtime.
  • Recording production settings as deployment configuration.

Inspect Selected Settings

PHP example
<?php

foreach (['memory_limit', 'display_errors', 'log_errors'] as $name) {
    echo $name . '=' . ini_get($name) . PHP_EOL;
}

// Prints values from the active configuration.

Use php --ini, php -i, or a controlled diagnostic endpoint to identify the active configuration. Do not expose full production diagnostics publicly.

Practice

Compare Runtime Contexts

Check the CLI memory_limit and active INI file. Record why FPM may use a different value.

Show solution

Run php --ini and php -r "echo ini_get(\"memory_limit\"), PHP_EOL;". FPM can load a different configuration or pool overrides.