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

Premature end of script headers #46

Open
nleroy opened this issue Dec 12, 2014 · 3 comments
Open

Premature end of script headers #46

nleroy opened this issue Dec 12, 2014 · 3 comments

Comments

@nleroy
Copy link

nleroy commented Dec 12, 2014

Just as #10 I get problem with the headers. My stack: apache2, mod_proxy_fcgi, php-fpm.
The application crashes with a white screen and in the logs I see "Premature end of script headers". When disabling chromelogger, everything works fine.

Does anyone know which setting I should change in my setup (apache 2, mod_proxy_fcgi, php-fpm) to allow the bigger http headers?

Thanks!

@marcing
Copy link

marcing commented Dec 15, 2017

+1
I have this issue too in 2017. No clue how to increase the limit.

@Myke79
Copy link

Myke79 commented Oct 30, 2018

Same issue here in 2018, but found no way to increase the limit on apache2.
The only solution is to switch to nginx, and then you can tune up the header limits with nginx config:

fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;

@rmirabelle
Copy link

2021 Same issue, tried updating to 4.1.1 with HEADER_LIMIT constant set and _shrinkLog function. Also tried setting every Apache directive I could find to insane values:

LimitRequestBody 100000000000
LimitRequestLine 100000000000
LimitRequestFieldSize 100000000000

None of these settings has any effect. Attempting to debug a list of objects that would produce a longer HTTP header fail with 500 and apache log reporting Premature end of script headers: php-cgi.exe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants