Premature end of script headers
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!
+1 I have this issue too in 2017. No clue how to increase the limit.
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;
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