Skip to content

Questions about Nginx FastCGI timeout Settings #482

@zhkugh

Description

@zhkugh

Steps To Reproduce

  1. Send a long-running request.
  2. Observe the 504 timeout error.

Outcome

What did you expect?

I hope to receive suggestions on how to better adjust the Nginx and PHP-FPM configurations to handle long-running requests.

What happened instead?

504 Gateway Time-out

Affected Docker Images

serversideup/php:8.1-fpm-nginx

Anything else?

` # Pass "*.php" files to PHP-FPM
location ~ .php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass 127.0.0.1:9000;

    # Timeout Setting
    fastcgi_connect_timeout 180s;
    fastcgi_send_timeout 180s;
    fastcgi_read_timeout 180s;
}`

Metadata

Metadata

Assignees

Labels

🧐 Bug: Needs ConfirmationSomething isn't working, but needs to be confirmed by a team member.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions