chromephp icon indicating copy to clipboard operation
chromephp copied to clipboard

Premature end of script headers

Open nleroy opened this issue 11 years ago • 3 comments

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!

nleroy avatar Dec 12 '14 11:12 nleroy

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

marcing avatar Dec 15 '17 16:12 marcing

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;

Myke79 avatar Oct 30 '18 07:10 Myke79

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

rmirabelle avatar May 03 '21 20:05 rmirabelle