Skip to content

Commit

Permalink
docs: PHP configuration guide (#486)
Browse files Browse the repository at this point in the history
* docs: php configuration guide

* Update config.md

---------

Co-authored-by: Kévin Dunglas <[email protected]>
  • Loading branch information
ochorocho and dunglas authored Jan 20, 2024
1 parent b624a13 commit 2ef7762
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ other.example.com {
...
```

Using the `php_server` directive is generaly what you need,
Using the `php_server` directive is generally what you need,
but if you need full control, you can use the lower level `php` directive:

Using the `php_server` directive is equivalent to this configuration:
Expand Down Expand Up @@ -139,6 +139,12 @@ Unlike with FPM and CLI SAPIs, environment variables are **not** exposed by defa

To propagate environment variables to `$_SERVER` and `$_ENV`, set the `php.ini` `variables_order` directive to `EGPCS`.

## PHP config

To load [additional PHP configuration files](https://www.php.net/manual/en/configuration.file.php#configuration.file.scan),
the `PHP_INI_SCAN_DIR` environment variable can be used.
When set, PHP will load all the file with the `.ini` extension present in the given directories.

## Enable the Debug Mode

When using the Docker image, set the `CADDY_GLOBAL_OPTIONS` environment variable to `debug` to enable the debug mode:
Expand Down

0 comments on commit 2ef7762

Please sign in to comment.