Skip to content

FrankenPHP Octane Cannot Update "Max Execution Time" #657

Closed as not planned

Description

@luchtech

Steps To Reproduce

  1. Create a new Laravel app with just the FrankenPHP + PHP 8.5 + Octane + SQLite setup.
  2. Add these to the docker-compose.dev.yml specifically on the php service.
    environment:
      PHP_POST_MAX_SIZE: "1024M"
      PHP_UPLOAD_MAX_FILE_SIZE: "1024M"
      PHP_MAX_EXECUTION_TIME: "900"
      REQUEST_MAX_EXECUTION_TIME: "900"
  1. As you can see, the execution time should be set to 900. Expectation would be it will timeout after 15 minutes. You can lower this value to 3 minutes if you want.
  2. Run spin up -d to start the app.
  3. Run artisan install:api to add the routes/api.php file. Then add a route like so:
// Added a 31-second sleep to test if the 30s default is changed.
Route::get('31-seconds', function () {
    sleep(31);
    return response()->json([
        'message' => 'Hello World'
    ]);
});
  1. Open any browser and open this URL: https://laravel.dev.test/api/31-seconds
  2. You should see this error:
Image

Outcome

What did you expect?

It should override the 30s default max timeout.

What happened instead?

It's not overriding the max timeout.

Affected Docker Images

FrankenPHP variants probably

Anything else?

No response

Activity

  1. added
    🧐 Bug: Needs Confirmation
    on Feb 17, 2026
  2. luchfirearmland commented on Feb 18, 2026

    @luchfirearmland

    Hi! This is now resolved. So it turned out that it was Laravel Octane that decides the max_execution_time. To solve this issue, you should publish the octane.php config file first via artisan vendor:publish, then you should look for the max_execution_time and update it.

    Image
  3. jaydrogers commented on Sep 10, 2026

    @jaydrogers
    Member

    Just adding a note this is related to this discussion and requires a feature enhancement:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🧐 Bug: Needs Confirmation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions