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

NGINX + PHP-FPM net::ERR_INCOMPLETE_CHUNKED_ENCODING #2100

Closed
apexJCL opened this Issue May 13, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@apexJCL

apexJCL commented May 13, 2017

Operating System Information:

Windows Build Number: 10.0.15063 (15063.296)
Windows Version: Windows 10 Home Single Language x64
Version: 1703

Issue:

Running an NGINX instance with PHP-FPM enabled gives a timeout and an error on console net::ERR_INCOMPLETE_CHUNKED_ENCODING

Steps to reproduce:

  1. Enable/Install WLS
  2. Update/Upgrade (apt update && apt upgrade)
  3. Install NGINX
  4. Install php-fpm
  5. Configure NGINX to use php7.0-fpmsocket and support index.php file
  6. Delete default index and create a new like following:

index.php

<?php
phpinfo();

Behavior:

After enabling both services (service nginx start and service php7.0-fpm start), entering address 127.0.0.1 or localhost renders the phpinfo() but keeps waiting for a request finish. Secods later, on console an error will appear that reads net::ERR_INCOMPLETE_CHUNKED_ENCODING

Accesing the default index.html works alright, so I assume it all relies on php-fpm side

@alekseymvt

This comment has been minimized.

Show comment
Hide comment
@alekseymvt

alekseymvt commented May 13, 2017

Check out my option
#1851 (comment)

@apexJCL

This comment has been minimized.

Show comment
Hide comment
@apexJCL

apexJCL May 14, 2017

@Line117 I already checked your answer, here's what I did:

TL:DR
Adding fastcgi_buffering off; as explained here did the trick, now pages are loading fast and smoothly.

  1. Install NGINX from stable releases (the same as you)
  2. From here on, doing this changes the default user, because installing from Ubuntu repos gives you www-data user, whereas installing from NGINX repos gives you nginx user.
  3. Install php-fpm
  4. In the nginx.conf file, add on the http block the line fastcgi_buffering off;.
  5. Restart nginx and php7.0-fpm service

I'd take a stake (blindly) and assume that the buffering issue it's due to disk access/filesystem related. I guess I can close this issue.

apexJCL commented May 14, 2017

@Line117 I already checked your answer, here's what I did:

TL:DR
Adding fastcgi_buffering off; as explained here did the trick, now pages are loading fast and smoothly.

  1. Install NGINX from stable releases (the same as you)
  2. From here on, doing this changes the default user, because installing from Ubuntu repos gives you www-data user, whereas installing from NGINX repos gives you nginx user.
  3. Install php-fpm
  4. In the nginx.conf file, add on the http block the line fastcgi_buffering off;.
  5. Restart nginx and php7.0-fpm service

I'd take a stake (blindly) and assume that the buffering issue it's due to disk access/filesystem related. I guess I can close this issue.

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