Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FrankenPHP Configuration Instructions #9932

Draft
wants to merge 4 commits into
base: 11.x
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions octane.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,27 @@ services:

You may consult [the official FrankenPHP documentation](https://frankenphp.dev/docs/docker/) for more information on running FrankenPHP with Docker.

<a name="frankenphp-configuration"></a>
#### Configuring FrankenPHP with Laravel

When integrating FrankenPHP with Laravel, modifying `php.ini` settings requires placing the `php.ini` file in one of two locations: either the `/lib` directory or the same directory as the binary (by default, the project root).

To adjust PHP configuration, create a `php.ini` file in one of these locations and define your settings. For example, to increase the memory limit and file upload size, you can add the following to your `./php.ini` file:

```ini
# php.ini
memory_limit = 512M
upload_max_filesize = 100M
post_max_size = 100M
```

If you're using the Docker image, you must store your `php.ini` in the directory specified in the `$PHP_INI_DIR` environment variable. FrankenPHP will then scan and load configuration files from `$PHP_INI_DIR/*.ini`.

For more details, refer to the [FrankenPHP configuration documentation](https://frankenphp.dev/docs/config/).

> [!NOTE]
> After making changes to `php.ini`, restart your FrankenPHP worker for the updates to take effect.

<a name="roadrunner"></a>
### RoadRunner

Expand Down