Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Premature end of script headers #1269

Closed
nleroy opened this issue Dec 12, 2014 · 6 comments
Closed

Premature end of script headers #1269

nleroy opened this issue Dec 12, 2014 · 6 comments

Comments

@nleroy
Copy link

nleroy commented Dec 12, 2014

Hi

I have a puphpet box with apache2 and mod_proxy_fcgi. When running my web application, I get this error in the logs: "Premature end of script headers"
Any idea what the problem could be? Is it a memory problem? What conf or parameter to change/add?

Thanks for your input!

@nleroy
Copy link
Author

nleroy commented Dec 12, 2014

Weird, I was looking into timeouts or memory. But it appears to be a browser problem. In Firefox and safari it works. In chrome I get the a white page in the browser and in the logs the "Premature end of script headers" error...

@nleroy
Copy link
Author

nleroy commented Dec 12, 2014

I'll have to investigate the code of the application.

@nleroy nleroy closed this as completed Dec 12, 2014
@nleroy
Copy link
Author

nleroy commented Dec 12, 2014

Found the problem:
It is due to chrome logger. It adds extra info to the http headers. That's why the application crashed with chrome and not with the other browsers. Any idea what setting I have to change to increase memory or http header?

@nleroy nleroy reopened this Dec 12, 2014
@nleroy
Copy link
Author

nleroy commented Dec 12, 2014

There some more info in these issues:
ccampbell/chromephp#10
symfony/symfony#8413

For NGINX it is fixed with these two parameters in nginx.conf:
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;

But how to fix this with apache2?

@jtreminio
Copy link
Member

I'm not exactly sure. Someone more versed in Apache would need to help out here.

@jtreminio
Copy link
Member

Apache has been completely refactored via 8525b77

Note: mod_php support has been completely dropped, but your configs are now infinitely more customizable.

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

No branches or pull requests

2 participants