My apache server is sending incomplete and corrupted content to browser. 95% of responses are not correct, by estimation. It seems like apache sends some part (of random or relative length) of requested data and then it sends duplicate of response.
How does it look like?
Let's say I am requesting jquery.js file. Some part of file is sent to browser, then there are headers data of response and then is content of the file from beginning. Content data ends when filesize (content-length of first response) is reached.
Here is a picture for visualisation
This happens with almost everything what is meant to be send to browser including content generated by PHP. At first I thought only larger files are corrupted (like 83kB jquery file) but HTML content generated by PHP is damaged too and its size is not larger than 10kB.
When response for HTML content is damaged, content is downloading for next 5 seconds after displayed content is downloaded and console in chrome webdeveloper tools says:
net::ERR_INCOMPLETE_CHUNKED_ENCODING
When has it started?
Everything was OK for almost month (since wampserver installation). Last known change in computer, before I noticed the problem, was installation of Python27 with PIP and Hyde tools.
How can I fix it? I have been looking into it since yesterday morning and I am still far far away from solution.
Thanks for any help
edit:
Sample from apache error log (today). I did restart manually.
[Sat Mar 21 10:22:46.519391 2015] [mpm_winnt:notice] [pid 1760:tid 532] AH00455: Apache/2.4.9 (Win64) PHP/5.5.12 configured -- resuming normal operations
[Sat Mar 21 10:22:46.534418 2015] [mpm_winnt:notice] [pid 1760:tid 532] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:42:59
[Sat Mar 21 10:22:46.535402 2015] [core:notice] [pid 1760:tid 532] AH00094: Command line: 'C:\\Program Files\\wamp\\bin\\apache\\apache2.4.9\\bin\\httpd.exe -d C:/Program Files/wamp/bin/apache/apache2.4.9'
[Sat Mar 21 10:22:46.538403 2015] [mpm_winnt:notice] [pid 1760:tid 532] AH00418: Parent: Created child process 5612
[Sat Mar 21 10:22:46.857571 2015] [mpm_winnt:notice] [pid 5612:tid 452] AH00354: Child: Starting 64 worker threads.
[Sat Mar 21 10:27:52.586368 2015] [mpm_winnt:notice] [pid 1760:tid 532] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Sat Mar 21 10:27:54.588487 2015] [mpm_winnt:notice] [pid 5612:tid 452] AH00364: Child: All worker threads have exited.
[Sat Mar 21 10:27:54.628495 2015] [mpm_winnt:notice] [pid 1760:tid 532] AH00430: Parent: Child process 5612 exited successfully.
[Sat Mar 21 10:32:45.603700 2015] [mpm_winnt:notice] [pid 4732:tid 532] AH00455: Apache/2.4.9 (Win64) PHP/5.5.12 configured -- resuming normal operations
[Sat Mar 21 10:32:45.604701 2015] [mpm_winnt:notice] [pid 4732:tid 532] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:42:59
[Sat Mar 21 10:32:45.604701 2015] [core:notice] [pid 4732:tid 532] AH00094: Command line: 'C:\\Program Files\\wamp\\bin\\apache\\apache2.4.9\\bin\\httpd.exe -d C:/Program Files/wamp/bin/apache/apache2.4.9'
[Sat Mar 21 10:32:45.607701 2015] [mpm_winnt:notice] [pid 4732:tid 532] AH00418: Parent: Created child process 6684
[Sat Mar 21 10:32:45.930932 2015] [mpm_winnt:notice] [pid 6684:tid 452] AH00354: Child: Starting 64 worker threads.
Temporary solution:
Disable cache for resources in Chrome DevTools and set header Cache-control: no-cache
for generated content.
What could be the reason for this behavior?